Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#49163 - [python-requests] Cannot import requests

Attached to Project: Arch Linux
Opened by Marton Suranyi (susu) - Sunday, 01 May 2016, 15:12 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 01 May 2016, 15:48 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: cannot import requests from python

When I tried to import requests, I've got an ImportError about DependencyWarning.
I also tried installing requests from pip, and it worked, so I assume it is a packaging bug.

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.5/site-packages/requests/__init__.py", line 61, in <module>
from .packages.urllib3.exceptions import DependencyWarning
ImportError: cannot import name 'DependencyWarning'


Additional info:
* 2.10.0-1

Steps to reproduce:
python -c 'import requests'


This task depends upon

Closed by  Doug Newgard (Scimmia)
Sunday, 01 May 2016, 15:48 GMT
Reason for closing:  Not a bug
Comment by Marton Suranyi (susu) - Sunday, 01 May 2016, 15:27 GMT
Workaround: manually delete /usr/lib/python3.5/site-packages/requests/packages/{urllib3,chardet}, as they are not owned by python-requests.
Comment by Doug Newgard (Scimmia) - Sunday, 01 May 2016, 15:35 GMT
If those files weren't owned by the package, how did they get there?
Comment by Marton Suranyi (susu) - Sunday, 01 May 2016, 15:45 GMT
Hmm, I don't know. Maybe it was just for me, or maybe I have installed python-requests from pip. I guess it can be closed.

Loading...