Django app deployment crashes due to cffi and libffi
Trying to deploy a Django app to Railway.
After it builds successfully the deployment crashes with this error:
#10 378.9 Running setup.py install for cffi: started
#10 378.9 Running setup.py install for cffi: finished with status 'error'
#10 378.9 error: subprocess-exited-with-error
#10 378.9
#10 378.9 × Running setup.py install for cffi did not run successfully.
#10 378.9 │ exit code: 1
#10 378.9 ╰─> [60 lines of output]
#10 378.9 Package libffi was not found in the pkg-config search path.
#10 378.9 Perhaps you should add the directory containing
libffi.pc'
#10 378.9 to the PKG_CONFIG_PATH environment variable
#10 378.9 No package 'libffi' found`69 Replies
Project ID:
4ad98339-d4b3-47d9-973d-7162b5b5fd9f
4ad98339-d4b3-47d9-973d-7162b5b5fd9f
please provide full build logs
https://bookmarklets.up.railway.app/log-downloader/
cool tool brody
thamks
there was attempt as well.
mysqlclient is in the requirements.txt
it wants
MySQLdb
thoughthanks that fixed that one
what about the cffi error in this log?
send your railway.json please
give this a try