Skip to content

Instantly share code, notes, and snippets.

@JacobFierro
Created March 26, 2014 22:06
Show Gist options
  • Save JacobFierro/9794671 to your computer and use it in GitHub Desktop.
Save JacobFierro/9794671 to your computer and use it in GitHub Desktop.
Failure to install mysql-python while in a virtualenv
------------------------------------------------------------
/Users/jacobfierro/.virtualenvs/django_polls/bin/pip run on Wed Mar 26 17:53:56 2014
Downloading/unpacking MySQL-python
Getting page https://pypi.python.org/simple/MySQL-python/
URLs to search for versions for MySQL-python:
* https://pypi.python.org/simple/MySQL-python/
Analyzing links from page https://pypi.python.org/simple/MySQL-python/
Skipping link https://pypi.python.org/packages/2.4/M/MySQL-python/MySQL_python-1.2.2-py2.4-win32.egg#md5=6620279666cb40e26d89079b55e61a3f (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/M/MySQL-python/MySQL_python-1.2.2-py2.5-win32.egg#md5=596ec38e498e80ce73759f777b29c588 (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/M/MySQL-python/MySQL_python-1.2.3b1-py2.5-linux-i686.egg#md5=43ace300f3eda0fc418869b04a5139eb (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/M/MySQL-python/MySQL_python-1.2.3b2-py2.5-linux-i686.egg#md5=36f78115685d8ed96ab9199c36ef0ab0 (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/M/MySQL-python/MySQL_python-1.2.3c1-py2.5-linux-i686.egg#md5=1efcbed6f1f29acd50993f54109938d3 (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.6/M/MySQL-python/MySQL_python-1.2.3b1-py2.6-linux-i686.egg#md5=4a640ca00352a18e0a8211e935406100 (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.6/M/MySQL-python/MySQL_python-1.2.3b2-py2.6-linux-i686.egg#md5=08ba3e38b899a70a1a2bb3239107acae (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.6/M/MySQL-python/MySQL_python-1.2.3c1-py2.6-linux-i686.egg#md5=fd472a7c42ef80bd671272a25d6aadf8 (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.7/M/MySQL-python/MySQL-python-1.2.4.win32-py2.7.exe#md5=313b4ceed0144a3019f87a4fba5168d6 (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.7/M/MySQL-python/MySQL-python-1.2.4b1.win32-py2.7.exe#md5=e0a9f62c7a65eca79a1aa58371caa405 (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.7/M/MySQL-python/MySQL-python-1.2.4b2.win32-py2.7.exe#md5=ac5812bf27dde82c41476b09aeba3ecf (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.7/M/MySQL-python/MySQL-python-1.2.4b3.win32-py2.7.exe#md5=4596e73263008aa83d59b0541fe2ce7e (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.7/M/MySQL-python/MySQL-python-1.2.4b4.win32-py2.7.exe#md5=b53ad22d5a8e16d11ffb919eb07c9b89 (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.7/M/MySQL-python/MySQL-python-1.2.4b5.win32-py2.7.exe#md5=ad3dd07e28fd38c89a02cacb122bf27a (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.7/M/MySQL-python/MySQL-python-1.2.4c1.win32-py2.7.exe#md5=2a07d427814482fb90dbe97b591fc31d (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.7/M/MySQL-python/MySQL-python-1.2.5.win32-py2.7.exe#md5=6f43f42516ea26e79cfb100af69a925e (from https://pypi.python.org/simple/MySQL-python/); unknown archive format: .exe
Found link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.3.tar.gz#md5=215eddb6d853f6f4be5b4afc4154292f (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.3
Found link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.3b1.tar.gz#md5=906c00cbfb81f54a474b3e7dcf7236bb (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.3b1
Found link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.3b2.tar.gz#md5=e30ae85d490e87f3788eb4a59e590130 (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.3b2
Found link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.3c1.tar.gz#md5=310dd856e439d070b59ece6dd7a0734d (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.3c1
Found link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4.zip#md5=ddf2386daf10a97af115ffad2ed4a9a0 (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.4
Found link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4b1.tar.gz#md5=138669627e06f10c1c2e75122f673c21 (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.4b1
Found link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4b2.tar.gz#md5=d13f7351e195277ffd019bd7644312c9 (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.4b2
Found link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4b3.tar.gz#md5=b495d89426d83ba1e305f774e81b872f (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.4b3
Found link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4b3.zip#md5=2fb8db45f5c71dbc5869bd19eaaf546c (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.4b3
Found link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4b4.tar.gz#md5=0958cb9c23d5a656caac031c4886b1cf (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.4b4
Found link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4b4.zip#md5=2ce6fad5c5fe4074c33e8e799dc7a0af (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.4b4
Found link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4b5.tar.gz#md5=2d760ee948aff4f50d01afdf8afff48c (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.4b5
Found link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4b5.zip#md5=4f645ed23ea0f8848be77f25ffe94ade (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.4b5
Found link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4c1.zip#md5=a05925412cd824104da064db6a889613 (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.4c1
Found link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.5.zip#md5=654f75b302db6ed8dc5a898c625e030c (from https://pypi.python.org/simple/MySQL-python/), version: 1.2.5
Ignoring link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.3b1.tar.gz#md5=906c00cbfb81f54a474b3e7dcf7236bb (from https://pypi.python.org/simple/MySQL-python/), version 1.2.3b1 is a pre-release (use --pre to allow).
Ignoring link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.3b2.tar.gz#md5=e30ae85d490e87f3788eb4a59e590130 (from https://pypi.python.org/simple/MySQL-python/), version 1.2.3b2 is a pre-release (use --pre to allow).
Ignoring link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.3c1.tar.gz#md5=310dd856e439d070b59ece6dd7a0734d (from https://pypi.python.org/simple/MySQL-python/), version 1.2.3c1 is a pre-release (use --pre to allow).
Ignoring link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4b1.tar.gz#md5=138669627e06f10c1c2e75122f673c21 (from https://pypi.python.org/simple/MySQL-python/), version 1.2.4b1 is a pre-release (use --pre to allow).
Ignoring link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4b2.tar.gz#md5=d13f7351e195277ffd019bd7644312c9 (from https://pypi.python.org/simple/MySQL-python/), version 1.2.4b2 is a pre-release (use --pre to allow).
Ignoring link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4b3.tar.gz#md5=b495d89426d83ba1e305f774e81b872f (from https://pypi.python.org/simple/MySQL-python/), version 1.2.4b3 is a pre-release (use --pre to allow).
Ignoring link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4b3.zip#md5=2fb8db45f5c71dbc5869bd19eaaf546c (from https://pypi.python.org/simple/MySQL-python/), version 1.2.4b3 is a pre-release (use --pre to allow).
Ignoring link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4b4.tar.gz#md5=0958cb9c23d5a656caac031c4886b1cf (from https://pypi.python.org/simple/MySQL-python/), version 1.2.4b4 is a pre-release (use --pre to allow).
Ignoring link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4b4.zip#md5=2ce6fad5c5fe4074c33e8e799dc7a0af (from https://pypi.python.org/simple/MySQL-python/), version 1.2.4b4 is a pre-release (use --pre to allow).
Ignoring link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4b5.tar.gz#md5=2d760ee948aff4f50d01afdf8afff48c (from https://pypi.python.org/simple/MySQL-python/), version 1.2.4b5 is a pre-release (use --pre to allow).
Ignoring link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4b5.zip#md5=4f645ed23ea0f8848be77f25ffe94ade (from https://pypi.python.org/simple/MySQL-python/), version 1.2.4b5 is a pre-release (use --pre to allow).
Ignoring link https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4c1.zip#md5=a05925412cd824104da064db6a889613 (from https://pypi.python.org/simple/MySQL-python/), version 1.2.4c1 is a pre-release (use --pre to allow).
Using version 1.2.5 (newest of versions: 1.2.5, 1.2.4, 1.2.3)
Downloading from URL https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.5.zip#md5=654f75b302db6ed8dc5a898c625e030c (from https://pypi.python.org/simple/MySQL-python/)
Running setup.py (path:/Users/jacobfierro/.virtualenvs/django_polls/build/MySQL-python/setup.py) egg_info for package MySQL-python
running egg_info
creating pip-egg-info/MySQL_python.egg-info
writing dependency_links to pip-egg-info/MySQL_python.egg-info/dependency_links.txt
writing pip-egg-info/MySQL_python.egg-info/PKG-INFO
writing top-level names to pip-egg-info/MySQL_python.egg-info/top_level.txt
writing manifest file 'pip-egg-info/MySQL_python.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
reading manifest file 'pip-egg-info/MySQL_python.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pip-egg-info/MySQL_python.egg-info/SOURCES.txt'
Source in /Users/jacobfierro/.virtualenvs/django_polls/build/MySQL-python has version 1.2.5, which satisfies requirement MySQL-python
Installing collected packages: MySQL-python
Running setup.py install for MySQL-python
Running command /Users/jacobfierro/.virtualenvs/django_polls/bin/python -c "import setuptools, tokenize;__file__='/Users/jacobfierro/.virtualenvs/django_polls/build/MySQL-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/nh/2mcz_49921s_zc1smctmb1dw0000gn/T/pip-L_yO5V-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/jacobfierro/.virtualenvs/django_polls/include/site/python2.7
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-intel-2.7
copying _mysql_exceptions.py -> build/lib.macosx-10.9-intel-2.7
creating build/lib.macosx-10.9-intel-2.7/MySQLdb
copying MySQLdb/__init__.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb
copying MySQLdb/converters.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb
copying MySQLdb/connections.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb
copying MySQLdb/cursors.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb
copying MySQLdb/release.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb
copying MySQLdb/times.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb
creating build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
copying MySQLdb/constants/__init__.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.macosx-10.9-intel-2.7
-fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/local/mysql/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.9-intel-2.7/_mysql.o -Os -g -fno-common -fno-strict-aliasing -arch x86_64
unable to execute -fno-strict-aliasing: No such file or directory
error: command '-fno-strict-aliasing' failed with exit status 1
Complete output from command /Users/jacobfierro/.virtualenvs/django_polls/bin/python -c "import setuptools, tokenize;__file__='/Users/jacobfierro/.virtualenvs/django_polls/build/MySQL-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/nh/2mcz_49921s_zc1smctmb1dw0000gn/T/pip-L_yO5V-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/jacobfierro/.virtualenvs/django_polls/include/site/python2.7:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-intel-2.7
copying _mysql_exceptions.py -> build/lib.macosx-10.9-intel-2.7
creating build/lib.macosx-10.9-intel-2.7/MySQLdb
copying MySQLdb/__init__.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb
copying MySQLdb/converters.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb
copying MySQLdb/connections.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb
copying MySQLdb/cursors.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb
copying MySQLdb/release.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb
copying MySQLdb/times.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb
creating build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
copying MySQLdb/constants/__init__.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.macosx-10.9-intel-2.7
-fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/local/mysql/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.9-intel-2.7/_mysql.o -Os -g -fno-common -fno-strict-aliasing -arch x86_64
unable to execute -fno-strict-aliasing: No such file or directory
error: command '-fno-strict-aliasing' failed with exit status 1
----------------------------------------
Cleaning up...
Removing temporary dir /Users/jacobfierro/.virtualenvs/django_polls/build...
Command /Users/jacobfierro/.virtualenvs/django_polls/bin/python -c "import setuptools, tokenize;__file__='/Users/jacobfierro/.virtualenvs/django_polls/build/MySQL-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/nh/2mcz_49921s_zc1smctmb1dw0000gn/T/pip-L_yO5V-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/jacobfierro/.virtualenvs/django_polls/include/site/python2.7 failed with error code 1 in /Users/jacobfierro/.virtualenvs/django_polls/build/MySQL-python
Exception information:
Traceback (most recent call last):
File "/Users/jacobfierro/.virtualenvs/django_polls/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/Users/jacobfierro/.virtualenvs/django_polls/lib/python2.7/site-packages/pip/commands/install.py", line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/Users/jacobfierro/.virtualenvs/django_polls/lib/python2.7/site-packages/pip/req.py", line 1435, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/Users/jacobfierro/.virtualenvs/django_polls/lib/python2.7/site-packages/pip/req.py", line 706, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/Users/jacobfierro/.virtualenvs/django_polls/lib/python2.7/site-packages/pip/util.py", line 697, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /Users/jacobfierro/.virtualenvs/django_polls/bin/python -c "import setuptools, tokenize;__file__='/Users/jacobfierro/.virtualenvs/django_polls/build/MySQL-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/nh/2mcz_49921s_zc1smctmb1dw0000gn/T/pip-L_yO5V-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/jacobfierro/.virtualenvs/django_polls/include/site/python2.7 failed with error code 1 in /Users/jacobfierro/.virtualenvs/django_polls/build/MySQL-python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment