3 months ago
I'm trying to add a celery service to my django app. I've duplicated the django app and created a new config file railway.worker.json
{
"$schema": "https://railway.com/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"nixpacksPlan": {
"providers": ["python", "node"]
}
},
"deploy": {
"startCommand": "pipenv run celery -A stage_sidekick worker --loglevel=info --uid=nobody"
}
}
However I get an error ModuleNotFoundError: No module named 'pkgutil'
during the deploy step. I've tried many variations of config settings such as adding a build step to ensure pip/pipenv is installed, but nothing seems to work.
Project id: 51d489e5-fe6e-4c2b-bef5-68d1035698d4
2 Replies
3 months ago
does your Pipfile have pkgutil in it?
@Brody I believe the issue was caused by a python version incompatibility issue but not entirely sure. I ended up dockerizing my app and that fixed it.
3 months ago
glad you were able to solve it!
3 months ago
!s
Status changed to Solved brody • 3 months ago
3 months ago
hey i am facing same issue too. i have a main django app. i am using the same repo but providing a custom start command (does that override the procfile?) I am on 3.13 pyhon version. Can you help please
Status changed to Open railway[bot] • 3 months ago
dragansh
hey i am facing same issue too. i have a main django app. i am using the same repo but providing a custom start command (does that override the procfile?) I am on 3.13 pyhon version. Can you help please
3 months ago
Please open your own thread.