At the time of this writing, make test fails in the Docker environment after following the getting-started instructions.
Reproduction
docker pull ghcr.io/tri-ml/dgp:master
docker image tag ghcr.io/tri-ml/dgp:master dgp:latest
make docker-start-interactive
# either of the following fail
make build-proto
make test
For example, make test fails with:
root@hostname:/home/dgp# make test
python3 setup.py clean && \
rm -rf build dist && \
find . -name "*.pyc" | xargs rm -f && \
find . -name "__pycache__" | xargs rm -rf
Traceback (most recent call last):
File "setup.py", line 5, in <module>
from setuptools import find_packages, setup
ModuleNotFoundError: No module named 'setuptools'
Makefile:33: recipe for target 'clean' failed
make: *** [clean] Error 1
python3 is actually 3.6.9.
root@hostname:/home/dgp# python3
Python 3.6.9 (default, Jun 29 2022, 11:45:57)
Two solutions: one is to not install Python 3.6 at all so that python3 symlinks to 3.7. Another is to update the Makefile to use python3.7 specifically.
Description
At the time of this writing,
make test
fails in the Docker environment after following the getting-started instructions.Reproduction
For example,
make test
fails with:python3
is actually 3.6.9.but
setuptools
is installed for 3.7:Fix
Two solutions: one is to not install Python 3.6 at all so that
python3
symlinks to 3.7. Another is to update the Makefile to usepython3.7
specifically.