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

requests version conflict #70

Closed
techstep opened this issue May 22, 2013 · 5 comments
Closed

requests version conflict #70

techstep opened this issue May 22, 2013 · 5 comments

Comments

@techstep
Copy link

When I install bugwarrior on my Ubuntu 12.10 machine running Python 2.7.3, I see this when it installs the requests module as part of the setup:

Installed /usr/local/lib/python2.7/dist-packages/requests-0.14.2-py2.7.egg
error: Installed distribution requests 0.14.2 conflicts with requirement requests>=1.0.0

I did not think much of it. When I configure and run bugwarrior-pull, I get a stacktrace and the following error:

pkg_resources.VersionConflict: (requests 0.14.2 (/usr/local/lib/python2.7/dist-packages/requests-0.14.2-py2.7.egg), Requirement.parse('requests>=1.0.0'))

When I upgrade requests using pip, and run bugwarrior-pull again, I get the following stacktrace and error:

pkg_resources.DistributionNotFound: requests<=0.14.2

I am quite confused, and do not know how to rectify this problem.

@ralphbean
Copy link
Sponsor Collaborator

Oof. This is the problem with the setuptools library. bugwarrior (at this point in time) definitely requires requests 0.14.2. Something else on your system requires requests>=1.0.0.. but there is no easy way to tell what.

I think the near-term solution for your issue is to install bugwarrior in a virtualenv -- http://stackoverflow.com/questions/5844869/comprehensive-beginners-virtualenv-tutorial This is actually what I do when I run bugwarrior.

The long-term solution is for me to get bugwarrior up to date and running against a modern version of requests. I'll leave this ticket open and track progress on that here.

Sorry for the hassle.

@techstep
Copy link
Author

It looks like the jira-python package requires requests >= 1.0.0. When I install bugwarrior in a virtualenv, it grabs jira, which grabs its required version of requests; when it completes the installation of bugwarrior, I run into the same problem as before. I'm guessing that with an earlier version of jira-python, it should depend on the older version of requests.

@ralphbean
Copy link
Sponsor Collaborator

Can you try again with bugwarrior-0.6.0. That release should hopefully solve this issue. If not, please re-open the ticket and let me know what happened.

@techstep
Copy link
Author

It now installs without a hitch, but I'm getting a different error (possibly related to my configuration of bugzilla). Thanks for changing the python-requests constraint!

@ralphbean
Copy link
Sponsor Collaborator

np! If you run into further problems with bugzilla, please open another issue here with the traceback, etc.. Bugzilla has been tricky (constantly changing XMLRPC api..).

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

2 participants