Skip to content
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.

Installation error #49

Closed
ArmandKaljami opened this issue Jun 9, 2016 · 2 comments
Closed

Installation error #49

ArmandKaljami opened this issue Jun 9, 2016 · 2 comments

Comments

@ArmandKaljami
Copy link

ArmandKaljami commented Jun 9, 2016

Hi,

I'm trying to install Calvin on Ubuntu 12.04 with "python setup.py install" and I receive this error message:

Processing dependencies for calvin==0.5
Searching for mock
Reading http://pypi.python.org/simple/mock/
Best match: mock 2.0.0
Downloading https://pypi.python.org/packages/0c/53/014354fc93c591ccc4abff12c473ad565a2eb24dcd82490fae33dbf2539f/mock-2.0.0.tar.gz#md5=0febfafd14330c9dcaa40de2d82d40ad
Processing mock-2.0.0.tar.gz
Running mock-2.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-DJF7u_/mock-2.0.0/egg-dist-tmp-3zA16c
Checking .pth file support in .
/usr/bin/python -E -c pass
Searching for pbr>=1.3
Reading http://pypi.python.org/simple/pbr/
Best match: pbr 1.10.0
Downloading https://pypi.python.org/packages/c3/2c/63275fab26a0fd8cadafca71a3623e4d0f0ee8ed7124a5bb128853d178a7/pbr-1.10.0.tar.gz#md5=8e4968c587268f030e38329feb9c8f17
Processing pbr-1.10.0.tar.gz
Running pbr-1.10.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-DJF7u_/mock-2.0.0/temp/easy_install-aJPRNW/pbr-1.10.0/egg-dist-tmp-9xQqt5
/usr/local/lib/python2.7/dist-packages/nose-1.3.7-py2.7.egg/nose/plugins/manager.py:395: RuntimeWarning: Unable to load plugin infi.traceback = infi.traceback:NosePlugin: mock
  RuntimeWarning)

Installed /tmp/easy_install-DJF7u_/mock-2.0.0/pbr-1.10.0-py2.7.egg
/usr/local/lib/python2.7/dist-packages/nose-1.3.7-py2.7.egg/nose/plugins/manager.py:395: RuntimeWarning: Unable to load plugin infi.traceback = infi.traceback:NosePlugin: mock
  RuntimeWarning)
ERROR:root:Error parsing
Traceback (most recent call last):
  File "/tmp/easy_install-DJF7u_/mock-2.0.0/pbr-1.10.0-py2.7.egg/pbr/core.py", line 111, in pbr
    attrs = util.cfg_to_args(path, dist.script_args)
  File "/tmp/easy_install-DJF7u_/mock-2.0.0/pbr-1.10.0-py2.7.egg/pbr/util.py", line 248, in cfg_to_args
    kwargs = setup_cfg_to_setup_kwargs(config, script_args)
  File "/tmp/easy_install-DJF7u_/mock-2.0.0/pbr-1.10.0-py2.7.egg/pbr/util.py", line 431, in setup_cfg_to_setup_kwargs
    if pkg_resources.evaluate_marker('(%s)' % env_marker):
AttributeError: 'module' object has no attribute 'evaluate_marker'
error: Setup script exited with error in setup command: Error parsing /tmp/easy_install-DJF7u_/mock-2.0.0/setup.cfg: AttributeError: 'module' object has no attribute 'evaluate_marker'
@ArmandKaljami
Copy link
Author

"apt-get install python-mock" seemed to help

@olaan
Copy link
Contributor

olaan commented Jun 9, 2016

You beat me to it.

python setup.py install does not automatically resolve dependencies, so you need to handle them yourself. One way of doing it is to use pip for installation, e.g.

pip -r requirements.txt -r test-requirements.txt -e .

We're working on improving the setup process. Hopefully, it should become a bit easier in the next release.

Cheers,

-o

@olaan olaan closed this as completed Jun 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants