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
Percy2y ago
Project ID: a9f8ba80-6038-4c04-9e6e-c1f0a11b0d98
JoshOnX
JoshOnX2y ago
a9f8ba80-6038-4c04-9e6e-c1f0a11b0d98
Brody
Brody2y ago
send me your Procfile please
JoshOnX
JoshOnX2y 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
Brody2y 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
JoshOnX2y 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
Brody2y 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
JoshOnX2y ago
so there is no fix to it? cus i cant see anything in the page
Brody
Brody2y ago
this is a temp fix
JoshOnX
JoshOnX2y ago
thanks man! you did well for me later
Brody
Brody2y 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!
Want results from more Discord servers?
Add your server