Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build fails (Python version not compatible) + Workaround #15

Open
cadivus opened this issue Aug 21, 2023 · 0 comments
Open

Docker build fails (Python version not compatible) + Workaround #15

cadivus opened this issue Aug 21, 2023 · 0 comments

Comments

@cadivus
Copy link

cadivus commented Aug 21, 2023

Hi!

I cloned cc7f104d60cbdda9391375bdcce7d9d7c3b51a49 and tried to run the Docker build.
This attempt resulted in this error:

Step 26/53 : RUN /usr/gapps/spot/hatchet_install/install.sh
 ---> Running in fb9d906a6462
running build_ext
building 'hatchet.cython_modules.libs.reader_modules' extension
creating build
creating build/temp.linux-x86_64-cpython-311
creating build/temp.linux-x86_64-cpython-311/hatchet
creating build/temp.linux-x86_64-cpython-311/hatchet/cython_modules
gcc -pthread -B /opt/conda/compiler_compat -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/conda/include -fPIC -O2 -isystem /opt/conda/include -fPIC -I/opt/conda/include/python3.11 -c hatchet/cython_modules/reader_modules.c -o build/temp.linux-x86_64-cpython-311/hatchet/cython_modules/reader_modules.o
hatchet/cython_modules/reader_modules.c:198:12: fatal error: longintrepr.h: No such file or directory
  198 |   #include "longintrepr.h"
      |            ^~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1

Some research got me to this issue (Fails to build on Python 3.11 - longintrepr.h: No such file or directory):
aio-libs/aiohttp#6600

So I checked the Python version. The Python version of the latest jupyter/minimal-notebook is 3.11.4, so I changed

FROM jupyter/minimal-notebook

to

FROM jupyter/minimal-notebook:python-3.10

in the Dockerfile.
This made it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant