ModuleNotFoundError: No module named 'pkgutil' When running Celery Worker service

draganshFREE

3 days ago

I am trying to add a celery worker service to my django app. I have created a seperate service using the same github repo. To override procfile I am defining startcommand as this

celery -A <projectname>.celery_app worker -E -l info --uid=nobody

when not using --uid it crashes and gives me error that "you are running celery as a superuser".

I even tried a different command to just check if python installation was the issue but it was fine. there is something wrong at railway's end i am assuming because pkgutil is included in standard library.

Can you please provide a fix for this?

Awaiting User Response

1 Replies

chandrikaEMPLOYEE

3 days ago

Could you please ensure that your Python environment is correctly configured on Railway? You might want to verify that the version of Python you're using includes pkgutil. You can specify the Python version in your requirements.txt or Pipfile.


Status changed to Awaiting User Response railway[bot] 3 days ago


ModuleNotFoundError: No module named 'pkgutil' When running Celery Worker service - Railway Help Station