marius-team / marius

Large scale graph learning on a single machine.
https://marius-project.org
Apache License 2.0
160 stars 45 forks source link

Docker build python version error #138

Open gamdwk opened 1 year ago

gamdwk commented 1 year ago

When I use the dockerfile in /examples/docker to build, error:

typing-extensions requires Python '>=3.7' but the running Python is 3.6.9

It shows that the Python version is incorrect. I tried changing the image in the Dockerfile to nvidia/cuda:11.7.1-cudnn8-devel-ubuntu20.04, which I know comes with Python version 3.8. However, there are some issues with its apt source: the process '/bin/sh -c apt update' did not complete successfully with exit code 100. Can you please update this file? Additionally, when I tried to manually handle this issue and installed Marius using 'pip install .', I received an error that says

'CMake Error at /tmp/pip-build-env-cedd6q4t/overlay/lib/python3.8/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCUDACompiler.cmake:180 (message): Failed to find nvcc.'

Why this happened and how to solve it?

rogerwaleffe commented 1 year ago

Thanks for your question! Yes, these issues are not too surprising. Our original docker file had gotten quite out of date. We have updated the docker file and install dependencies/instructions. Can you try again with the latest main branch?

See here for instructions: https://github.com/marius-team/marius/tree/main/examples/docker