Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

trying to install requirements.... #7

Closed
dotheknifefight opened this issue Jul 26, 2016 · 5 comments
Closed

trying to install requirements.... #7

dotheknifefight opened this issue Jul 26, 2016 · 5 comments

Comments

@dotheknifefight
Copy link

i get this message: Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/q6/swvngxj54d94plvfmr1prxt80000gn/T/pip-build-euYNbg/protobuf-to-dict/

@anton101101
Copy link

Do you get any errors above that line? Paste from the traceback lines.

@nborrmann
Copy link
Collaborator

Try installing it manually from here
https://github.com/benhodgson/protobuf-to-dict

@favll
Copy link
Owner

favll commented Jul 27, 2016

Check out if this might help.

@gheja
Copy link

gheja commented Jul 28, 2016

I get a similar error when installing on a clean Debian 8.0, using Python 2.7.

    Installed /tmp/pip-build-Mw0oTs/protobuf-to-dict/protobuf-3.0.0b4-py2.7.egg
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip-build-Mw0oTs/protobuf-to-dict/setup.py", line 25, in <module>
        'Topic :: Software Development :: Libraries :: Python Modules',
      File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 262, in __init__
        self.fetch_build_eggs(attrs['setup_requires'])
      File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 287, in fetch_build_eggs
        replace_conflicting=True,
      File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 631, in resolve
        dist = best[req.key] = env.best_match(req, ws, installer)
      File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 867, in best_match
        dist = working_set.find(req)
      File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 509, in find
        raise VersionConflict(dist, req)
    pkg_resources.VersionConflict: (six 1.8.0 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.9'))
    Complete output from command python setup.py egg_info:

It seems that the 1.9 version of six package is not being installed for some reason, I guess a dependency is missing somewhere but when adding to requirements.txt it makes no difference (I am not too familiar with python and its installation system). Anyways installing that version manually using

sudo pip install --upgrade six==1.9

before running

sudo pip install -r requirements.txt

solves the problem.

@Steev93
Copy link

Steev93 commented Jul 29, 2016

It seems to be a issue related to protobuf-to-dict, but actually a version conflict of six.

The final solution is to uninstall the six by

 pip uninstall six

And then run the

pip install -r requirements.txt 

it will install everything without any errors.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants