Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 415173 - dev-python/requests-0.12.1 - pkg_resources.DistributionNotFound: oauthlib>=0.1.0,<0.2.0
Summary: dev-python/requests-0.12.1 - pkg_resources.DistributionNotFound: oauthlib>=0....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-08 19:33 UTC by Craig Andrews
Modified: 2012-05-09 18:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Andrews gentoo-dev 2012-05-08 19:33:05 UTC
After upgrading to dev-python/requests-0.12.1 from dev-python/requests-0.11.1, anything that uses dev-python/requests fails to work. Here's the output of net-misc/flexget-1.0_beta2821 (which before the dev-python/requests upgrade):

$ /usr/bin/python3.2 /usr/bin/flexget --version
Traceback (most recent call last):
  File "/usr/bin/flexget-2.7", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 2712, in <module>
    working_set.require(__requires__)
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 691, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 589, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: oauthlib>=0.1.0,<0.2.0


dev-python/requests-0.12.1's setup.py expresses this dependency:
if is_py3:
    chardet_package = 'chardet2'
else:
    chardet_package = 'chardet>=1.0.0'
    requires.append('oauthlib>=0.1.0,<0.2.0')

This oauthlib>=0.1.0,<0.2.0 dependency is not expressed in the ebuild.
Comment 1 Arfrever Frehtes Taifersar Arahesis 2012-05-08 21:38:42 UTC
You can use dev-python/requests from Progress Overlay, which has correct dependencies and other fixes.
Comment 2 Mike Gilbert gentoo-dev 2012-05-08 21:59:09 UTC
(In reply to comment #1)
> You can use dev-python/requests from Progress Overlay, which has correct
> dependencies and other fixes.

If your intent is to provide a fix that may be applied to gentoo-x86, please provide a link to the relevant changesets.

If your intent is to advertise your overlay using Gentoo's bug tracker, please stop.
Comment 3 Mike Gilbert gentoo-dev 2012-05-08 22:02:19 UTC
I'll take this one since I maintain flexget and it is currently broken for me too. :P
Comment 4 Mike Gilbert gentoo-dev 2012-05-08 23:15:39 UTC
Should be fixed now. Thanks for the report.
Comment 5 Craig Andrews gentoo-dev 2012-05-09 18:38:41 UTC
You seem to have fixed this issue without a revbump.

Affected systems that already upgraded to (broken) dev-python/requests-0.12.1 will not get the fix. I believe that you should revbump as a matter of logic (so affected users will get fixed) and policy.
Comment 6 Mike Gilbert gentoo-dev 2012-05-09 18:43:57 UTC
(In reply to comment #5)

emerge -uDN world pulls it in on my system without a revbump.