When trying to install the designate requirements.txt we are getting the following error in latest main

Bug #1572166 reported by naggappan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Invalid
Undecided
Unassigned

Bug Description

Command tried to install requirements:

pip install -r requirements.txt
OS: UBUNTU 14.04

Error message:

(.venv)vagrant@vagrant-ubuntu-trusty-64:~/designate$ cat /tmp/tmpDQ7EeW
------------------------------------------------------------
/home/vagrant/designate/.venv/bin/pip run on Tue Apr 19 14:08:00 2016
Exception:
Traceback (most recent call last):
  File "/home/vagrant/designate/.venv/local/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/home/vagrant/designate/.venv/local/lib/python2.7/site-packages/pip/commands/install.py", line 262, in run
    for req in parse_requirements(filename, finder=finder, options=options, session=session):
  File "/home/vagrant/designate/.venv/local/lib/python2.7/site-packages/pip/req.py", line 1631, in parse_requirements
    req = InstallRequirement.from_line(line, comes_from, prereleases=getattr(options, "pre", None))
  File "/home/vagrant/designate/.venv/local/lib/python2.7/site-packages/pip/req.py", line 172, in from_line
    return cls(req, comes_from, url=url, prereleases=prereleases)
  File "/home/vagrant/designate/.venv/local/lib/python2.7/site-packages/pip/req.py", line 70, in __init__
    req = pkg_resources.Requirement.parse(req)
  File "/home/vagrant/designate/.venv/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources.py", line 2606, in parse
    reqs = list(parse_requirements(s))
  File "/home/vagrant/designate/.venv/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources.py", line 2544, in parse_requirements
    line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version spec")
  File "/home/vagrant/designate/.venv/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources.py", line 2522, in scan_list
    "Expected ',' or end-of-list in",line,"at",line[p:]
ValueError: ("Expected ',' or end-of-list in", "Routes!=2.0,!=2.1,!=2.3.0,>=1.12.3;python_version=='2.7'", 'at', ";python_version=='2.7'")

Revision history for this message
Kiall Mac Innes (kiall) wrote :

The version of pip you are using is too old to support environment markers (which are used, for example to differ requirements for python2 vs python3).

I'm not sure of the specific version required, but most of openstack will fail to install with your current pip version.

Changed in designate:
status: New → Invalid
Revision history for this message
Eric Larson (eric-larson) wrote :

It likes >=6.0 is required. That said, I'd argue it is a best practice to use the latest pip.

Revision history for this message
naggappan (naggappan) wrote :

Yes you are right it worked with pip 8.1.1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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