[issue19766] test_venv: test_with_pip() failed on "AMD64 Fedora without threads 3.x" buildbot

STINNER Victor report at bugs.python.org
Tue Nov 26 14:30:13 CET 2013


STINNER Victor added the comment:

In fact, it's an issue in the urllib3 library which require threads.

$ cd /home/haypo/pip/PIP/pip/_vendor/requests/packages
$ /home/haypo/prog/python/default/venv/bin/python -c 'import urllib3'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/haypo/pip/PIP/pip/_vendor/requests/packages/urllib3/__init__.py", line 24, in <module>
    from .poolmanager import PoolManager, ProxyManager, proxy_from_url
  File "/home/haypo/pip/PIP/pip/_vendor/requests/packages/urllib3/poolmanager.py", line 14, in <module>
    from ._collections import RecentlyUsedContainer
  File "/home/haypo/pip/PIP/pip/_vendor/requests/packages/urllib3/_collections.py", line 8, in <module>
    from threading import RLock
  File "/home/haypo/prog/python/default/Lib/threading.py", line 4, in <module>
    import _thread
ImportError: No module named '_thread'

Here is a patch for urllib3.

I reported the issue upstream:
https://github.com/shazow/urllib3/issues/289

----------
keywords: +patch
Added file: http://bugs.python.org/file32857/urllib3_no_thread.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19766>
_______________________________________


More information about the Python-bugs-list mailing list