Created
December 8, 2017 21:34
-
-
Save saqib-zmi/e4863e733d9d7e64d1f18757aca33f2e 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
[my.username@my-machine ~]$ source my_virtual_env/bin/activate | |
(my_virtual_env)[my.username@my-machine ~]$ pip install mysql-connector | |
You are using pip version 6.0.8, however version 9.0.1 is available. | |
You should consider upgrading via the 'pip install --upgrade pip' command. | |
Collecting mysql-connector | |
Using cached mysql-connector-2.2.3.zip | |
# Python architecture: 64-bit | |
# Python ARCH_64BIT: True | |
Installing collected packages: mysql-connector | |
Running setup.py install for mysql-connector | |
Not Installing MySQL C Extension | |
# Python architecture: 64-bit | |
# Python ARCH_64BIT: True | |
# Protobuf include directory: /usr/local/include/google/protobuf | |
# Protobuf library directory: /usr/local/lib | |
# Protobuf protoc binary: /usr/local/bin/protoc | |
# Running protoc command: /usr/local/bin/protoc -I /tmp/pip-build-AhijR0/mysql-connector/src/mysqlxpb/mysqlx/protocol /tmp/pip-build-AhijR0/mysql-connector/src/mysqlxpb/mysqlx/protocol/mysqlx_connection.proto /tmp/pip-build-AhijR0/mysql-connector/src/mysqlxpb/mysqlx/protocol/mysqlx_expect.proto /tmp/pip-build-AhijR0/mysql-connector/src/mysqlxpb/mysqlx/protocol/mysqlx_expr.proto /tmp/pip-build-AhijR0/mysql-connector/src/mysqlxpb/mysqlx/protocol/mysqlx.proto /tmp/pip-build-AhijR0/mysql-connector/src/mysqlxpb/mysqlx/protocol/mysqlx_sql.proto /tmp/pip-build-AhijR0/mysql-connector/src/mysqlxpb/mysqlx/protocol/mysqlx_session.proto /tmp/pip-build-AhijR0/mysql-connector/src/mysqlxpb/mysqlx/protocol/mysqlx_notice.proto /tmp/pip-build-AhijR0/mysql-connector/src/mysqlxpb/mysqlx/protocol/mysqlx_datatypes.proto /tmp/pip-build-AhijR0/mysql-connector/src/mysqlxpb/mysqlx/protocol/mysqlx_crud.proto /tmp/pip-build-AhijR0/mysql-connector/src/mysqlxpb/mysqlx/protocol/mysqlx_resultset.proto --cpp_out=/tmp/pip-build-AhijR0/mysql-connector/src/mysqlxpb/mysqlx | |
mysqlx.proto: warning: Import mysqlx_expect.proto but not used. | |
mysqlx.proto: warning: Import mysqlx_connection.proto but not used. | |
mysqlx.proto: warning: Import mysqlx_sql.proto but not used. | |
mysqlx.proto: warning: Import mysqlx_resultset.proto but not used. | |
mysqlx.proto: warning: Import mysqlx_crud.proto but not used. | |
mysqlx.proto: warning: Import mysqlx_session.proto but not used. | |
mysqlx.proto: warning: Import mysqlx_notice.proto but not used. | |
building '_mysqlxpb' extension | |
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/local/include/google/protobuf -I/usr/include/python2.7 -c src/mysqlxpb/mysqlx/mysqlx.pb.cc -o build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlx/mysqlx.pb.o -isystem/usr/include/python2.7 -Wno-unknown-pragmas | |
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/local/include/google/protobuf -I/usr/include/python2.7 -c src/mysqlxpb/mysqlx/mysqlx_connection.pb.cc -o build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlx/mysqlx_connection.pb.o -isystem/usr/include/python2.7 -Wno-unknown-pragmas | |
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/local/include/google/protobuf -I/usr/include/python2.7 -c src/mysqlxpb/mysqlx/mysqlx_crud.pb.cc -o build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlx/mysqlx_crud.pb.o -isystem/usr/include/python2.7 -Wno-unknown-pragmas | |
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/local/include/google/protobuf -I/usr/include/python2.7 -c src/mysqlxpb/mysqlx/mysqlx_datatypes.pb.cc -o build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlx/mysqlx_datatypes.pb.o -isystem/usr/include/python2.7 -Wno-unknown-pragmas | |
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/local/include/google/protobuf -I/usr/include/python2.7 -c src/mysqlxpb/mysqlx/mysqlx_expect.pb.cc -o build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlx/mysqlx_expect.pb.o -isystem/usr/include/python2.7 -Wno-unknown-pragmas | |
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/local/include/google/protobuf -I/usr/include/python2.7 -c src/mysqlxpb/mysqlx/mysqlx_expr.pb.cc -o build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlx/mysqlx_expr.pb.o -isystem/usr/include/python2.7 -Wno-unknown-pragmas | |
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/local/include/google/protobuf -I/usr/include/python2.7 -c src/mysqlxpb/mysqlx/mysqlx_notice.pb.cc -o build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlx/mysqlx_notice.pb.o -isystem/usr/include/python2.7 -Wno-unknown-pragmas | |
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/local/include/google/protobuf -I/usr/include/python2.7 -c src/mysqlxpb/mysqlx/mysqlx_resultset.pb.cc -o build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlx/mysqlx_resultset.pb.o -isystem/usr/include/python2.7 -Wno-unknown-pragmas | |
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/local/include/google/protobuf -I/usr/include/python2.7 -c src/mysqlxpb/mysqlx/mysqlx_session.pb.cc -o build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlx/mysqlx_session.pb.o -isystem/usr/include/python2.7 -Wno-unknown-pragmas | |
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/local/include/google/protobuf -I/usr/include/python2.7 -c src/mysqlxpb/mysqlx/mysqlx_sql.pb.cc -o build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlx/mysqlx_sql.pb.o -isystem/usr/include/python2.7 -Wno-unknown-pragmas | |
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/local/include/google/protobuf -I/usr/include/python2.7 -c src/mysqlxpb/mysqlxpb.cc -o build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlxpb.o -isystem/usr/include/python2.7 -Wno-unknown-pragmas | |
src/mysqlxpb/mysqlxpb.cc: In function ‘PyObject* ConvertPbToPyRequired(const google::protobuf::Message&, const google::protobuf::FieldDescriptor&)’: | |
src/mysqlxpb/mysqlxpb.cc:75:10: warning: enumeration value ‘TYPE_GROUP’ not handled in switch [-Wswitch] | |
switch (field.type()) { | |
^ | |
src/mysqlxpb/mysqlxpb.cc: In function ‘PyObject* ConvertPbToPyRepeated(int, const google::protobuf::Message&, const google::protobuf::FieldDescriptor&)’: | |
src/mysqlxpb/mysqlxpb.cc:174:10: warning: enumeration value ‘TYPE_GROUP’ not handled in switch [-Wswitch] | |
switch (field.type()) { | |
^ | |
src/mysqlxpb/mysqlxpb.cc: In function ‘void ConvertPyToPbRequired(google::protobuf::Message&, const google::protobuf::FieldDescriptor&, google::protobuf::DynamicMessageFactory&, PyObject*)’: | |
src/mysqlxpb/mysqlxpb.cc:277:10: warning: enumeration value ‘TYPE_GROUP’ not handled in switch [-Wswitch] | |
switch (field.type()) { | |
^ | |
src/mysqlxpb/mysqlxpb.cc: In function ‘void ConvertPyToPbRepeated(google::protobuf::Message&, const google::protobuf::FieldDescriptor&, google::protobuf::DynamicMessageFactory&, PyObject*)’: | |
src/mysqlxpb/mysqlxpb.cc:473:10: warning: enumeration value ‘TYPE_GROUP’ not handled in switch [-Wswitch] | |
switch (field.type()) { | |
^ | |
src/mysqlxpb/mysqlxpb.cc: In function ‘const char* GetMessageNameByTypeId(Mysqlx::ServerMessages::Type)’: | |
src/mysqlxpb/mysqlxpb.cc:802:10: warning: enumeration value ‘ServerMessages_Type_RESULTSET_FETCH_SUSPENDED’ not handled in switch [-Wswitch] | |
switch (type) { | |
^ | |
g++ -pthread -shared build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlx/mysqlx.pb.o build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlx/mysqlx_connection.pb.o build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlx/mysqlx_crud.pb.o build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlx/mysqlx_datatypes.pb.o build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlx/mysqlx_expect.pb.o build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlx/mysqlx_expr.pb.o build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlx/mysqlx_notice.pb.o build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlx/mysqlx_resultset.pb.o build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlx/mysqlx_session.pb.o build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlx/mysqlx_sql.pb.o build/temp.linux-x86_64-2.7/src/mysqlxpb/mysqlxpb.o -L/usr/local/lib -L/usr/lib64 -lprotobuf -lpython2.7 -o build/lib.linux-x86_64-2.7/_mysqlxpb.so | |
Successfully installed mysql-connector | |
(my_virtual_env)[my.username@my-machine ~]$ python | |
Python 2.7.12 (default, Sep 1 2016, 22:14:00) | |
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import mysql.connector | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
ImportError: No module named mysql.connector |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment