Could not install mysqlclient

pixlfigmaHOBBY

10 months ago

#10 13.19       running build_ext  #10 13.19       building 'MySQLdb._mysql' extension  #10 13.19       creating build/temp.linux-x86_64-cpython-311  #10 13.19       creating build/temp.linux-x86_64-cpython-311/src  #10 13.19       creating build/temp.linux-x86_64-cpython-311/src/MySQLdb  #10 13.19       gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/nix/store/wwg6376ymkhpjxy6c3w9gkbhv6l2gmqy-libxcrypt-4.4.36/include -fPIC "-Dversion_info=(2, 2, 4, 'final', 0)" -D__version__=2.2.4 -I/opt/venv/include -I/nix/store/k3701zl6gmx3la7y4dnflcvf3xfy88kh-python3-3.11.9/include/python3.11 -c src/MySQLdb/_mysql.c -o build/temp.linux-x86_64-cpython-311/src/MySQLdb/_mysql.o -I/usr/local/mysql/include -std=c99  #10 13.19       src/MySQLdb/_mysql.c:29:10: fatal error: mysql.h: No such file or directory  #10 13.19          29 | #include "mysql.h"  #10 13.19             |          ^~~~~~~~~  #10 13.19       compilation terminated.  #10 13.19       error: command '/root/.nix-profile/bin/gcc' failed with exit code 1  #10 13.19       [end of output]  #10 13.19  #10 13.19   note: This error originates from a subprocess, and is likely not a problem with pip.  #10 13.19   ERROR: Failed building wheel for mysqlclient

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

5 Replies

10 months ago

I would recommend using a pure python mysql client.


pixlfigmaHOBBY

10 months ago

could you please refer the exact name of the package??


10 months ago

There are a few, it would be down to your personal preferences.


pixlfigmaHOBBY

10 months ago

while deploying from github I am giving '/' as value for root folder of my django project in settings and a folder called app is being created which does not exist and it could not find static_files folder which exists in root, which is causing failure in deploying. How can I resolve this??


10 months ago

You are likely using incorrect paths, please see the django template - https://railway.app/template/GB6Eki


Could not install mysqlclient - Railway Help Station