Bug 1171444 - ImportError: No module named requests
Summary: ImportError: No module named requests
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-praw
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fabian Affolter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-07 04:47 UTC by jstroehmann
Modified: 2015-01-05 07:37 UTC (History)
2 users (show)

Fixed In Version: python-praw-2.1.19-2.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-05 07:33:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1133163 0 unspecified CLOSED Package should require python-requests 2021-02-22 00:41:40 UTC

Description jstroehmann 2014-12-07 04:47:20 UTC
Description of problem:
Missing dependency for python-praw 

Version-Release number of selected component (if applicable):
python-praw-2.1.19-1.fc20.noarch

How reproducible:
always

Steps to Reproduce:
1. Type "python"
2. Type "import praw"


Actual results:
[jaymz@web101 python-praw]$ python
Python 2.7.5 (default, Nov  3 2014, 14:26:24)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import praw
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/praw/__init__.py", line 31, in <module>
    import requests
ImportError: No module named requests
>>> quit()


Expected results:
import succeeds

Additional info:

Comment 1 jstroehmann 2014-12-07 04:51:16 UTC
after installing the 'python-requests' package, praw works fine:


[jaymz@web101 python-praw]$ python
Python 2.7.5 (default, Nov  3 2014, 14:26:24)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import praw
>>> r = praw.Reddit(user_agent='jaymz_app')
>>> submissions = r.get_subreddit('opensource').get_hot(limit=5)
>>> [str(x) for x in submissions]
['6 :: Elementary Technoloogy Teacher Teaching Robotics using Arduino.', '9 :: Know any Open Source extensible ERP (or CRM) solutions?', '3 :: Multi-Website CoreCMS going OpenSource', '31 :: GitHub uses PRs and Issues for communication: "15 rules for communicati...', "14 :: Open source news roundup: Stephen Hawking's speech system, White House ..."]
>>>

Comment 2 jstroehmann 2014-12-07 04:58:01 UTC
appears to have been fixed in 2.1.18, according to bug 1133163 - but is broken again.

Comment 3 Fedora Update System 2014-12-07 19:48:47 UTC
python-praw-2.1.19-2.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/python-praw-2.1.19-2.fc21

Comment 4 Fedora Update System 2014-12-07 20:32:31 UTC
python-praw-2.1.19-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-praw-2.1.19-2.fc20

Comment 5 lnie 2014-12-08 02:49:16 UTC
python-praw-2.1.19-2.fc21 works

Comment 6 Fedora Update System 2014-12-12 04:11:30 UTC
Package python-praw-2.1.19-2.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-praw-2.1.19-2.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-16570/python-praw-2.1.19-2.fc20
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2015-01-05 07:33:52 UTC
python-praw-2.1.19-2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2015-01-05 07:37:56 UTC
python-praw-2.1.19-2.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.