[cross-posted from SO: http://stackoverflow.com/questions/34554471/markupsafe-wont-install-in-virtualenv-on-amazon-linux ]
I find that MarkupSafe installs fine in the main machine environment, but in a virutalenv, pip silently fails.
Is there more I ought to do to help debug this?
[user@host ~]$ virtualenv testenv
New python executable in testenv/bin/python2.7
Also creating executable in testenv/bin/python
Installing setuptools, pip...done.
[user@host ~]$ \. testenv/bin/activate
(testenv)[user@host ~]$ pip install
You are using pip version 6.0.8, however version 7.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
You must give at least one requirement to install (see "pip help install")
(testenv)[user@host ~]$ pip install --upgrade pip
You are using pip version 6.0.8, however version 7.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-7.1.2-py2.py3-none-any.whl#md5=5ff9fec0be479e4e36df467556deed4d
Using cached pip-7.1.2-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 6.0.8
Uninstalling pip-6.0.8:
Successfully uninstalled pip-6.0.8
Successfully installed pip-7.1.2
(testenv)[user@host ~]$ pip install pip
Requirement already satisfied (use --upgrade to upgrade): pip in ./testenv/lib/python2.7/dist-packages
(testenv)[user@host ~]$ pip install markupsafe
Collecting markupsafe
Using cached MarkupSafe-0.23.tar.gz
Installing collected packages: markupsafe
Running setup.py install for markupsafe
Successfully installed markupsafe
(testenv)[user@host ~]$ pip install markupsafe
Collecting markupsafe
Using cached MarkupSafe-0.23.tar.gz
Installing collected packages: markupsafe
Running setup.py install for markupsafe
Successfully installed markupsafe
(testenv)[user@host ~]$ which python
~/testenv/bin/python
(testenv)[user@host ~]$ python
Python 2.7.10 (default, Dec 8 2015, 18:25:23)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import markupsafe
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named markupsafe
>>>
(testenv)[user@host ~]$ pip freeze
(testenv)[user@host ~]$
Hmm, I couldn't reproduce locally. Tested with both a Python 2 & 3 virtualenv.
ivo路ivosung ~ 禄 mktmpenv
Using base prefix '/usr'
New python executable in /home/ivo/.virtualenvs/tmp-8951b14b70586/bin/python3
Also creating executable in /home/ivo/.virtualenvs/tmp-8951b14b70586/bin/python
Installing setuptools, pip, wheel...done.
virtualenvwrapper.user_scripts creating /home/ivo/.virtualenvs/tmp-8951b14b70586/bin/predeactivate
virtualenvwrapper.user_scripts creating /home/ivo/.virtualenvs/tmp-8951b14b70586/bin/postdeactivate
virtualenvwrapper.user_scripts creating /home/ivo/.virtualenvs/tmp-8951b14b70586/bin/preactivate
virtualenvwrapper.user_scripts creating /home/ivo/.virtualenvs/tmp-8951b14b70586/bin/postactivate
virtualenvwrapper.user_scripts creating /home/ivo/.virtualenvs/tmp-8951b14b70586/bin/get_env_details
This is a temporary environment. It will be deleted when you run 'deactivate'.
tmp-8951b14b70586 ivo路ivosung ~/.virtualenvs/tmp-8951b14b70586 禄 pip install markupsafe
Collecting markupsafe
Using cached MarkupSafe-0.23.tar.gz
Building wheels for collected packages: markupsafe
Running setup.py bdist_wheel for markupsafe ... done
Stored in directory: /home/ivo/.cache/pip/wheels/94/a7/79/f79a998b64c1281cb99fa9bbd33cfc9b8b5775f438218d17a7
Successfully built markupsafe
Installing collected packages: markupsafe
Successfully installed markupsafe-0.23
tmp-8951b14b70586 ivo路ivosung ~/.virtualenvs/tmp-8951b14b70586 禄 python
Python 3.5.1 (default, Dec 7 2015, 12:58:09)
[GCC 5.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import markupsafe
>>>
tmp-8951b14b70586 ivo路ivosung ~/.virtualenvs/tmp-8951b14b70586 禄 deactivate
Removing temporary environment: tmp-8951b14b70586
Removing tmp-8951b14b70586...
ivo路ivosung ~/.virtualenvs 禄 mktmpenv --python=python2
Running virtualenv with interpreter /home/ivo/.pyenv/shims/python2
New python executable in /home/ivo/.virtualenvs/tmp-bb41a7c916656df/bin/python2
Also creating executable in /home/ivo/.virtualenvs/tmp-bb41a7c916656df/bin/python
Installing setuptools, pip, wheel...done.
virtualenvwrapper.user_scripts creating /home/ivo/.virtualenvs/tmp-bb41a7c916656df/bin/predeactivate
virtualenvwrapper.user_scripts creating /home/ivo/.virtualenvs/tmp-bb41a7c916656df/bin/postdeactivate
virtualenvwrapper.user_scripts creating /home/ivo/.virtualenvs/tmp-bb41a7c916656df/bin/preactivate
virtualenvwrapper.user_scripts creating /home/ivo/.virtualenvs/tmp-bb41a7c916656df/bin/postactivate
virtualenvwrapper.user_scripts creating /home/ivo/.virtualenvs/tmp-bb41a7c916656df/bin/get_env_details
This is a temporary environment. It will be deleted when you run 'deactivate'.
tmp-bb41a7c916656df ivo路ivosung ~/.virtualenvs/tmp-bb41a7c916656df 禄 pip install markupsafe
Collecting markupsafe
Installing collected packages: markupsafe
Successfully installed markupsafe-0.23
tmp-bb41a7c916656df ivo路ivosung ~/.virtualenvs/tmp-bb41a7c916656df 禄 python
Python 2.7.11 (default, Dec 6 2015, 15:43:46)
[GCC 5.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import markupsafe
>>>
tmp-bb41a7c916656df ivo路ivosung ~/.virtualenvs/tmp-bb41a7c916656df 禄 deactivate
Removing temporary environment: tmp-bb41a7c916656df
Removing tmp-bb41a7c916656df...
Ivoz, can you confirm that that was running on Amazon Linux?
@dsadinoff This looks like something specific to Amazon Linux. And markupsafe's setup.py
does some fancy things to test-build a C extension. Could you run pip install markupsafe -v
to get the full log of the install?
I suspect markupsafe's setup.py
is failing somehow, but isn't correctly setting its exit status so that pip notices the failure. But that's just speculation, let's see the full log first :-)
here you go:
(testenv)[dsadinoff@host ~]$ pip install markupsafe -v
Collecting markupsafe
1 location(s) to search for versions of markupsafe:
* https://pypi.python.org/simple/markupsafe/
Getting page https://pypi.python.org/simple/markupsafe/
Looking up "https://pypi.python.org/simple/markupsafe/" in the cache
Current age based on date: 32
Freshness lifetime from max-age: 600
Freshness lifetime from request max-age: 600
The response is "fresh", returning cached response
600 > 32
Analyzing links from page https://pypi.python.org/simple/markupsafe/
Found link https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.11.tar.gz#md5=48d445941c16d6aa55caf8e148fc0911 (from https://pypi.python.org/simple/markupsafe/), version: 0.11
Found link https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.12.tar.gz#md5=edd4b6950f6d4ddc6e23fa322f8f0f53 (from https://pypi.python.org/simple/markupsafe/), version: 0.12
Found link https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.13.tar.gz#md5=f44b8f4bba98b3e66884158f97585829 (from https://pypi.python.org/simple/markupsafe/), version: 0.13
Found link https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.14.tar.gz#md5=68c6ea6df002649218d24cf490a8ca82 (from https://pypi.python.org/simple/markupsafe/), version: 0.14
Found link https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.15.tar.gz#md5=4e7c4d965fe5e033fa2d7bb7746bb186 (from https://pypi.python.org/simple/markupsafe/), version: 0.15
Found link https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.16.tar.gz#md5=fe88012f7fe75252efd26cd25a100851 (from https://pypi.python.org/simple/markupsafe/), version: 0.16
Found link https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.17.tar.gz#md5=61d5edc130e3242cfaff9fd9fdefde8f (from https://pypi.python.org/simple/markupsafe/), version: 0.17
Found link https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.18.tar.gz#md5=f8d252fd05371e51dec2fe9a36890687 (from https://pypi.python.org/simple/markupsafe/), version: 0.18
Found link https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.19.tar.gz#md5=ccb3f746c807c5500850987006854a6d (from https://pypi.python.org/simple/markupsafe/), version: 0.19
Found link https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.20.tar.gz#md5=7da066d9cb191a70aa85d0a3d43565d1 (from https://pypi.python.org/simple/markupsafe/), version: 0.20
Found link https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.21.tar.gz#md5=fde838d9337fa51744283f46a1db2e74 (from https://pypi.python.org/simple/markupsafe/), version: 0.21
Found link https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.22.tar.gz#md5=cb3ec29fd5361add24cfd0c6e2953b3e (from https://pypi.python.org/simple/markupsafe/), version: 0.22
Found link https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.23.tar.gz#md5=f5ab3deee4c37cd6a922fb81e730da6e (from https://pypi.python.org/simple/markupsafe/), version: 0.23
Found link https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.9.1.tar.gz#md5=7f469f664b565b440f099997255e6d3c (from https://pypi.python.org/simple/markupsafe/), version: 0.9.1
Found link https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.9.2.tar.gz#md5=69b72d1afdd9e808f9c1ef65f819c7a6 (from https://pypi.python.org/simple/markupsafe/), version: 0.9.2
Found link https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.9.3.tar.gz#md5=99dccbeb83302f6b593d382098b3b43a (from https://pypi.python.org/simple/markupsafe/), version: 0.9.3
Found link https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.9.tar.gz#md5=10a7c6bf81f91f280ba9e76e32e01c94 (from https://pypi.python.org/simple/markupsafe/), version: 0.9
Using version 0.23 (newest of versions: 0.9, 0.9.1, 0.9.2, 0.9.3, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.20, 0.21, 0.22, 0.23)
Looking up "https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.23.tar.gz" in the cache
Current age based on date: 32
Freshness lifetime from max-age: 31557600
The response is "fresh", returning cached response
31557600 > 32
Using cached MarkupSafe-0.23.tar.gz
Downloading from URL https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.23.tar.gz#md5=f5ab3deee4c37cd6a922fb81e730da6e (from https://pypi.python.org/simple/markupsafe/)
Running setup.py (path:/tmp/pip-build-heIqGP/markupsafe/setup.py) egg_info for package markupsafe
Running command python setup.py egg_info
Source in /tmp/pip-build-heIqGP/markupsafe has version 0.23, which satisfies requirement markupsafe from https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.23.tar.gz#md5=f5ab3deee4c37cd6a922fb81e730da6e
Installing collected packages: markupsafe
Running setup.py install for markupsafe ... ^[[?25l Running command /home/dsadinoff/testenv/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-heIqGP/markupsafe/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-CqiswZ-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/dsadinoff/testenv/include/site/python2.7/markupsafe
done
^[[?25h Removing source in /tmp/pip-build-heIqGP/markupsafe
Successfully installed markupsafe
Cleaning up...
(testenv)[dsadinoff@host ~]$
Bah. That still didn't show the output of setup.py install
. Would you mind trying again with -vvv
(to get maximum level logging)? My apologies, I should have asked for this originally.
I just ran locally on ArchLinux.
It's actually surprising that pip installed markupsafe twice, from your initial paste. It should normally say that the requirement is already satisfied.
It is reproducible on amazon linux 2015.09 where I encountered same problem installing twisted, see my comment on SO. Amazon Linux installs virtualenv-12.0.7 by default, I fixed it by installing latest 15.0.0.
I was able to solve this by using the 64bit Amazon Linux 2016.03 v2.1.0 AMI. Also, since I had replaced the default wsgi.conf with one that I made changes to, it was critical that I got the original wsgi.conf for this AMI and made my customizations to it rather than continuing to use the customized wsgi.conf that I was using for the previous AMI.
Same for me, upgrading virtualenv from 12.0.7 to 15.0.0 did the trick.
@pfmoore vvv
output with virtualenv 12.0.7
Collecting MarkupSafe
Getting page https://pypi.python.org/simple/markupsafe/
URLs to search for versions for MarkupSafe:
* https://pypi.python.org/simple/markupsafe/
Getting page https://pypi.python.org/simple/markupsafe/
Analyzing links from page https://pypi.python.org/simple/markupsafe/
Found link https://pypi.python.org/packages/00/00/d268f88c561a92e35e1df96e68dbec2210926366c79fd426b1d9ee99b020/MarkupSafe-0.12.tar.gz#md5=edd4b6950f6d4ddc6e23fa322f8f0f53 (from https://pypi.python.org/simple/markupsafe/), version: 0.12
Found link https://pypi.python.org/packages/00/52/33fd9769edf01ffab9e3fd321333fe4d9f7ac9cb0b17ce9524abcb64e089/MarkupSafe-0.15.tar.gz#md5=4e7c4d965fe5e033fa2d7bb7746bb186 (from https://pypi.python.org/simple/markupsafe/), version: 0.15
Found link https://pypi.python.org/packages/04/d0/21c43bb0a9c9b31c8bfeb3676e12ec0aae2b71632497b6bd6505c980a38a/MarkupSafe-0.17.tar.gz#md5=61d5edc130e3242cfaff9fd9fdefde8f (from https://pypi.python.org/simple/markupsafe/), version: 0.17
Found link https://pypi.python.org/packages/36/83/400b5f58bfa88f96bc68ccd963990c80549a2825d0777bd838f03d8f0b42/MarkupSafe-0.9.2.tar.gz#md5=69b72d1afdd9e808f9c1ef65f819c7a6 (from https://pypi.python.org/simple/markupsafe/), version: 0.9.2
Found link https://pypi.python.org/packages/3b/45/dfad433343922655477760d506b058f96a783e8c0ada7b8d0602ff2beace/MarkupSafe-0.9.1.tar.gz#md5=7f469f664b565b440f099997255e6d3c (from https://pypi.python.org/simple/markupsafe/), version: 0.9.1
Found link https://pypi.python.org/packages/44/ee/37bd0844418acd5fb9c588aae835f38b9b7c4cd0c9b95c78c8ebb74bb65a/MarkupSafe-0.16.tar.gz#md5=fe88012f7fe75252efd26cd25a100851 (from https://pypi.python.org/simple/markupsafe/), version: 0.16
Found link https://pypi.python.org/packages/58/18/646cbd99909a0c86eb7b9c0277b88cb54f3e2619f6115f48199a4accde97/MarkupSafe-0.22.tar.gz#md5=cb3ec29fd5361add24cfd0c6e2953b3e (from https://pypi.python.org/simple/markupsafe/), version: 0.22
Found link https://pypi.python.org/packages/61/9d/195c0e2e9efcba7b5f2cad9d01ea7311e20358a7d1c8a928fb481eecad09/MarkupSafe-0.13.tar.gz#md5=f44b8f4bba98b3e66884158f97585829 (from https://pypi.python.org/simple/markupsafe/), version: 0.13
Found link https://pypi.python.org/packages/6f/c3/7adab2342dc7f14d32943505c9bd163d93a16fa117b8fee82e48f3529fb5/MarkupSafe-0.20.tar.gz#md5=7da066d9cb191a70aa85d0a3d43565d1 (from https://pypi.python.org/simple/markupsafe/), version: 0.20
Found link https://pypi.python.org/packages/8e/90/da092a12fb96e0c4cacc279d1f92819ae82bfa291e0a03afe8059518e91a/MarkupSafe-0.19.tar.gz#md5=ccb3f746c807c5500850987006854a6d (from https://pypi.python.org/simple/markupsafe/), version: 0.19
Found link https://pypi.python.org/packages/98/cf/197c3b0f73224b84eb419a967f87565bcc0b0c1147012397e6bd2d45e253/MarkupSafe-0.18.tar.gz#md5=f8d252fd05371e51dec2fe9a36890687 (from https://pypi.python.org/simple/markupsafe/), version: 0.18
Found link https://pypi.python.org/packages/be/30/7dfaf5f61e9648a9bb97ecd0099da2546ea78fe93cb9c777030c6d056c0d/MarkupSafe-0.9.tar.gz#md5=10a7c6bf81f91f280ba9e76e32e01c94 (from https://pypi.python.org/simple/markupsafe/), version: 0.9
Found link https://pypi.python.org/packages/c0/41/bae1254e0396c0cc8cf1751cb7d9afc90a602353695af5952530482c963f/MarkupSafe-0.23.tar.gz#md5=f5ab3deee4c37cd6a922fb81e730da6e (from https://pypi.python.org/simple/markupsafe/), version: 0.23
Found link https://pypi.python.org/packages/c6/33/963f57460372f8401e1f9aa32c8ed8f07a5cae0f11024f5ff1d4cb3576c8/MarkupSafe-0.21.tar.gz#md5=fde838d9337fa51744283f46a1db2e74 (from https://pypi.python.org/simple/markupsafe/), version: 0.21
Found link https://pypi.python.org/packages/cf/72/6ad21b64f007dba3d211a973f37e3bf0bffae88c4efb868999fd2c94497a/MarkupSafe-0.14.tar.gz#md5=68c6ea6df002649218d24cf490a8ca82 (from https://pypi.python.org/simple/markupsafe/), version: 0.14
Found link https://pypi.python.org/packages/ee/51/df4a007a19f3de1b733adac77da11fa45f1ec5089549a7cc2d67195bb2c1/MarkupSafe-0.11.tar.gz#md5=48d445941c16d6aa55caf8e148fc0911 (from https://pypi.python.org/simple/markupsafe/), version: 0.11
Found link https://pypi.python.org/packages/f1/a7/39b74c3c7b46531842d2a9a55b7d6bf5b44851786d131d0fa76dbb4abf44/MarkupSafe-0.9.3.tar.gz#md5=99dccbeb83302f6b593d382098b3b43a (from https://pypi.python.org/simple/markupsafe/), version: 0.9.3
Using version 0.23 (newest of versions: 0.23, 0.22, 0.21, 0.20, 0.19, 0.18, 0.17, 0.16, 0.15, 0.14, 0.13, 0.12, 0.11, 0.9.3, 0.9.2, 0.9.1, 0.9)
Using cached MarkupSafe-0.23.tar.gz
Downloading from URL https://pypi.python.org/packages/c0/41/bae1254e0396c0cc8cf1751cb7d9afc90a602353695af5952530482c963f/MarkupSafe-0.23.tar.gz#md5=f5ab3deee4c37cd6a922fb81e730da6e (from https://pypi.python.org/simple/markupsafe/)
Running setup.py (path:/tmp/pip-build-S_p730/MarkupSafe/setup.py) egg_info for package MarkupSafe
Running command python setup.py egg_info
running egg_info
creating pip-egg-info/MarkupSafe.egg-info
writing pip-egg-info/MarkupSafe.egg-info/PKG-INFO
writing top-level names to pip-egg-info/MarkupSafe.egg-info/top_level.txt
writing dependency_links to pip-egg-info/MarkupSafe.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/MarkupSafe.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
reading manifest file 'pip-egg-info/MarkupSafe.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pip-egg-info/MarkupSafe.egg-info/SOURCES.txt'
Source in /tmp/pip-build-S_p730/MarkupSafe has version 0.23, which satisfies requirement MarkupSafe
Installing collected packages: MarkupSafe
Running setup.py install for MarkupSafe
Running command /opt/useresponse_reports/venv/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip-build-S_p730/MarkupSafe/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Wsy8RZ-record/install-record.txt --single-version-externally-managed --compile --install-headers /opt/useresponse_reports/venv/include/site/python2.7
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/markupsafe
copying markupsafe/tests.py -> build/lib.linux-x86_64-2.7/markupsafe
copying markupsafe/_compat.py -> build/lib.linux-x86_64-2.7/markupsafe
copying markupsafe/_constants.py -> build/lib.linux-x86_64-2.7/markupsafe
copying markupsafe/_native.py -> build/lib.linux-x86_64-2.7/markupsafe
copying markupsafe/__init__.py -> build/lib.linux-x86_64-2.7/markupsafe
running egg_info
writing MarkupSafe.egg-info/PKG-INFO
writing top-level names to MarkupSafe.egg-info/top_level.txt
writing dependency_links to MarkupSafe.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'MarkupSafe.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'MarkupSafe.egg-info/SOURCES.txt'
copying markupsafe/_speedups.c -> build/lib.linux-x86_64-2.7/markupsafe
running build_ext
building 'markupsafe._speedups' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/markupsafe
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c markupsafe/_speedups.c -o build/temp.linux-x86_64-2.7/markupsafe/_speedups.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/markupsafe/_speedups.o -L/usr/lib64 -lpython2.7 -o build/lib.linux-x86_64-2.7/markupsafe/_speedups.so
running install_lib
creating /opt/useresponse_reports/venv/lib64/python2.7/dist-packages/markupsafe
copying build/lib.linux-x86_64-2.7/markupsafe/tests.py -> /opt/useresponse_reports/venv/lib64/python2.7/dist-packages/markupsafe
copying build/lib.linux-x86_64-2.7/markupsafe/_compat.py -> /opt/useresponse_reports/venv/lib64/python2.7/dist-packages/markupsafe
copying build/lib.linux-x86_64-2.7/markupsafe/_constants.py -> /opt/useresponse_reports/venv/lib64/python2.7/dist-packages/markupsafe
copying build/lib.linux-x86_64-2.7/markupsafe/_speedups.so -> /opt/useresponse_reports/venv/lib64/python2.7/dist-packages/markupsafe
copying build/lib.linux-x86_64-2.7/markupsafe/_native.py -> /opt/useresponse_reports/venv/lib64/python2.7/dist-packages/markupsafe
copying build/lib.linux-x86_64-2.7/markupsafe/_speedups.c -> /opt/useresponse_reports/venv/lib64/python2.7/dist-packages/markupsafe
copying build/lib.linux-x86_64-2.7/markupsafe/__init__.py -> /opt/useresponse_reports/venv/lib64/python2.7/dist-packages/markupsafe
byte-compiling /opt/useresponse_reports/venv/lib64/python2.7/dist-packages/markupsafe/tests.py to tests.pyc
byte-compiling /opt/useresponse_reports/venv/lib64/python2.7/dist-packages/markupsafe/_compat.py to _compat.pyc
byte-compiling /opt/useresponse_reports/venv/lib64/python2.7/dist-packages/markupsafe/_constants.py to _constants.pyc
byte-compiling /opt/useresponse_reports/venv/lib64/python2.7/dist-packages/markupsafe/_native.py to _native.pyc
byte-compiling /opt/useresponse_reports/venv/lib64/python2.7/dist-packages/markupsafe/__init__.py to __init__.pyc
running install_egg_info
Copying MarkupSafe.egg-info to /opt/useresponse_reports/venv/lib64/python2.7/dist-packages/MarkupSafe-0.23-py2.7.egg-info
running install_scripts
writing list of installed files to '/tmp/pip-Wsy8RZ-record/install-record.txt'
Successfully installed MarkupSafe-0.23
Cleaning up..
Looks like an old version of pip, as it's doing setup.py install
. New versions do setup.py wheel
then install the wheel.
I'd be inclined to write this off as a quirk of old behaviour of "something" (pip, setuptools?) and say that upgrading is the fix, unless anyone hits it with a current version of pip.
Agree, virtualenv 12.07 uses pip 6.0.8 and virtualenv 15.1.0 uses pip 9.0.1
Yup, looks fine for me now as well. looks like the various tools "grew out" of the bug. thanks!
We're still getting this same issue on Amazon Linux for MarkupSafe. Any workaround?
I'm seeing this on several compiled extensions on AmazonLinux 2.8.0, so I don't think that this is specific to markupsafe. See here for workaround: https://github.com/pypa/virtualenv/issues/1117#issuecomment-357066718
Most helpful comment
It is reproducible on amazon linux 2015.09 where I encountered same problem installing twisted, see my comment on SO. Amazon Linux installs virtualenv-12.0.7 by default, I fixed it by installing latest 15.0.0.