Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ssssam opened this issue Jun 16, 2015 · 2 comments
Open

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

ssssam opened this issue Jun 16, 2015 · 2 comments

Comments

@ssssam
Copy link
Contributor

ssssam commented Jun 16, 2015

<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
@ssssam
Copy link
Contributor Author

ssssam commented Jun 16, 2015

My system was using pbr 0.10.8, I upgraded to the latest version from PyPI which was 1.1.1 at the time of writing, and python ./setup.py install worked as expected. So this may be due to a bug in PBR 1.0

@ssssam
Copy link
Contributor Author

ssssam commented Jun 16, 2015

If this is the case, we can set a version requirement in requirements.txt for 'pbr' so that it avoids the broken version. See http://git.baserock.org/cgi-bin/cgit.cgi/delta/openstack/neutron.git/tree/requirements.txt for example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant