Created
May 28, 2024 09:57
-
-
Save waqasraza123/e4e40a71ebe6255aa6993debefe0d61f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running setup.py install for mysqlclient ... error | |
error: subprocess-exited-with-error | |
× Running setup.py install for mysqlclient did not run successfully. | |
│ exit code: 1 | |
╰─> [58 lines of output] | |
mysql_config --version | |
['8.3.0'] | |
mysql_config --libs | |
['-L/usr/local/Cellar/mysql/8.3.0_1/lib', '-lmysqlclient', '-lz', '-lzstd', '-lssl', '-lcrypto', '-lresolv'] | |
mysql_config --cflags | |
['-I/usr/local/Cellar/mysql/8.3.0_1/include/mysql'] | |
ext_options: | |
library_dirs: ['/usr/local/Cellar/mysql/8.3.0_1/lib'] | |
libraries: ['mysqlclient', 'resolv'] | |
extra_compile_args: ['-std=c99'] | |
extra_link_args: [] | |
include_dirs: ['/usr/local/Cellar/mysql/8.3.0_1/include/mysql'] | |
extra_objects: [] | |
define_macros: [('version_info', "(2,1,1,'final',0)"), ('__version__', '2.1.1')] | |
running install | |
running build | |
running build_py | |
creating build | |
creating build/lib.macosx-10.9-universal2-3.9 | |
creating build/lib.macosx-10.9-universal2-3.9/MySQLdb | |
copying MySQLdb/__init__.py -> build/lib.macosx-10.9-universal2-3.9/MySQLdb | |
copying MySQLdb/_exceptions.py -> build/lib.macosx-10.9-universal2-3.9/MySQLdb | |
copying MySQLdb/connections.py -> build/lib.macosx-10.9-universal2-3.9/MySQLdb | |
copying MySQLdb/converters.py -> build/lib.macosx-10.9-universal2-3.9/MySQLdb | |
copying MySQLdb/cursors.py -> build/lib.macosx-10.9-universal2-3.9/MySQLdb | |
copying MySQLdb/release.py -> build/lib.macosx-10.9-universal2-3.9/MySQLdb | |
copying MySQLdb/times.py -> build/lib.macosx-10.9-universal2-3.9/MySQLdb | |
creating build/lib.macosx-10.9-universal2-3.9/MySQLdb/constants | |
copying MySQLdb/constants/__init__.py -> build/lib.macosx-10.9-universal2-3.9/MySQLdb/constants | |
copying MySQLdb/constants/CLIENT.py -> build/lib.macosx-10.9-universal2-3.9/MySQLdb/constants | |
copying MySQLdb/constants/CR.py -> build/lib.macosx-10.9-universal2-3.9/MySQLdb/constants | |
copying MySQLdb/constants/ER.py -> build/lib.macosx-10.9-universal2-3.9/MySQLdb/constants | |
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.macosx-10.9-universal2-3.9/MySQLdb/constants | |
copying MySQLdb/constants/FLAG.py -> build/lib.macosx-10.9-universal2-3.9/MySQLdb/constants | |
running build_ext | |
building 'MySQLdb._mysql' extension | |
creating build/temp.macosx-10.9-universal2-3.9 | |
creating build/temp.macosx-10.9-universal2-3.9/MySQLdb | |
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -Dversion_info=(2,1,1,'final',0) -D__version__=2.1.1 -I/usr/local/Cellar/mysql/8.3.0_1/include/mysql -I/Users/waqas/python/QT_Web_V2.1/env/include -I/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c MySQLdb/_mysql.c -o build/temp.macosx-10.9-universal2-3.9/MySQLdb/_mysql.o -std=c99 | |
MySQLdb/_mysql.c:521:9: error: implicit declaration of function 'mysql_ssl_set' is invalid in C99 [-Werror,-Wimplicit-function-declaration] | |
mysql_ssl_set(&(self->connection), key, cert, ca, capath, cipher); | |
^ | |
MySQLdb/_mysql.c:521:9: note: did you mean 'mysql_close'? | |
/usr/local/Cellar/mysql/8.3.0_1/include/mysql/mysql.h:797:14: note: 'mysql_close' declared here | |
void STDCALL mysql_close(MYSQL *sock); | |
^ | |
MySQLdb/_mysql.c:1735:9: error: implicit declaration of function 'mysql_kill' is invalid in C99 [-Werror,-Wimplicit-function-declaration] | |
r = mysql_kill(&(self->connection), pid); | |
^ | |
MySQLdb/_mysql.c:1735:9: note: did you mean 'mysql_ping'? | |
/usr/local/Cellar/mysql/8.3.0_1/include/mysql/mysql.h:525:13: note: 'mysql_ping' declared here | |
int STDCALL mysql_ping(MYSQL *mysql); | |
^ | |
MySQLdb/_mysql.c:1944:9: error: implicit declaration of function 'mysql_shutdown' is invalid in C99 [-Werror,-Wimplicit-function-declaration] | |
r = mysql_shutdown(&(self->connection), SHUTDOWN_DEFAULT); | |
^ | |
3 errors generated. | |
error: command '/usr/bin/gcc' failed with exit code 1 | |
[end of output] | |
note: This error originates from a subprocess, and is likely not a problem with pip. | |
error: legacy-install-failure | |
× Encountered error while trying to install package. | |
╰─> mysqlclient |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment