Ask Your Question
0

Unable to run tox tests due to error with pip version

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

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.
Exception:
Traceback (most recent call last):
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/basecommand.py", line 223, in main
    status = self.run(options, args)
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/commands/install.py", line 268, in run
    wheel_cache
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/basecommand.py", line 289, in populate_requirement_set
    requirement_set.add_requirement(req)
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/req/req_set.py", 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/req_install.py", 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/markers.py", 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/markers.py", line 100, in evaluate
    return handler(node)
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/_vendor/distlib/markers.py", 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/markers.py", line 100, in evaluate
    return handler(node)
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/_vendor/distlib/markers.py", 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/markers.py", line 100, in evaluate
    return handler(node)
  File "/home/stack/bp-vf-support/.tox/py27/local/lib/python2.7/site-packages/pip/_vendor/distlib/markers.py", 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/markers.py", 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
0

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

spradeepv gravatar image

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

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

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 577 times

Last updated: Jul 15 '15