Open Sea-Monster opened 7 years ago
python 3.5.3
Collecting mysql-connector Using cached mysql-connector-2.2.3.tar.gz Installing collected packages: mysql-connector Running setup.py install for mysql-connector ... error Complete output from command /Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;file='/private/var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-build-5vnjuvbt/mysql-connector/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-btuokezl-record/install-record.txt --single-version-externally-managed --compile: running install Not Installing MySQL C Extension running build running build_py creating build creating build/lib.macosx-10.6-intel-3.5 creating build/lib.macosx-10.6-intel-3.5/mysql copying lib/mysql/init.py -> build/lib.macosx-10.6-intel-3.5/mysql creating build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/init.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/abstracts.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/authentication.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/catch23.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/charsets.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/connection.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/connection_cext.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/constants.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/conversion.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/cursor.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/cursor_cext.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/custom_types.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/dbapi.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/errorcode.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/errors.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/network.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/optionfiles.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/pooling.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/protocol.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/utils.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/version.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector creating build/lib.macosx-10.6-intel-3.5/mysql/connector/locales copying lib/mysql/connector/locales/init.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/locales creating build/lib.macosx-10.6-intel-3.5/mysql/connector/locales/eng copying lib/mysql/connector/locales/eng/init.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/locales/eng copying lib/mysql/connector/locales/eng/client_error.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/locales/eng creating build/lib.macosx-10.6-intel-3.5/mysql/connector/django copying lib/mysql/connector/django/init.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/django copying lib/mysql/connector/django/base.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/django copying lib/mysql/connector/django/client.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/django copying lib/mysql/connector/django/compiler.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/django copying lib/mysql/connector/django/creation.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/django copying lib/mysql/connector/django/features.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/django copying lib/mysql/connector/django/introspection.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/django copying lib/mysql/connector/django/operations.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/django copying lib/mysql/connector/django/schema.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/django copying lib/mysql/connector/django/validation.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/django creating build/lib.macosx-10.6-intel-3.5/mysql/connector/fabric copying lib/mysql/connector/fabric/init.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/fabric copying lib/mysql/connector/fabric/balancing.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/fabric copying lib/mysql/connector/fabric/caching.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/fabric copying lib/mysql/connector/fabric/connection.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/fabric creating build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/init.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/authentication.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/charsets.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/compat.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/connection.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/constants.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/crud.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/dbdoc.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/errorcode.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/errors.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/expr.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/protobuf.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/protocol.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/result.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/statement.py -> build/lib.macosx-10.6-intel-3.5/mysqlx creating build/lib.macosx-10.6-intel-3.5/mysqlx/locales copying lib/mysqlx/locales/init.py -> build/lib.macosx-10.6-intel-3.5/mysqlx/locales creating build/lib.macosx-10.6-intel-3.5/mysqlx/locales/eng copying lib/mysqlx/locales/eng/init.py -> build/lib.macosx-10.6-intel-3.5/mysqlx/locales/eng copying lib/mysqlx/locales/eng/client_error.py -> build/lib.macosx-10.6-intel-3.5/mysqlx/locales/eng running build_ext
# Python ARCH_64BIT: True # Protobuf include directory: /usr/local/opt/protobuf/include # Protobuf library directory: /usr/local/opt/protobuf/lib # Protobuf protoc binary: /usr/local/opt/protobuf/bin/protoc # Running protoc command: /usr/local/opt/protobuf/bin/protoc -I /private/var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-build-5vnjuvbt/mysql-connector/src/mysqlxpb/mysqlx/protocol /private/var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-build-5vnjuvbt/mysql-connector/src/mysqlxpb/mysqlx/protocol/mysqlx.proto /private/var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-build-5vnjuvbt/mysql-connector/src/mysqlxpb/mysqlx/protocol/mysqlx_connection.proto /private/var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-build-5vnjuvbt/mysql-connector/src/mysqlxpb/mysqlx/protocol/mysqlx_crud.proto /private/var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-build-5vnjuvbt/mysql-connector/src/mysqlxpb/mysqlx/protocol/mysqlx_datatypes.proto /private/var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-build-5vnjuvbt/mysql-connector/src/mysqlxpb/mysqlx/protocol/mysqlx_expect.proto /private/var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-build-5vnjuvbt/mysql-connector/src/mysqlxpb/mysqlx/protocol/mysqlx_expr.proto /private/var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-build-5vnjuvbt/mysql-connector/src/mysqlxpb/mysqlx/protocol/mysqlx_notice.proto /private/var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-build-5vnjuvbt/mysql-connector/src/mysqlxpb/mysqlx/protocol/mysqlx_resultset.proto /private/var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-build-5vnjuvbt/mysql-connector/src/mysqlxpb/mysqlx/protocol/mysqlx_session.proto /private/var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-build-5vnjuvbt/mysql-connector/src/mysqlxpb/mysqlx/protocol/mysqlx_sql.proto --cpp_out=/private/var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-build-5vnjuvbt/mysql-connector/src/mysqlxpb/mysqlx mysqlx.proto: warning: Import mysqlx_sql.proto but not used. mysqlx.proto: warning: Import mysqlx_session.proto but not used. mysqlx.proto: warning: Import mysqlx_crud.proto but not used. mysqlx.proto: warning: Import mysqlx_connection.proto but not used. mysqlx.proto: warning: Import mysqlx_resultset.proto but not used. mysqlx.proto: warning: Import mysqlx_expect.proto but not used. mysqlx.proto: warning: Import mysqlx_notice.proto but not used. building '_mysqlxpb' extension creating build/temp.macosx-10.6-intel-3.5 creating build/temp.macosx-10.6-intel-3.5/src creating build/temp.macosx-10.6-intel-3.5/src/mysqlxpb creating build/temp.macosx-10.6-intel-3.5/src/mysqlxpb/mysqlx /usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -g -DPY3=1 -I/usr/local/opt/protobuf/include -I/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c src/mysqlxpb/mysqlx/mysqlx.pb.cc -o build/temp.macosx-10.6-intel-3.5/src/mysqlxpb/mysqlx/mysqlx.pb.o -isystem/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m -Wno-unknown-pragmas In file included from src/mysqlxpb/mysqlx/mysqlx.pb.cc:5: In file included from src/mysqlxpb/mysqlx/mysqlx.pb.h:23: /usr/local/opt/protobuf/include/google/protobuf/arena.h:585:10: error: thread-local storage is not supported for the current target static GOOGLE_THREAD_LOCAL ThreadCache thread_cache_; ^ /usr/local/opt/protobuf/include/google/protobuf/stubs/port.h:302:29: note: expanded from macro 'GOOGLE_THREAD_LOCAL' #define GOOGLE_THREAD_LOCAL __thread ^ 1 error generated. error: command '/usr/bin/clang' failed with exit status 1 ----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;file='/private/var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-build-5vnjuvbt/mysql-connector/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-btuokezl-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-build-5vnjuvbt/mysql-connector/
mysql-connector 2.2.x is still not stable, I will suggest you use 2.1.x instead at this moment.
2.1.x is work
I met the same issue and pip install mysql-connector==2.1.6 can work.
pip install mysql-connector==2.1.6
python 3.5.3
Collecting mysql-connector Using cached mysql-connector-2.2.3.tar.gz Installing collected packages: mysql-connector Running setup.py install for mysql-connector ... error Complete output from command /Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;file='/private/var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-build-5vnjuvbt/mysql-connector/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-btuokezl-record/install-record.txt --single-version-externally-managed --compile: running install Not Installing MySQL C Extension running build running build_py creating build creating build/lib.macosx-10.6-intel-3.5 creating build/lib.macosx-10.6-intel-3.5/mysql copying lib/mysql/init.py -> build/lib.macosx-10.6-intel-3.5/mysql creating build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/init.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/abstracts.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/authentication.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/catch23.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/charsets.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/connection.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/connection_cext.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/constants.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/conversion.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/cursor.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/cursor_cext.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/custom_types.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/dbapi.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/errorcode.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/errors.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/network.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/optionfiles.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/pooling.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/protocol.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/utils.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector copying lib/mysql/connector/version.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector creating build/lib.macosx-10.6-intel-3.5/mysql/connector/locales copying lib/mysql/connector/locales/init.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/locales creating build/lib.macosx-10.6-intel-3.5/mysql/connector/locales/eng copying lib/mysql/connector/locales/eng/init.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/locales/eng copying lib/mysql/connector/locales/eng/client_error.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/locales/eng creating build/lib.macosx-10.6-intel-3.5/mysql/connector/django copying lib/mysql/connector/django/init.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/django copying lib/mysql/connector/django/base.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/django copying lib/mysql/connector/django/client.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/django copying lib/mysql/connector/django/compiler.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/django copying lib/mysql/connector/django/creation.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/django copying lib/mysql/connector/django/features.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/django copying lib/mysql/connector/django/introspection.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/django copying lib/mysql/connector/django/operations.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/django copying lib/mysql/connector/django/schema.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/django copying lib/mysql/connector/django/validation.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/django creating build/lib.macosx-10.6-intel-3.5/mysql/connector/fabric copying lib/mysql/connector/fabric/init.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/fabric copying lib/mysql/connector/fabric/balancing.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/fabric copying lib/mysql/connector/fabric/caching.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/fabric copying lib/mysql/connector/fabric/connection.py -> build/lib.macosx-10.6-intel-3.5/mysql/connector/fabric creating build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/init.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/authentication.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/charsets.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/compat.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/connection.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/constants.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/crud.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/dbdoc.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/errorcode.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/errors.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/expr.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/protobuf.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/protocol.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/result.py -> build/lib.macosx-10.6-intel-3.5/mysqlx copying lib/mysqlx/statement.py -> build/lib.macosx-10.6-intel-3.5/mysqlx creating build/lib.macosx-10.6-intel-3.5/mysqlx/locales copying lib/mysqlx/locales/init.py -> build/lib.macosx-10.6-intel-3.5/mysqlx/locales creating build/lib.macosx-10.6-intel-3.5/mysqlx/locales/eng copying lib/mysqlx/locales/eng/init.py -> build/lib.macosx-10.6-intel-3.5/mysqlx/locales/eng copying lib/mysqlx/locales/eng/client_error.py -> build/lib.macosx-10.6-intel-3.5/mysqlx/locales/eng running build_ext
Python architecture: 64-bit
Command "/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;file='/private/var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-build-5vnjuvbt/mysql-connector/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-btuokezl-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/48/cbt_b0ln56q0byjhkfvw64fh0000gn/T/pip-build-5vnjuvbt/mysql-connector/