Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version conflict in editable install #4

Open
theoreticalbts opened this issue Nov 2, 2017 · 2 comments
Open

Version conflict in editable install #4

theoreticalbts opened this issue Nov 2, 2017 · 2 comments

Comments

@theoreticalbts
Copy link
Contributor

Do the following steps:

  • Do a fresh git clone into a local directory
  • Install into a freshly created virtualenv with pip -e
  • Run txgen.py

Then get this error:

Traceback (most recent call last):
  File "/home/theoretical/ve/tn/lib/python3.6/site-packages/pkg_resources/__init__.py", line 635, in _build_master
    ws.require(__requires__)
  File "/home/theoretical/ve/tn/lib/python3.6/site-packages/pkg_resources/__init__.py", line 943, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/home/theoretical/ve/tn/lib/python3.6/site-packages/pkg_resources/__init__.py", line 834, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (toml 0.9.3 (/home/theoretical/ve/tn/lib/python3.6/site-packages), Requirement.parse('toml==0.9.3.1'), {'steem'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/theoretical/ve/tn/bin/txgen.py", line 4, in <module>
    __import__('pkg_resources').require('tinman==0.1')
  File "/home/theoretical/ve/tn/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2927, in <module>
    @_call_aside
  File "/home/theoretical/ve/tn/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2913, in _call_aside
    f(*args, **kwargs)
  File "/home/theoretical/ve/tn/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2940, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/home/theoretical/ve/tn/lib/python3.6/site-packages/pkg_resources/__init__.py", line 637, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/home/theoretical/ve/tn/lib/python3.6/site-packages/pkg_resources/__init__.py", line 650, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/home/theoretical/ve/tn/lib/python3.6/site-packages/pkg_resources/__init__.py", line 829, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'toml==0.9.3.1' distribution was not found and is required by steem

I am going to add requirements.txt, and then add -r requirements.txt to the command line, see if that fixes the issue.

@theoreticalbts
Copy link
Contributor Author

Nope, that didn't work. It says:

Collecting toml==0.9.3.1 (from -r /home/theoretical/src/tinman/requirements.txt (line 25))

later on it says:

Successfully installed alabaster-0.7.10 appdirs-1.4.3 astroid-1.5.3 autopep8-1.3.2 babel-2.5.1 certifi-2017.7.27.1 chardet-3.0.4 commonmark-0.5.4 dateparser-0.6.0 diff-match-patch-20121119 docutils-0.14 ecdsa-0.13 funcy-1.9.1 humanize-0.5.1 idna-2.6 imagesize-0.7.1 isort-4.2.15 jinja2-2.9.6 langdetect-1.0.7 lazy-object-proxy-1.3.1 markupsafe-1.0 maya-0.3.3 mccabe-0.6.1 pendulum-1.3.0 pep8-1.7.0 pipfile-0.0.2 prettytable-0.7.2 py-1.4.34 pycodestyle-2.3.1 pycrypto-2.6.1 pygments-2.2.0 pylibscrypt-1.6.1 pylint-1.7.4 pypandoc-1.4 pytest-3.2.3 pytest-pylint-0.7.1 python-dateutil-2.6.1 pytz-2017.2 pytzdata-2017.2.2 recommonmark-0.4.0 regex-2017.9.23 requests-2.18.4 ruamel.yaml-0.15.34 scrypt-0.8.0 setuptools-36.5.0 six-1.11.0 snowballstemmer-1.2.1 sphinx-1.6.4 sphinxcontrib-programoutput-0.11 sphinxcontrib-restbuilder-0.1 sphinxcontrib-websupport-1.0.1 steem-0.18.103 tinman toml-0.9.3 toolz-0.8.2 tzlocal-1.4 ujson-1.35 urllib3-1.22 voluptuous-0.10.5 w3lib-1.18.0 wrapt-1.10.11 yapf-0.18.0

@theoreticalbts
Copy link
Contributor Author

It works fine with non-editable install. This just means you have to do pip install --upgrade path/to/tinman whenever you edit the files in the tinman directory, which is a pain for iterative development :(

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

No branches or pull requests

1 participant