Skip to content

setup.py doesn't seem to work with pbr 1.0  #5

@ghost

Description

<nowster> I get an /usr/lib/python2.7/site-packages/UNKNOWN-0.0.0-py2.7.egg
<ssam2> using './setup.py install' ?
<ssam2> do you have 'pbr' installed?
<nowster> yes, and I think so
<ssam2> jmacs:  if you email your public key to admin@baserock.org then I will set up an x86_64 devel system for you in the cloud, then
<ssam2> may have to wait til tomorrow though
<nowster> site-packages/pbr-1.0-py2.7.egg-info/  exists, as does the site-packages/pbr/ dir
<ssam2> right. I don't know then
<nowster> however, /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'pbr'
<ssam2> that sounds suspicious
<jmacs> ssam2: OK, that sounds great. Thanks!
<nowster> "import pbr" works in python.
<ssam2> I get 'usr/lib/python2.7/site-packages/sandboxlib-0.3.0.post6-py2.7.egg-info' from 'python ./setup.py install' with commit 776019ae8df349cb35fdeb2c37e2e8561bcad31b of git://github.com/codethinklabs/sandboxlib.git
<nowster> same commit here
<nowster> pbr is 1.0
<nowster> setuptools is 7.0dev
...
<nowster> paulsherwood: It's not seeing "pbr"'s hooks, so /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'pbr'
<nowster> and then the package name is UNKNOWN
<straycat> ooi, what version of python?
<paulsherwood> radiofree: w00t!
<paulsherwood> ssam2_: is nowster's error any help for diagnosing what's up?
<nowster> straycat: Python 2.7.9 (default, Feb 10 2015, 04:30:22)
<ssam2_> nowster, paulsherwood: I've no idea what's up, I'm afraid
<nowster> my guess is that the hooks that pbr is supposed to install aren't getting called
<ssam2_> maybe the setup.py isn't using pbr correctly...
<ssam2_> might be worth trying to run setup.py from a different package that also uses pbr
<ssam2_> most of the openstack packages use it
<ssam2_> https://git.openstack.org/cgit/openstack-infra/zuul/tree/ for example -- that's a small package, maybe you could try installing that from Git and see if it works
<ssam2_> if it does, probably sandboxlib is doing something wrong
<ssam2_> if not, probably pbr is broken on your system somehow
* SotK has seen that error before, it was because the installed version of pbr was too old when I saw it IIRC
<ssam2_> ah
<ssam2_> maybe a requirements.txt would help
<nowster> ssam2_: zuul gives same error.
<nowster> SotK: what is the ver of pbr that's needed?
<SotK> nowster: I don't remember, what version do you have installed?
<nowster> It claims to be 1.0
<ssam2_> I have 0.10.8
<ssam2_> but that version works
<SotK> hm, 0.9.0 looks to be the version I had to update to when I was trying to build Zuul last year to fix that issue
<franred> 0.10.7 in Baserock

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions