ciso8601 icon indicating copy to clipboard operation
ciso8601 copied to clipboard

Build fails on python3.9 on gravitron

Open marcmenem opened this issue 2 years ago • 2 comments

pip install ciso8601 fails on gravitron using python 3.9, it works just fine using 3.8. I think it might be a simple setup issue, but I am not sure where the complier flags are set.

#> pip install ciso8601
Collecting ciso8601
  Using cached ciso8601-2.2.0.tar.gz (18 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Building wheels for collected packages: ciso8601
  Building wheel for ciso8601 (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/marc/miniconda3/envs/f4s7/bin/python /home/marc/miniconda3/envs/f4s7/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpi0zgr8ag
       cwd: /tmp/pip-install-5qf0n2mx/ciso8601_1c4e847c2d6e4413bfa842892ac67bbc
  Complete output (16 lines):
  running bdist_wheel
  running build
  running build_py
  package init file 'ciso8601/__init__.py' not found (or not a regular file)
  creating build
  creating build/lib.linux-aarch64-cpython-39
  creating build/lib.linux-aarch64-cpython-39/ciso8601
  copying ciso8601/__init__.pyi -> build/lib.linux-aarch64-cpython-39/ciso8601
  copying ciso8601/py.typed -> build/lib.linux-aarch64-cpython-39/ciso8601
  running build_ext
  building 'ciso8601' extension
  creating build/temp.linux-aarch64-cpython-39
  gcc -pthread -B /home/marc/miniconda3/envs/f4s7/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/marc/miniconda3/envs/f4s7/include -I/home/marc/miniconda3/envs/f4s7/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/marc/miniconda3/envs/f4s7/include -fPIC -DCISO8601_VERSION=2.2.0 -DCISO8601_CACHING_ENABLED=1 -I/home/marc/miniconda3/envs/f4s7/include/python3.9 -c module.c -o build/temp.linux-aarch64-cpython-39/module.o
  gcc: error: unrecognized command-line option ‘-n1’; did you mean ‘-n’?
  gcc: error: unrecognized command-line option ‘-n1’; did you mean ‘-n’?
  error: command '/usr/bin/gcc' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for ciso8601
Failed to build ciso8601
ERROR: Could not build wheels for ciso8601 which use PEP 517 and cannot be installed directly

marcmenem avatar May 17 '22 18:05 marcmenem

I'm also running into this trying to install inside the continuumio/miniconda3 Docker container.

$ docker run -it --rm continuumio/miniconda3 /bin/bash
(base) root@d4674b79a116:/# apt-get update
(base) root@d4674b79a116:/# apt-get install build-essential -y
(base) root@d4674b79a116:/# pip install ciso8601
Collecting ciso8601
  Using cached ciso8601-2.2.0.tar.gz (18 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Building wheels for collected packages: ciso8601
  Building wheel for ciso8601 (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /opt/conda/bin/python /opt/conda/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpsxb6puh7
       cwd: /tmp/pip-install-kqh5rwlc/ciso8601_5c9924e443324045a93e4bb2ec3f510d
  Complete output (17 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-cpython-39
  creating build/lib.linux-aarch64-cpython-39/ciso8601
  copying ciso8601/__init__.pyi -> build/lib.linux-aarch64-cpython-39/ciso8601
  copying ciso8601/py.typed -> build/lib.linux-aarch64-cpython-39/ciso8601
  running build_ext
  building 'ciso8601' extension
  creating build/temp.linux-aarch64-cpython-39
  gcc -pthread -B /opt/conda/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /opt/conda/include -I/opt/conda/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /opt/conda/include -fPIC -DCISO8601_VERSION=2.2.0 -DCISO8601_CACHING_ENABLED=1 -I/opt/conda/include/python3.9 -c module.c -o build/temp.linux-aarch64-cpython-39/module.o
  gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
  gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
  gcc: error: unrecognized command-line option ‘-n1’; did you mean ‘-n’?
  gcc: error: unrecognized command-line option ‘-n1’; did you mean ‘-n’?
  error: command '/usr/bin/gcc' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for ciso8601
Failed to build ciso8601
ERROR: Could not build wheels for ciso8601 which use PEP 517 and cannot be installed directly

duckontheweb avatar Aug 04 '22 14:08 duckontheweb