broken dependency tree on fresh install
Bug #1500460 reported by
Charles Butler
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.restfulclient |
Fix Released
|
Undecided
|
Colin Watson |
Bug Description
It appears that python restfulclient is now depending on simplejson which is missing from the package dependencies
http://
the culprit appears to be here:
http://
I discovered this via a CI run leveraging tox. The output is here:
Related branches
lp://staging/~freyes/lazr.restfulclient/lp1500460
Rejected
for merging
into
lp://staging/lazr.restfulclient
- Colin Watson (community): Needs Fixing
-
Diff: 11 lines (+1/-0)1 file modifiedsetup.py (+1/-0)
description: | updated |
Changed in lazr.restfulclient: | |
assignee: | nobody → Felipe Reyes (freyes) |
Changed in lazr.restfulclient: | |
assignee: | Felipe Reyes (freyes) → nobody |
To post a comment you must log in.
I see the same. Looks like it is fixed in release 0.13.4, which is shown as latest download on the project homepage here. But the latest release on PyPI is 0.13.3: https:/ /pypi.python. org/pypi/ lazr.restfulcli ent
With 0.13.3, the code always does 'import simplejson'. With 0.13.4, the code first tries 'from json import dumps, loads', which works in Python 2.6 and up. The import from simplejson is only tried if that fails, so on Python 2.5 or lower. If the project wants to support those Python versions, simplejson should be added to the install_requires for those versions, but I don't mind.
Anyway, the problem here is that the latest release is not in PyPI. Can someone add it?
To reproduce the problem:
$ virtualenv test pythons/ parts/opt' ent-0.13. 1.tar.gz (55kB) maurits/ tmp/test/ lib/python2. 7/site- packages/ lazr/restfulcli ent/resource. py", line 36, in <module>
Using real prefix '/usr/local/
New python executable in test/bin/python2.7
Also creating executable in test/bin/python
Installing setuptools, pip, wheel...done.
$ cd test
$ bin/pip install lazr.restfulclient
Collecting lazr.restfulclient
Downloading lazr.restfulcli
...
$ bin/python
Python 2.7.10 (default, Nov 10 2015, 21:29:56)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.76)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from lazr.restfulclient import resource
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/
import simplejson
ImportError: No module named simplejson
BTW, I get an even older version 0.13.1 in this way, because that is the last one mentioned here: /pypi.python. org/simple/ lazr.restfulcli ent/
https:/
Properly uploading the latest release should help there.
Info on how PyPI works is here, if needed: /python- packaging- user-guide. readthedocs. org/en/ latest/
https:/