Deployment Failed during build process

My django project cannot deploy, it stops at #10 78.98 Getting requirements to build wheel: started  #10 79.36 Getting requirements to build wheel: finished with status 'error' #10 79.37 error: subprocess-exited-with-error See the attached file for the full error log My railway.json { "$schema": "https://railway.app/railway.schema.json", "build": { "builder": "NIXPACKS", "nixpacksPlan": { "providers": ["python"], "phases": { "setup": { "nixPkgs": ["...", "nodejs"] } } }, "buildCommand": "npm ci" }, "deploy": { "startCommand": "python manage.py migrate && python manage.py collectstatic --noinput && gunicorn webapp.wsgi", "restartPolicyType": "ON_FAILURE", "restartPolicyMaxRetries": 10 } } I have a customized railway.json because I have a package.json for full calendar, dropzone, and moment js. runtime.txt: python-3.10.10
7 Replies
Percy
Percy16mo ago
Project ID: c5a2e763-d65a-484d-bf2d-bdd444524589
WearBullish
WearBullish16mo ago
c5a2e763-d65a-484d-bf2d-bdd444524589
Brody
Brody16mo ago
please provide full build logs
WearBullish
WearBullish16mo ago
Hello sorry for the late reply, I already fixed my problem above by updating all the packages in my requirements.txt but now I got this one: Traceback (most recent call last): File "/app/manage.py", line 22, in <module> main() File "/app/manage.py", line 18, in main execute_from_command_line(sys.argv) File "/opt/venv/lib/python3.10/site-packages/django/core/management/init.py", line 442, in execute_from_command_line utility.execute() File "/opt/venv/lib/python3.10/site-packages/django/core/management/init.py", line 416, in execute django.setup() File "/opt/venv/lib/python3.10/site-packages/django/init.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/opt/venv/lib/python3.10/site-packages/django/apps/registry.py", line 124, in populate app_config.ready() File "/app/healthcenter/apps.py", line 10, in ready from healthcenter.scheduler import start File "/app/healthcenter/scheduler.py", line 10, in <module> from doctor.views import reschedule File "/app/doctor/views.py", line 4, in <module> from turtle import title File "/root/.nix-profile/lib/python3.10/turtle.py", line 107, in <module> import tkinter as TK File "/root/.nix-profile/lib/python3.10/tkinter/init.py", line 37, in <module> import _tkinter # If this fails your Python may not be configured for Tk ModuleNotFoundError: No module named '_tkinter' I cannot find a package for tkinter since it's a python package, what to do to fix this? fixed the problem, thank you!
Brody
Brody16mo ago
that's awesome, what was the fix?
WearBullish
WearBullish16mo ago
removed the "from turtle import title" on my views.py, sorry I'm just a newbie didn't notice these basic problems.
Brody
Brody16mo ago
ah gotcha, glad you got it solved
Want results from more Discord servers?
Add your server