Ask Your Question

Unable to run tox tests due to error with pip version

asked 2015-07-15 00:27:27 -0500

spradeepv gravatar image

I am trying to run tox -e py27 in cinder and I get the following error:

You are using pip version 7.0.1, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Traceback (most recent call last):
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/", line 223, in main
    status =, args)
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/commands/", line 268, in run
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/", line 289, in populate_requirement_set
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/req/", line 219, in add_requirement
    if not install_req.match_markers():
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/req/", line 796, in match_markers
    return markers_interpret(self.markers)
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/_vendor/distlib/", line 190, in interpret
    return Evaluator(execution_context).evaluate(marker.strip())
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/_vendor/distlib/", line 100, in evaluate
    return handler(node)
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/_vendor/distlib/", line 163, in do_expression
    return self.evaluate(node.body)
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/_vendor/distlib/", line 100, in evaluate
    return handler(node)
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/_vendor/distlib/", line 121, in do_boolop
    result = self.evaluate(node.values[0])
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/_vendor/distlib/", line 100, in evaluate
    return handler(node)
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/_vendor/distlib/", line 154, in do_compare
    rhs = self.evaluate(rhsnode)
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/_vendor/distlib/", line 99, in evaluate
    node_type, s))
SyntaxError: don't know how to evaluate 'num' '2.7 or pyt'...

May I know how to resolve this issue?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-07-15 01:49:09 -0500

spradeepv gravatar image

updated 2015-07-15 03:42:18 -0500

I had to upgrade virtualenv. I did this by removing the .venv folder and then ran ./ Now test cases run without any issue. Doing this will allow you to run test cases using ./

To enable tox -e py27 you have to upgrade virtualenv package as follows:

pip install --upgrade virtualenv
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-07-15 00:27:27 -0500

Seen: 776 times

Last updated: Jul 15 '15