R
Railway15mo ago
JoshOnX

django keeps failing it say

[stage-0 8/10] RUN chmod u+x release.sh && ./release.sh:
#12 1.649 ModuleNotFoundError: No module named 'django' #12 1.649 #12 1.649 The above exception was the direct cause of the following exception: #12 1.649 #12 1.649 Traceback (most recent call last): #12 1.649 File "manage.py", line 22, in <module> #12 1.649 main() #12 1.649 File "manage.py", line 13, in main #12 1.649 raise ImportError( #12 1.649 ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?
11 Replies
Percy
Percy15mo ago
Project ID: a9f8ba80-6038-4c04-9e6e-c1f0a11b0d98
JoshOnX
JoshOnX15mo ago
a9f8ba80-6038-4c04-9e6e-c1f0a11b0d98
Brody
Brody15mo ago
send me your Procfile please
JoshOnX
JoshOnX15mo ago
release: chmod u+x release.sh && ./release.sh web: daphne rel8.asgi:application --port $PORT --bind 0.0.0.0 -v2 one is to runcommand and the other is to run asgi server using daphne
Brody
Brody15mo ago
change it all to just
web: chmod u+x release.sh && ./release.sh && daphne rel8.asgi:application --port $PORT --bind 0.0.0.0 -v2
web: chmod u+x release.sh && ./release.sh && daphne rel8.asgi:application --port $PORT --bind 0.0.0.0 -v2
JoshOnX
JoshOnX15mo ago
okau okay hey man it worked but what if my procfile is like this below release: chmod u+x release.sh && ./release.sh web: gunicorn app.wsgi:application @Brody
Brody
Brody15mo ago
it won't work like that at the moment, see this github issue for more information https://github.com/railwayapp/nixpacks/issues/872
JoshOnX
JoshOnX15mo ago
so there is no fix to it? cus i cant see anything in the page
Brody
Brody15mo ago
this is a temp fix
JoshOnX
JoshOnX15mo ago
thanks man! you did well for me later
Brody
Brody15mo ago
glad I could help nixpacks has now been rolled back to v1.5.1, and Procfiles with both release and web commands now build correctly again!