question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pip 19.1.1 (get-pip.py) fails to installing egenix-mx-base with a gcc error (older version works fine)

See original GitHub issue

Environment

  • pip version:19.1.1
  • Python version: 2.7.13
  • OS: debian:9

Reproduced in docker containers but I assume it is not specific to that.

Description A pip install of egenix-mx-base fails with a gcc error when using recent pip 19.1.1 from a get-pip.py install. Oddly, it works with the debian repo’s pip, an older version.

Expected behavior Weird, it works with debian stretch’s pip 9.0.1 from apt-get:

$ docker run -ti debian:9 bash
root@d35ede567f65:/# apt-get update &&  apt-get install -y curl python
root@d35ede567f65:/# apt-get install -y python-pip
root@d35ede567f65:/# pip --version
pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)
root@d35ede567f65:/#  pip install egenix-mx-base==3.2.9
Collecting egenix-mx-base==3.2.9
  Downloading https://files.pythonhosted.org/packages/66/e6/e0709aedeb4a5c92a1aeb8c47ab50e9506eafc865806801bd3f01d72b671/egenix-mx-base-3.2.9.zip (74kB)
    100% |################################| 81kB 2.8MB/s 
Building wheels for collected packages: egenix-mx-base
  Running setup.py bdist_wheel for egenix-mx-base ... done
  Stored in directory: /root/.cache/pip/wheels/4f/65/d2/412735e56129b7dbcbc803c2250fb807936d7dab95a61e05fd
Successfully built egenix-mx-base
Installing collected packages: egenix-mx-base
Successfully installed egenix-mx-base-3.2.9

How to Reproduce

$ docker run -ti debian:9 bash
# apt-get update &&  apt-get install -y curl python
# curl https://bootstrap.pypa.io/get-pip.py | python # versus "apt-get install python-pip"
# pip install egenix-mx-base==3.2.9
ERROR

Output

$ docker run -ti debian:9 bash
root@55b6cd5675fa:/# apt-get update &&  apt-get install -y curl python
root@55b6cd5675fa:/# curl https://bootstrap.pypa.io/get-pip.py | python
root@55b6cd5675fa:/# pip --version
pip 19.1.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
root@55b6cd5675fa:/# pip install egenix-mx-base==3.2.9
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting egenix-mx-base==3.2.9
  Downloading https://files.pythonhosted.org/packages/66/e6/e0709aedeb4a5c92a1aeb8c47ab50e9506eafc865806801bd3f01d72b671/egenix-mx-base-3.2.9.zip (74kB)
     |################################| 81kB 3.3MB/s 
Building wheels for collected packages: egenix-mx-base
  Building wheel for egenix-mx-base (setup.py) ... error
  ERROR: Complete output from command /usr/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-4VK36c/egenix-mx-base/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/pip-wheel-fKh8Yd --python-tag cp27:
  ERROR: running bdist_wheel
  found usable build data file 'build/build-py2.7_ucs4.pck'
  prebuilt archive found: skipping the build process and loading the prebuilt archive
  setting platform to 'linux-x86_64'
  restoring build data from a previous build run
  loaded build data for platform 'linux-x86_64'
  installing to build/bdist.linux-x86_64-py2.7_ucs4/wheel
  running install
  running install_lib
  running build_ext
  
  building extension "mx.DateTime.mxDateTime.mxDateTime" (required)
  checking for optional libraries
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c _configtest.c -o _configtest.o
  unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
  failure.
  removing: _configtest.c _configtest.o
  could not find optional library 'm' -- omitting it
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c _configtest.c -o _configtest.o
  unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
  failure.
  removing: _configtest.c _configtest.o
  could not find optional library 'rt' -- omitting it
  building 'mx.DateTime.mxDateTime.mxDateTime' extension
  creating build/temp.linux-x86_64-2.7_ucs4
  creating build/temp.linux-x86_64-2.7_ucs4/mx-DateTime-mxDateTime-mxDateTime
  creating build/temp.linux-x86_64-2.7_ucs4/mx-DateTime-mxDateTime-mxDateTime/mx
  creating build/temp.linux-x86_64-2.7_ucs4/mx-DateTime-mxDateTime-mxDateTime/mx/DateTime
  creating build/temp.linux-x86_64-2.7_ucs4/mx-DateTime-mxDateTime-mxDateTime/mx/DateTime/mxDateTime
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DUSE_FAST_GETCURRENTTIME -Imx/DateTime/mxDateTime -I/usr/include/python2.7 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.linux-x86_64-2.7_ucs4/mx-DateTime-mxDateTime-mxDateTime/mx/DateTime/mxDateTime/mxDateTime.o
  unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for egenix-mx-base
  Running setup.py clean for egenix-mx-base
Failed to build egenix-mx-base
Installing collected packages: egenix-mx-base
  Running setup.py install for egenix-mx-base ... error
    ERROR: Complete output from command /usr/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-4VK36c/egenix-mx-base/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-record-RdEYCg/install-record.txt --single-version-externally-managed --compile:
    ERROR: running install
    no build data file 'build/build-py2.7_ucs4.pck' found
    error: [Errno 2] No such file or directory: 'build/build-py2.7_ucs4.pck'
    ----------------------------------------
ERROR: Command "/usr/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-4VK36c/egenix-mx-base/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-record-RdEYCg/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-4VK36c/egenix-mx-base/

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
pradyunsgcommented, Feb 6, 2020

Alrighty! Thanks for checking @cthart! ^.^

1reaction
pradyunsgcommented, Feb 5, 2020

Can someone check if this is reproducible with pip 20.0.2?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python pip install fails: invalid command egg_info
I found a reference online that one has to use "python2 setup.py install" from the download directory, and indeed find that this will...
Read more >
Installation — Cryptography 39.0.0.dev1 documentation
On most Linux distributions, the latest version of pip will be able to install a binary wheel, so you won't need a Rust...
Read more >
[egenix-users] pip 19.1 breaks install: mxDateTime.c: No such ...
get -pip.py # pip --version pip 19.1.1 from ... for egenix-mx-base (setup.py) ... error ERROR: Complete output from command /usr/bin/python ...
Read more >
pip 0.6.2 - PyPI
The old version of the package is automatically restored if the new version fails to download or install. Requirements Files. When installing software,...
Read more >
Install with pip | dbt Developer Hub
You can install dbt Core and plugins using pip because they are Python modules distributed on PyPI. We recommend using virtual environments ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found