python-swiftclient run "sudo pip install -r test-requirements.txt " Fail

Bug #1482138 reported by chenhuayi
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-swiftclient
Fix Released
Undecided
Unassigned

Bug Description

Env: Ubuntu 14.40

Check out the python-swiftclient repo:
        cd $HOME; git clone https://github.com/openstack/python-swiftclient.git
Build a development installation of python-swiftclient:
        cd $HOME/python-swiftclient; sudo pip install -r requirements.txt

now, the two steps is okay.

then, I try run "sudo pip install -r test-requirements.txt ", Exception as follow:

swift@Docker:~/python-swiftclient$ sudo pip install -r test-requirements.txt
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 262, in run
    for req in parse_requirements(filename, finder=finder, options=options, session=session):
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1632, in parse_requirements
    req = InstallRequirement.from_line(line, comes_from, prereleases=getattr(options, "pre", None))
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 173, in from_line
    return cls(req, comes_from, url=url, prereleases=prereleases)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 71, in __init__
    req = pkg_resources.Requirement.parse(req)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2667, in parse
    reqs = list(parse_requirements(s))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2605, in parse_requirements
    line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version spec")
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2583, in scan_list
    "Expected ',' or end-of-list in",line,"at",line[p:]
ValueError: ("Expected ',' or end-of-list in", "mock>=1.0;python_version!='2.6'", 'at', ";python_version!='2.6'")

Storing debug log for failure in /home/swift/.pip/pip.log

Revision history for this message
chenhuayi (chenhuayi) wrote :

Sorry, the bug should be report to python-swift. Can I close or delete it ?

affects: swift → python-swiftclient
Revision history for this message
Pete Zaitcev (zaitcev) wrote :

The pip is likely too old.

Good news is, with mock 1.2 in the gate, this segment in the test-requirements.txt is not needed anymore. We could simply require mock>=1.2.

Revision history for this message
Tim Burke (1-tim-z) wrote :

Fixed in https://review.openstack.org/#/c/205150/ (commit 7c7f46a33d30a68b4e070fc5d1515f8a668f3b04).

See also: https://bugs.launchpad.net/python-swiftclient/+bug/1476585

Changed in python-swiftclient:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.