ModuleNotFoundError: No module named 'distutils'

zarire
HOBBY

6 months 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/....

Solved

1 Replies

chandrika
EMPLOYEE

6 months 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 6 months ago


Railway
BOT

2 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway about 2 months ago


ModuleNotFoundError: No module named 'distutils' - Railway Help Station