Comment 1 for bug 1565268

Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

more info

  Source in /tmp/pip-CyMtU0-build has version 10.0.1.dev145, which satisfies requirement tempest==10.0.1.dev145 from file:///home/jeffrey/openstack/tempest
Cleaning up...
  Removing source in /tmp/pip-CyMtU0-build
Could not satisfy constraints for 'tempest': installation from path or url cannot be constrained to a version
Exception information:
Traceback (most recent call last):
  File "/home/jeffrey/.dotfiles/virtualenvs/tempest/lib/python2.7/site-packages/pip/basecommand.py", line 209, in main
    status = self.run(options, args)
  File "/home/jeffrey/.dotfiles/virtualenvs/tempest/lib/python2.7/site-packages/pip/commands/install.py", line 310, in run
    wb.build(autobuilding=True)
  File "/home/jeffrey/.dotfiles/virtualenvs/tempest/lib/python2.7/site-packages/pip/wheel.py", line 748, in build
    self.requirement_set.prepare_files(self.finder)
  File "/home/jeffrey/.dotfiles/virtualenvs/tempest/lib/python2.7/site-packages/pip/req/req_set.py", line 360, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/home/jeffrey/.dotfiles/virtualenvs/tempest/lib/python2.7/site-packages/pip/req/req_set.py", line 638, in _prepare_file
    self.add_requirement(req_to_install, None)
  File "/home/jeffrey/.dotfiles/virtualenvs/tempest/lib/python2.7/site-packages/pip/req/req_set.py", line 268, in add_requirement
    "constrained to a version" % name)
InstallationError: Could not satisfy constraints for 'tempest': installation from path or url cannot be constrained to a version

The root cause it that the tempest version is fixed in the upper-constraints.txt file due to this issue[0], and introduce in [1]

[0] http://docs.openstack.org/developer/tempest-lib/readme.html
[1] https://review.openstack.org/#/c/300263/

So the fix should be: when installing the tempest, remove the tempest from the upper-constraints.txt first.