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

VersionConflict error should report information about who is requiring the package in question #268

Closed
bb-migration opened this Issue Oct 10, 2014 · 7 comments

Comments

Projects
None yet
1 participant
@bb-migration

bb-migration commented Oct 10, 2014

Originally reported by: msabramo (Bitbucket: msabramo, GitHub: msabramo)


Current VersionConflict error looks like this:

$ pserve development.ini
Traceback (most recent call last):
...
  File "/Users/marca/dev/surveymonkey/profilesvc/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 573, in find_egg_entry_point
    pkg_resources.require(self.spec)
  File "/Users/marca/dev/hg-repos/setuptools/pkg_resources.py", line 728, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/Users/marca/dev/hg-repos/setuptools/pkg_resources.py", line 627, in resolve
    raise VersionConflict(dist, req)
pkg_resources.VersionConflict: 
(PasteDeploy 1.3.4 (/Users/marca/dev/surveymonkey/profilesvc/lib/python2.6/site-packages),
Requirement.parse('PasteDeploy>=1.5.0'))

What I'd like is to know is which package is requiring a different version of the package from what I have currently installed -- e.g.:

pkg_resources.VersionConflict: PasteDeploy 1.3.4 is installed but PasteDeploy>=1.5.0 is required by ['pyramid']

PR: https://bitbucket.org/pypa/setuptools/pull-request/89/make-versionconflict-report-who-is/diff

Cc: @sontek, @aconrad, @sudarkoff


@bb-migration

This comment has been minimized.

bb-migration commented Oct 10, 2014

Original comment by msabramo (Bitbucket: msabramo, GitHub: msabramo):


Here's a PR that attempts to solve this issue:

https://bitbucket.org/pypa/setuptools/pull-request/89/make-versionconflict-report-who-is/diff

@bb-migration

This comment has been minimized.

bb-migration commented Oct 11, 2014

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Make VersionConflict report who is requiring package

fixes issue 268

@bb-migration

This comment has been minimized.

bb-migration commented Oct 11, 2014

Original comment by msabramo (Bitbucket: msabramo, GitHub: msabramo):


@jaraco: Did you want me to remove:

https://bitbucket.org/pypa/setuptools/src/0515c3914a7a323fe7756e886d2968673b3e6fb6/pkg_resources.py#cl-638

It says # XXX put more info here -- does my change provide the info you were thinking of or is there more that we could be doing?

@bb-migration

This comment has been minimized.

bb-migration commented Oct 11, 2014

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Hmm. I think I made that change in a commit subsequent to yours. If not, that's the thing to do. That TODO has been around a long time.

@bb-migration

This comment has been minimized.

bb-migration commented Oct 11, 2014

Original comment by msabramo (Bitbucket: msabramo, GitHub: msabramo):


Looks like the original origin of that comment goes back to https://bitbucket.org/pypa/setuptools/commits/ba233d2c9c809d8b2d75e7036f443691c03fda20#chg-pkg_resources.py in 2005. Probably P.J. Eby?

@bb-migration

This comment has been minimized.

bb-migration commented Oct 12, 2014

Original comment by msabramo (Bitbucket: msabramo, GitHub: msabramo):


Coolness. This seems to have debuted in the newly released setuptools 6.1 - https://pypi.python.org/pypi/setuptools/6.1#id1

@bb-migration

This comment has been minimized.

bb-migration commented Oct 30, 2014

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


This issue is implicated in #281.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment