Facing issue with hosting flask server which uses mysql

Facing the following issue
#10 7.781 self.run_setup()

#10 7.781 File "/tmp/pip-build-env-yqq8qy47/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 311, in run_setup

#10 7.781 exec(code, locals())

#10 7.781 File "<string>", line 154, in <module>

#10 7.781 File "<string>", line 48, in get_config_posix

#10 7.781 File "<string>", line 27, in find_package_name

#10 7.781 Exception: Can not find valid pkg-config name.

#10 7.781 Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually

#10 7.781 [end of output]
#10 7.781 self.run_setup()

#10 7.781 File "/tmp/pip-build-env-yqq8qy47/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 311, in run_setup

#10 7.781 exec(code, locals())

#10 7.781 File "<string>", line 154, in <module>

#10 7.781 File "<string>", line 48, in get_config_posix

#10 7.781 File "<string>", line 27, in find_package_name

#10 7.781 Exception: Can not find valid pkg-config name.

#10 7.781 Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually

#10 7.781 [end of output]
8 Replies
Percy
Percy6mo ago
Project ID: d66e88cb-8aab-449e-a6ed-ad582fb525c4
Abhinav Raj
Abhinav Raj6mo ago
d66e88cb-8aab-449e-a6ed-ad582fb525c4
Brody
Brody6mo ago
look into using the pure python mysql client called pymysql as it does not depend on any system libraries
Abhinav Raj
Abhinav Raj6mo ago
PyPI
Flask-MySQLdb
MySQLdb extension for Flask
Abhinav Raj
Abhinav Raj6mo ago
What do you recommend using?
Brody
Brody6mo ago
as mentioned above: pymysql
Abhinav Raj
Abhinav Raj6mo ago
trying Now there's another error #12 0.362 apt-get: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/xpxln7rqi3pq4m0xpnawhxb2gs0mn1s0-gcc-12.3.0-lib/lib/libstdc++.so.6) #12 ERROR: process "/bin/bash -ol pipefail -c apt-get update && apt-get install ffmpeg libsm6 libxext6 -y" did not complete successfully: exit code: 1
Brody
Brody6mo ago
add a railway.toml file to your project with this in it
[build]
nixpacksVersion = "1.15.0"
[build]
nixpacksVersion = "1.15.0"
Want results from more Discord servers?
Add your server
More Posts