Closed abc19899 closed 5 years ago
lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 7.1.1503 (Core) Release: 7.1.1503 Codename: Core
python --version Python 3.6.3
pip3.6 freeze APScheduler==3.6.0 Django==2.0.13 django-apscheduler==0.3.0 django-bootstrap4==0.0.8 django-extensions==2.1.6 gunicorn==19.9.0 protobuf==3.7.1 psutil==5.6.2 PyMySQL==0.9.3 pytz==2019.1 redis==3.2.1 s8-protocol==1.0 six==1.12.0 sot-tool==1.0 tzlocal==1.5.1 virtualenv==15.1.0
pip3.6 install mysqlclient Looking in indexes: http://mirrors.aliyun.com/pypi/simple/ Collecting mysqlclient Downloading http://mirrors.aliyun.com/pypi/packages/f4/f1/3bb6f64ca7a429729413e6556b7ba5976df06019a5245a43d36032f1061e/mysqlclient-1.4.2.post1.tar.gz (85kB) |████████████████████████████████| 92kB 9.0MB/s Installing collected packages: mysqlclient Running setup.py install for mysqlclient ... error ERROR: Complete output from command /opt/rh/rh-python36/root/usr/bin/python3 -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-7n3dh47_/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-wfxtkpet/install-record.txt --single-version-externally-managed --compile: ERROR: running install running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/init.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/_exceptions.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/compat.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/connections.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/converters.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/cursors.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/release.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/times.py -> build/lib.linux-x86_64-3.6/MySQLdb creating build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/init.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants running build_ext building 'MySQLdb._mysql' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/MySQLdb gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -I/opt/rh/rh-python36/root/usr/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dversion_info=(1,4,2,'post',1) -Dversion=1.4.2.post1 -I/usr/local/mysql/include -I/opt/rh/rh-python36/root/usr/include/python3.6m -c MySQLdb/_mysql.c -o build/temp.linux-x86_64-3.6/MySQLdb/_mysql.o -g MySQLdb/_mysql.c: In function ‘_mysql_field_to_python’: MySQLdb/_mysql.c:1146:5: warning: case value ‘245’ not in enumerated type ‘enum enum_field_types’ [-Wswitch] case 245: // JSON ^ gcc -pthread -shared -L/opt/rh/rh-python36/root/usr/lib64-Wl,-z,relro -Wl,-rpath,/opt/rh/rh-python36/root/usr/lib64 -Wl,--enable-new-dtags build/temp.linux-x86_64-3.6/MySQLdb/_mysql.o -L/usr/local/mysql/lib -L/opt/rh/rh-python36/root/usr/lib64 -lmysqlclient -lpthread -lprobes_mysql -lz -lm -ldl -lpython3.6m -o build/lib.linux-x86_64-3.6/MySQLdb/_mysql.cpython-36m-x86_64-linux-gnu.so /usr/bin/ld: cannot find -lprobes_mysql collect2: error: ld returned 1 exit status error: command 'gcc' failed with exit status 1 ERROR: Command "/opt/rh/rh-python36/root/usr/bin/python3 -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-7n3dh47/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-wfxtkpet/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-7n3dh47/mysqlclient/
ERROR: Command "/opt/rh/rh-python36/root/usr/bin/python3 -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-7n3dh47/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-wfxtkpet/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-7n3dh47/mysqlclient/
It's not our issue. https://mariadb.atlassian.net/browse/MDEV-5152
env info:
lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 7.1.1503 (Core) Release: 7.1.1503 Codename: Core
python --version Python 3.6.3
pip3.6 freeze APScheduler==3.6.0 Django==2.0.13 django-apscheduler==0.3.0 django-bootstrap4==0.0.8 django-extensions==2.1.6 gunicorn==19.9.0 protobuf==3.7.1 psutil==5.6.2 PyMySQL==0.9.3 pytz==2019.1 redis==3.2.1 s8-protocol==1.0 six==1.12.0 sot-tool==1.0 tzlocal==1.5.1 virtualenv==15.1.0
error