Created
April 1, 2015 00:34
-
-
Save ianpreston/f758dab4776a962a9d8a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ian@dreadnought > virtualenv venv; . venv/bin/activate.fish | |
New python executable in venv/bin/python | |
Installing setuptools, pip...done. | |
(venv)ian@dreadnought > pip install urllib3 | |
Downloading/unpacking urllib3 | |
Downloading urllib3-1.10.2-py2-none-any.whl (77kB): 77kB downloaded | |
Installing collected packages: urllib3 | |
Successfully installed urllib3 | |
Cleaning up... | |
(venv)ian@dreadnought > mkdir foobar | |
(venv)ian@dreadnought > echo "import urllib3" > foobar/__init__.py | |
(venv)ian@dreadnought > echo "import urllib3; c = urllib3.connection.DummyConnection()" > http.py | |
(venv)ian@dreadnought > python -c "import foobar; print 'test'" | |
Traceback (most recent call last): | |
File "<string>", line 1, in <module> | |
File "foobar/__init__.py", line 1, in <module> | |
import urllib3 | |
File "/Users/ian/proj/misc/.../venv/lib/python2.7/site-packages/urllib3/__init__.py", line 10, in <module> | |
from .connectionpool import ( | |
File "/Users/ian/proj/misc/.../venv/lib/python2.7/site-packages/urllib3/connectionpool.py", line 31, in <module> | |
from .connection import ( | |
File "/Users/ian/proj/misc/.../venv/lib/python2.7/site-packages/urllib3/connection.py", line 9, in <module> | |
from http.client import HTTPConnection as _HTTPConnection, HTTPException | |
File "http.py", line 1, in <module> | |
import urllib3; c = c = urllib3.connection.DummyConnection() | |
AttributeError: 'module' object has no attribute 'connection' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment