ModuleNotFoundError: No module named 'distutils'

zarireHOBBY

a month ago

I am using stable branch of taiga-back
repo : https://github.com/zarir-engineer/taiga-back.git

not sure why this error keeps occurring. in the dockerfile the first line is

FROM python:3.11-slim

but the control is going thru python 3.12 as the error shows. Please suggest a work around for this. Or what am i missing here. ?

error:

File "/tmp/pip-build-env-wlebbpoz/overlay/lib/python3.12/site-packages/setuptools/__init__.py", line 10, in <module> import distutils.core ModuleNotFoundError: No module named 'distutils'

There is a discrepancy between the Docker image and the host system's Python version.

if the dockerfile is using python 3.11, then the control should go thru python3.11/site-packages/....

Awaiting User Response

1 Replies

chandrikaEMPLOYEE

a month ago

Could you please ensure that the correct Python version is being used in Docker by explicitly setting the Python version in the Dockerfile and ensuring that the Docker environment is correctly configured to use the specified version?


Status changed to Awaiting User Response railway[bot] about 1 month ago