[egenix-users] pip 19.1 breaks install: mxDateTime.c: No such file or directory

Jam Afshar jamshid.afshar at caringo.com
Tue Jun 18 01:53:26 CEST 2019


I think this package has a bug or incompatibility with recent versions
of pip or with docker containers. It's easily reproducible.

I reported it to https://github.com/pypa/pip/issues/6609 but they
suggested filing a bug with you.

Downgrading to pip==19.0.3 *and* using --no-cache-dir seems to
workaround the bug but hopefully there's a better fix. The OS-install
pip also seems to work fine.

$ docker run -ti centos:7 bash
# yum install -y gcc python-devel
# curl -fLO https://bootstrap.pypa.io/get-pip.py && python ./get-pip.py
# pip --version
pip 19.1.1 from /usr/lib/python2.7/site-packages/pip (python 2.7)
# pip install egenix-mx-base
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
  Downloading https://files.pythonhosted.org/packages/66/e6/e0709aedeb4a5c92a1aeb8c47ab50e9506eafc865806801bd3f01d72b671/egenix-mx-base-3.2.9.zip
(74kB)
     |################################| 81kB 711kB/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-L6c0SN/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-Y3oD6J --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
  gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
-D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
-D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c
_configtest.c -o _configtest.o
  gcc -pthread _configtest.o -L/usr/lib64 -lm -o _configtest
  success!
  removing: _configtest.c _configtest.o _configtest
  found optional library 'm' -- defining HAVE_M_LIB
  gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
-D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
-D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c
_configtest.c -o _configtest.o
  gcc -pthread _configtest.o -L/usr/lib64 -lrt -o _configtest
  success!
  removing: _configtest.c _configtest.o _configtest
  found optional library 'rt' -- defining HAVE_RT_LIB
  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
  gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
-D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
-D_GNU_SOURCE -fPIC -fwrapv -fPIC -DUSE_FAST_GETCURRENTTIME
-DHAVE_M_LIB=1 -DHAVE_RT_LIB=1 -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
  gcc: error: mx/DateTime/mxDateTime/mxDateTime.c: No such file or directory
  gcc: fatal error: no input files
  compilation terminated.
  error: command 'gcc' failed with exit status 4
  ----------------------------------------
  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-L6c0SN/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-GhFuqy/install-record.txt
--single-version-externally-managed --compile:
    ERROR: running install
    no build data file 'build/build-py2.7_ucs4.pck' found
    error: build/build-py2.7_ucs4.pck: No such file or directory
    ----------------------------------------
ERROR: Command "/usr/bin/python -u -c 'import setuptools,
tokenize;__file__='"'"'/tmp/pip-install-L6c0SN/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-GhFuqy/install-record.txt
--single-version-externally-managed --compile" failed with error code
1 in /tmp/pip-install-L6c0SN/egenix-mx-base/



More information about the egenix-users mailing list