1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
| Using legacy 'setup.py install' for mysqlclient, since package 'wheel' is not installed.
Installing collected packages: mysqlclient
Running setup.py install for mysqlclient ... error
ERROR: Command errored out with exit status 1:
command: /Users/direcision/.pyenv/versions/3.8.10/envs/venv/bin/python3.8 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0c/dl8wlh_n7z10zxrxm3dqlqlw0000gn/T/pip-install-t6ghh4r8/mysqlclient_3a026d1aeb2944d588fa59504027b3b2/setup.py'"'"'; __file__='"'"'/private/var/folders/0c/dl8wlh_n7z10zxrxm3dqlqlw0000gn/T/pip-install-t6ghh4r8/mysqlclient_3a026d1aeb2944d588fa59504027b3b2/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/0c/dl8wlh_n7z10zxrxm3dqlqlw0000gn/T/pip-record-rsewsaur/install-record.txt --single-version-externally-managed --compile --install-headers /Users/direcision/.pyenv/versions/3.8.10/envs/venv/include/site/python3.8/mysqlclient
cwd: /private/var/folders/0c/dl8wlh_n7z10zxrxm3dqlqlw0000gn/T/pip-install-t6ghh4r8/mysqlclient_3a026d1aeb2944d588fa59504027b3b2/
Complete output (43 lines):
mysql_config --version
['8.0.26']
mysql_config --libs
['-L/opt/homebrew/Cellar/mysql/8.0.26/lib', '-lmysqlclient', '-lz', '-lzstd', '-lssl', '-lcrypto', '-lresolv']
mysql_config --cflags
['-I/opt/homebrew/Cellar/mysql/8.0.26/include/mysql']
ext_options:
library_dirs: ['/opt/homebrew/Cellar/mysql/8.0.26/lib']
libraries: ['mysqlclient', 'zstd', 'resolv']
extra_compile_args: ['-std=c99']
extra_link_args: []
include_dirs: ['/opt/homebrew/Cellar/mysql/8.0.26/include/mysql']
extra_objects: []
define_macros: [('version_info', "(2,0,3,'final',0)"), ('__version__', '2.0.3')]
running install
running build
running build_py
creating build
creating build/lib.macosx-11.4-arm64-3.8
creating build/lib.macosx-11.4-arm64-3.8/MySQLdb
copying MySQLdb/__init__.py -> build/lib.macosx-11.4-arm64-3.8/MySQLdb
copying MySQLdb/_exceptions.py -> build/lib.macosx-11.4-arm64-3.8/MySQLdb
copying MySQLdb/connections.py -> build/lib.macosx-11.4-arm64-3.8/MySQLdb
copying MySQLdb/converters.py -> build/lib.macosx-11.4-arm64-3.8/MySQLdb
copying MySQLdb/cursors.py -> build/lib.macosx-11.4-arm64-3.8/MySQLdb
copying MySQLdb/release.py -> build/lib.macosx-11.4-arm64-3.8/MySQLdb
copying MySQLdb/times.py -> build/lib.macosx-11.4-arm64-3.8/MySQLdb
creating build/lib.macosx-11.4-arm64-3.8/MySQLdb/constants
copying MySQLdb/constants/__init__.py -> build/lib.macosx-11.4-arm64-3.8/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.macosx-11.4-arm64-3.8/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.macosx-11.4-arm64-3.8/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.macosx-11.4-arm64-3.8/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.macosx-11.4-arm64-3.8/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.macosx-11.4-arm64-3.8/MySQLdb/constants
running build_ext
building 'MySQLdb._mysql' extension
creating build/temp.macosx-11.4-arm64-3.8
creating build/temp.macosx-11.4-arm64-3.8/MySQLdb
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/opt/homebrew/opt/xz/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/opt/homebrew/opt/xz/include -Dversion_info=(2,0,3,'final',0) -D__version__=2.0.3 -I/opt/homebrew/Cellar/mysql/8.0.26/include/mysql -I/Users/direcision/.pyenv/versions/3.8.10/envs/venv/include -I/Users/direcision/.pyenv/versions/3.8.10/include/python3.8 -c MySQLdb/_mysql.c -o build/temp.macosx-11.4-arm64-3.8/MySQLdb/_mysql.o -std=c99
clang -bundle -undefined dynamic_lookup -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/readline/lib -L/Users/direcision/.pyenv/versions/3.8.10/lib -L/opt/homebrew/opt/xz/lib -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/readline/lib -L/Users/direcision/.pyenv/versions/3.8.10/lib -L/opt/homebrew/opt/xz/lib -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib build/temp.macosx-11.4-arm64-3.8/MySQLdb/_mysql.o -L/opt/homebrew/Cellar/mysql/8.0.26/lib -lmysqlclient -lzstd -lresolv -o build/lib.macosx-11.4-arm64-3.8/MySQLdb/_mysql.cpython-38-darwin.so
ld: library not found for -lzstd
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/direcision/.pyenv/versions/3.8.10/envs/venv/bin/python3.8 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0c/dl8wlh_n7z10zxrxm3dqlqlw0000gn/T/pip-install-t6ghh4r8/mysqlclient_3a026d1aeb2944d588fa59504027b3b2/setup.py'"'"'; __file__='"'"'/private/var/folders/0c/dl8wlh_n7z10zxrxm3dqlqlw0000gn/T/pip-install-t6ghh4r8/mysqlclient_3a026d1aeb2944d588fa59504027b3b2/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/0c/dl8wlh_n7z10zxrxm3dqlqlw0000gn/T/pip-record-rsewsaur/install-record.txt --single-version-externally-managed --compile --install-headers /Users/direcision/.pyenv/versions/3.8.10/envs/venv/include/site/python3.8/mysqlclient Check the logs for full command output.
|