{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/8361","repository_url":"https://api.github.com/repos/matplotlib/matplotlib","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/8361/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/8361/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/8361/events","html_url":"https://github.com/matplotlib/matplotlib/issues/8361","id":216167617,"number":8361,"title":"Installation on CentOS using pip in virtualenv","user":{"login":"CorbinFoucart","id":4095293,"avatar_url":"https://avatars3.githubusercontent.com/u/4095293?v=4","gravatar_id":"","url":"https://api.github.com/users/CorbinFoucart","html_url":"https://github.com/CorbinFoucart","followers_url":"https://api.github.com/users/CorbinFoucart/followers","following_url":"https://api.github.com/users/CorbinFoucart/following{/other_user}","gists_url":"https://api.github.com/users/CorbinFoucart/gists{/gist_id}","starred_url":"https://api.github.com/users/CorbinFoucart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CorbinFoucart/subscriptions","organizations_url":"https://api.github.com/users/CorbinFoucart/orgs","repos_url":"https://api.github.com/users/CorbinFoucart/repos","events_url":"https://api.github.com/users/CorbinFoucart/events{/privacy}","received_events_url":"https://api.github.com/users/CorbinFoucart/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/12","html_url":"https://github.com/matplotlib/matplotlib/milestone/12","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/12/labels","id":534144,"number":12,"title":"2.1 (next point release)","description":"Next feature release.\r\n\r\n","creator":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars3.githubusercontent.com/u/199813?v=4","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1312,"state":"closed","created_at":"2014-01-13T03:21:09Z","updated_at":"2017-11-12T19:30:24Z","due_on":null,"closed_at":"2017-10-03T16:31:17Z"},"comments":21,"created_at":"2017-03-22T18:34:59Z","updated_at":"2017-12-08T22:55:17Z","closed_at":"2017-08-02T20:27:35Z","author_association":"NONE","body":"**Bug summary**\r\n\r\nrunning `pip install matplotlib` within a python 2.7 virtualenv crashes with an error message stating\r\n`Failed building wheel for subprocess32` on a CentOS cluster where I do not have admin rights. A python virtual environment I installed in October on the same cluster had no issue installing matplotlib using the same installation procedure, and I can still use matplotlib in the other virtual environment.\r\n\r\n\r\n`pip install matplotlib`\r\nproduces\r\n```python\r\n(venv) mseas(Kovasnay)% pip install matplotlib\r\nCollecting matplotlib\r\n  Using cached matplotlib-2.0.0-1-cp27-cp27mu-manylinux1_x86_64.whl\r\nRequirement already satisfied: functools32 in /home/foucartc/pyHDG/branches/MMSDebug/src/venv/lib/python2.7/site-packages (from matplotlib)\r\nRequirement already satisfied: numpy>=1.7.1 in /home/foucartc/pyHDG/branches/MMSDebug/src/venv/lib/python2.7/site-packages (from matplotlib)\r\nRequirement already satisfied: pyparsing!=2.0.0,!=2.0.4,!=2.1.2,!=2.1.6,>=1.5.6 in /home/foucartc/pyHDG/branches/MMSDebug/src/venv/lib/python2.7/site-packages (from matplotlib)\r\nRequirement already satisfied: python-dateutil in /home/foucartc/pyHDG/branches/MMSDebug/src/venv/lib/python2.7/site-packages (from matplotlib)\r\nRequirement already satisfied: cycler>=0.10 in /home/foucartc/pyHDG/branches/MMSDebug/src/venv/lib/python2.7/site-packages (from matplotlib)\r\nCollecting subprocess32 (from matplotlib)\r\n  Using cached subprocess32-3.2.7.tar.gz\r\nRequirement already satisfied: pytz in /home/foucartc/pyHDG/branches/MMSDebug/src/venv/lib/python2.7/site-packages (from matplotlib)\r\nRequirement already satisfied: six>=1.10 in /home/foucartc/pyHDG/branches/MMSDebug/src/venv/lib/python2.7/site-packages (from matplotlib)\r\nBuilding wheels for collected packages: subprocess32\r\n  Running setup.py bdist_wheel for subprocess32 ... error\r\n  Complete output from command /home/foucartc/pyHDG/branches/MMSDebug/src/venv/bin/python -u -c \"import setuptools, tokenize;__file__='/tmp/pip-build-QHNCMS/subprocess32/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" bdist_wheel -d /tmp/tmp8hlovApip-wheel- --python-tag cp27:\r\n  running bdist_wheel\r\n  running build\r\n  running build_py\r\n  creating build\r\n  creating build/lib.linux-x86_64-2.7\r\n  copying subprocess32.py -> build/lib.linux-x86_64-2.7\r\n  running build_ext\r\n  building '_posixsubprocess' extension\r\n  creating build/temp.linux-x86_64-2.7\r\n  gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/share/apps/Python-2.7.11/include/python2.7 -c _posixsubprocess.c -o build/temp.linux-x86_64-2.7/_posixsubprocess.o\r\n  gcc -pthread -shared build/temp.linux-x86_64-2.7/_posixsubprocess.o -L/home/mirabito/test_py2/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/_posixsubprocess.so\r\n  /usr/bin/ld: cannot find -lpython2.7\r\n  collect2: error: ld returned 1 exit status\r\n  error: command 'gcc' failed with exit status 1\r\n  \r\n  ----------------------------------------\r\n  Failed building wheel for subprocess32\r\n  Running setup.py clean for subprocess32\r\nFailed to build subprocess32\r\nInstalling collected packages: subprocess32, matplotlib\r\n  Running setup.py install for subprocess32 ... error\r\n    Complete output from command /home/foucartc/pyHDG/branches/MMSDebug/src/venv/bin/python -u -c \"import setuptools, tokenize;__file__='/tmp/pip-build-QHNCMS/subprocess32/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" install --record /tmp/pip-j8Yiv8-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/foucartc/pyHDG/branches/MMSDebug/src/venv/include/site/python2.7/subprocess32:\r\n    running install\r\n    running build\r\n    running build_py\r\n    creating build\r\n    creating build/lib.linux-x86_64-2.7\r\n    copying subprocess32.py -> build/lib.linux-x86_64-2.7\r\n    running build_ext\r\n    building '_posixsubprocess' extension\r\n    creating build/temp.linux-x86_64-2.7\r\n    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/share/apps/Python-2.7.11/include/python2.7 -c _posixsubprocess.c -o build/temp.linux-x86_64-2.7/_posixsubprocess.o\r\n    gcc -pthread -shared build/temp.linux-x86_64-2.7/_posixsubprocess.o -L/home/mirabito/test_py2/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/_posixsubprocess.so\r\n    /usr/bin/ld: cannot find -lpython2.7\r\n    collect2: error: ld returned 1 exit status\r\n    error: command 'gcc' failed with exit status 1\r\n    \r\n    ----------------------------------------\r\nCommand \"/home/foucartc/pyHDG/branches/MMSDebug/src/venv/bin/python -u -c \"import setuptools, tokenize;__file__='/tmp/pip-build-QHNCMS/subprocess32/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" install --record /tmp/pip-j8Yiv8-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/foucartc/pyHDG/branches/MMSDebug/src/venv/include/site/python2.7/subprocess32\" failed with error code 1 in /tmp/pip-build-QHNCMS/subprocess32/\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/350392717","html_url":"https://github.com/matplotlib/matplotlib/issues/8361#issuecomment-350392717","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/8361","id":350392717,"user":{"login":"sercretalphabets","id":11968008,"avatar_url":"https://avatars3.githubusercontent.com/u/11968008?v=4","gravatar_id":"","url":"https://api.github.com/users/sercretalphabets","html_url":"https://github.com/sercretalphabets","followers_url":"https://api.github.com/users/sercretalphabets/followers","following_url":"https://api.github.com/users/sercretalphabets/following{/other_user}","gists_url":"https://api.github.com/users/sercretalphabets/gists{/gist_id}","starred_url":"https://api.github.com/users/sercretalphabets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sercretalphabets/subscriptions","organizations_url":"https://api.github.com/users/sercretalphabets/orgs","repos_url":"https://api.github.com/users/sercretalphabets/repos","events_url":"https://api.github.com/users/sercretalphabets/events{/privacy}","received_events_url":"https://api.github.com/users/sercretalphabets/received_events","type":"User","site_admin":false},"created_at":"2017-12-08T22:55:17Z","updated_at":"2017-12-08T22:55:17Z","author_association":"NONE","body":"Solved this by adding the version: sudo pip install matplotlib==1.5.3\r\n"}}
{"actor":{"display_login":"sercretalphabets"}}