Skip to content

Instantly share code, notes, and snippets.

@davidfstr
Created March 23, 2016 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidfstr/b3697cf83b1935f24ef5 to your computer and use it in GitHub Desktop.
Save davidfstr/b3697cf83b1935f24ef5 to your computer and use it in GitHub Desktop.
urllib3: No module named 'socks'
python setup.py develop
/urllib3/venv/lib/python3.4/site-packages/setuptools/dist.py:294: UserWarning: The version specified ('dev') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
"details." % self.metadata.version
running develop
running egg_info
creating urllib3.egg-info
writing requirements to urllib3.egg-info/requires.txt
writing top-level names to urllib3.egg-info/top_level.txt
writing dependency_links to urllib3.egg-info/dependency_links.txt
writing urllib3.egg-info/PKG-INFO
writing manifest file 'urllib3.egg-info/SOURCES.txt'
reading manifest file 'urllib3.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*' found under directory 'docs/_build'
writing manifest file 'urllib3.egg-info/SOURCES.txt'
running build_ext
Creating /urllib3/venv/lib/python3.4/site-packages/urllib3.egg-link (link to .)
Adding urllib3 dev to easy-install.pth file
Installed /urllib3
Processing dependencies for urllib3===dev
Finished processing dependencies for urllib3===dev
touch *.egg-info
pip install -r dev-requirements.txt | tee -a dev-requirements.txt.log
Collecting nose==1.3.7 (from -r dev-requirements.txt (line 1))
Downloading nose-1.3.7-py3-none-any.whl (154kB)
Collecting nose-exclude==0.4.1 (from -r dev-requirements.txt (line 2))
Downloading nose-exclude-0.4.1.tar.gz
Collecting mock==1.3.0 (from -r dev-requirements.txt (line 3))
Downloading mock-1.3.0-py2.py3-none-any.whl (56kB)
Collecting coverage==3.7.1 (from -r dev-requirements.txt (line 4))
Downloading coverage-3.7.1.tar.gz (284kB)
Collecting tox==2.1.1 (from -r dev-requirements.txt (line 5))
Downloading tox-2.1.1-py2.py3-none-any.whl
Collecting twine==1.5.0 (from -r dev-requirements.txt (line 6))
Downloading twine-1.5.0-py2.py3-none-any.whl
Collecting wheel==0.24.0 (from -r dev-requirements.txt (line 7))
Downloading wheel-0.24.0-py2.py3-none-any.whl (63kB)
Collecting tornado==4.2.1 (from -r dev-requirements.txt (line 8))
Downloading tornado-4.2.1.tar.gz (434kB)
Collecting six>=1.7 (from mock==1.3.0->-r dev-requirements.txt (line 3))
Downloading six-1.10.0-py2.py3-none-any.whl
Collecting pbr>=0.11 (from mock==1.3.0->-r dev-requirements.txt (line 3))
Downloading pbr-1.8.1-py2.py3-none-any.whl (89kB)
Collecting py>=1.4.17 (from tox==2.1.1->-r dev-requirements.txt (line 5))
Downloading py-1.4.31-py2.py3-none-any.whl (81kB)
Collecting pluggy<0.4.0,>=0.3.0 (from tox==2.1.1->-r dev-requirements.txt (line 5))
Downloading pluggy-0.3.1-py2.py3-none-any.whl
Collecting virtualenv>=1.11.2 (from tox==2.1.1->-r dev-requirements.txt (line 5))
Downloading virtualenv-15.0.1-py2.py3-none-any.whl (1.8MB)
Collecting requests (from twine==1.5.0->-r dev-requirements.txt (line 6))
Downloading requests-2.9.1-py2.py3-none-any.whl (501kB)
Collecting pkginfo (from twine==1.5.0->-r dev-requirements.txt (line 6))
Downloading pkginfo-1.2.1.tar.gz
Building wheels for collected packages: nose-exclude, coverage, tornado, pkginfo
Running setup.py bdist_wheel for nose-exclude: started
Running setup.py bdist_wheel for nose-exclude: finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/4a/7d/1b/a7fef8f76966bda0f827f45df18538a3bc3771837c0eb593d3
Running setup.py bdist_wheel for coverage: started
Running setup.py bdist_wheel for coverage: finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/1c/2d/55/470890618558cacad65599407445c2a1636222bd896c9023f3
Running setup.py bdist_wheel for tornado: started
Running setup.py bdist_wheel for tornado: finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/e4/0e/f8/2c7f5423e2dcad6a71c6f04e859f35cb3cf962da96f22a74c3
Running setup.py bdist_wheel for pkginfo: started
Running setup.py bdist_wheel for pkginfo: finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/8e/c7/e9/a770012d679a6ed6831354e4982e5d3b942fb6666d70d3342b
Successfully built nose-exclude coverage tornado pkginfo
Installing collected packages: nose, nose-exclude, six, pbr, mock, coverage, py, pluggy, virtualenv, tox, requests, pkginfo, twine, wheel, tornado
Found existing installation: wheel 0.29.0
Uninstalling wheel-0.29.0:
Successfully uninstalled wheel-0.29.0
Successfully installed coverage-3.7.1 mock-1.3.0 nose-1.3.7 nose-exclude-0.4.1 pbr-1.8.1 pkginfo-1.2.1 pluggy-0.3.1 py-1.4.31 requests-2.9.1 six-1.10.0 tornado-4.2.1 tox-2.1.1 twine-1.5.0 virtualenv-15.0.1 wheel-0.24.0
python setup.py develop
/urllib3/venv/lib/python3.4/site-packages/setuptools/dist.py:294: UserWarning: The version specified ('dev') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
"details." % self.metadata.version
running develop
running egg_info
writing urllib3.egg-info/PKG-INFO
writing top-level names to urllib3.egg-info/top_level.txt
writing dependency_links to urllib3.egg-info/dependency_links.txt
writing requirements to urllib3.egg-info/requires.txt
reading manifest file 'urllib3.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*' found under directory 'docs/_build'
writing manifest file 'urllib3.egg-info/SOURCES.txt'
running build_ext
Creating /urllib3/venv/lib/python3.4/site-packages/urllib3.egg-link (link to .)
urllib3 dev is already the active version in easy-install.pth
Installed /urllib3
Processing dependencies for urllib3===dev
Finished processing dependencies for urllib3===dev
nosetests
/urllib3/urllib3/contrib/socks.py:31: DependencyWarning: SOCKS support in urllib3 requires the installation of optional dependencies: specifically, PySocks. For more information, see https://urllib3.readthedocs.org/en/latest/contrib.html#socks-proxies
DependencyWarning
SSSSE...........................................................................S..S.........................................................................................S...............................................S...............................................................................................
======================================================================
ERROR: Failure: ImportError (No module named 'socks')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/urllib3/venv/lib/python3.4/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/urllib3/venv/lib/python3.4/site-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/urllib3/venv/lib/python3.4/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/urllib3/venv/lib/python3.4/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/urllib3/venv/lib/python3.4/imp.py", line 235, in load_module
return load_source(name, filename, file)
File "/urllib3/venv/lib/python3.4/imp.py", line 171, in load_source
module = methods.load()
File "<frozen importlib._bootstrap>", line 1220, in load
File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1129, in _exec
File "<frozen importlib._bootstrap>", line 1471, in exec_module
File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
File "/urllib3/test/contrib/test_socks.py", line 4, in <module>
from urllib3.contrib import socks
File "/urllib3/urllib3/contrib/socks.py", line 21, in <module>
import socks
ImportError: No module named 'socks'
Name Stmts Miss Cover Missing
-------------------------------------------------------
urllib3 20 0 100%
urllib3._collections 148 0 100%
urllib3.connection 116 0 100%
urllib3.connectionpool 235 0 100%
urllib3.contrib 0 0 100%
urllib3.exceptions 61 0 100%
urllib3.fields 62 0 100%
urllib3.filepost 32 0 100%
urllib3.poolmanager 102 0 100%
urllib3.request 33 0 100%
urllib3.response 233 0 100%
urllib3.util 1 0 100%
urllib3.util.connection 29 0 100%
urllib3.util.request 20 0 100%
urllib3.util.response 16 0 100%
urllib3.util.retry 86 0 100%
urllib3.util.ssl_ 63 0 100%
urllib3.util.timeout 48 0 100%
urllib3.util.url 91 0 100%
-------------------------------------------------------
TOTAL 1396 0 100%
----------------------------------------------------------------------
Ran 315 tests in 1.602s
FAILED (SKIP=8, errors=1)
make: *** [test] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment