Created
September 8, 2017 10:14
-
-
Save zurk/c327a3923529aab58a246ef23deb148a to your computer and use it in GitHub Desktop.
`pip install -U bblfsh` does not work for Python 2. output
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
Collecting bblfsh | |
Downloading bblfsh-0.2.0.tar.gz | |
Collecting grpcio (from bblfsh) | |
Downloading grpcio-1.6.0-cp27-cp27m-macosx_10_10_intel.whl (1.5MB) | |
100% |████████████████████████████████| 1.5MB 798kB/s | |
Collecting docker (from bblfsh) | |
Downloading docker-2.5.1-py2.py3-none-any.whl (111kB) | |
100% |████████████████████████████████| 112kB 6.7MB/s | |
Requirement already up-to-date: six>=1.5.2 in /usr/local/lib/python2.7/site-packages (from grpcio->bblfsh) | |
Collecting protobuf>=3.3.0 (from grpcio->bblfsh) | |
Downloading protobuf-3.4.0-py2.py3-none-any.whl (375kB) | |
100% |████████████████████████████████| 378kB 2.4MB/s | |
Requirement already up-to-date: enum34>=1.0.4 in /usr/local/lib/python2.7/site-packages (from grpcio->bblfsh) | |
Requirement already up-to-date: futures>=2.2.0 in /usr/local/lib/python2.7/site-packages (from grpcio->bblfsh) | |
Requirement already up-to-date: backports.ssl-match-hostname>=3.5; python_version < "3.5" in /usr/local/lib/python2.7/site-packages (from docker->bblfsh) | |
Requirement already up-to-date: ipaddress>=1.0.16; python_version < "3.3" in /usr/local/lib/python2.7/site-packages (from docker->bblfsh) | |
Requirement already up-to-date: docker-pycreds>=0.2.1 in /usr/local/lib/python2.7/site-packages (from docker->bblfsh) | |
Requirement already up-to-date: websocket-client>=0.32.0 in /usr/local/lib/python2.7/site-packages (from docker->bblfsh) | |
Collecting requests!=2.11.0,!=2.12.2,!=2.18.0,>=2.5.2 (from docker->bblfsh) | |
Downloading requests-2.18.4-py2.py3-none-any.whl (88kB) | |
100% |████████████████████████████████| 92kB 8.0MB/s | |
Collecting setuptools (from protobuf>=3.3.0->grpcio->bblfsh) | |
Downloading setuptools-36.4.0-py2.py3-none-any.whl (478kB) | |
100% |████████████████████████████████| 481kB 2.3MB/s | |
Collecting certifi>=2017.4.17 (from requests!=2.11.0,!=2.12.2,!=2.18.0,>=2.5.2->docker->bblfsh) | |
Downloading certifi-2017.7.27.1-py2.py3-none-any.whl (349kB) | |
100% |████████████████████████████████| 358kB 3.0MB/s | |
Requirement already up-to-date: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python2.7/site-packages (from requests!=2.11.0,!=2.12.2,!=2.18.0,>=2.5.2->docker->bblfsh) | |
Collecting idna<2.7,>=2.5 (from requests!=2.11.0,!=2.12.2,!=2.18.0,>=2.5.2->docker->bblfsh) | |
Downloading idna-2.6-py2.py3-none-any.whl (56kB) | |
100% |████████████████████████████████| 61kB 7.8MB/s | |
Collecting urllib3<1.23,>=1.21.1 (from requests!=2.11.0,!=2.12.2,!=2.18.0,>=2.5.2->docker->bblfsh) | |
Downloading urllib3-1.22-py2.py3-none-any.whl (132kB) | |
100% |████████████████████████████████| 133kB 5.8MB/s | |
Building wheels for collected packages: bblfsh | |
Running setup.py bdist_wheel for bblfsh ... error | |
Complete output from command /usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/k7/71s120gd61sfth8r9bhwh5g40000gn/T/pip-build-Nu66Ur/bblfsh/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /var/folders/k7/71s120gd61sfth8r9bhwh5g40000gn/T/tmpkAoRKPpip-wheel- --python-tag cp27: | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 611 0 611 0 0 1073 0 --:--:-- --:--:-- --:--:-- 1073 | |
100 517k 100 517k 0 0 283k 0 0:00:01 0:00:01 --:--:-- 450k | |
running bdist_wheel | |
running build | |
running build_py | |
creating build | |
creating build/lib.macosx-10.12-x86_64-2.7 | |
creating build/lib.macosx-10.12-x86_64-2.7/bblfsh | |
copying bblfsh/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh | |
copying bblfsh/__main__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh | |
copying bblfsh/client.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh | |
copying bblfsh/launcher.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh | |
copying bblfsh/test.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh | |
creating build/lib.macosx-10.12-x86_64-2.7/bblfsh/github | |
copying bblfsh/github/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github | |
creating build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com | |
copying bblfsh/github/com/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com | |
creating build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh | |
copying bblfsh/github/com/bblfsh/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh | |
creating build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/gogo | |
copying bblfsh/github/com/gogo/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/gogo | |
creating build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh/sdk | |
copying bblfsh/github/com/bblfsh/sdk/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh/sdk | |
creating build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh/sdk/protocol | |
copying bblfsh/github/com/bblfsh/sdk/protocol/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh/sdk/protocol | |
copying bblfsh/github/com/bblfsh/sdk/protocol/generated_pb2.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh/sdk/protocol | |
copying bblfsh/github/com/bblfsh/sdk/protocol/generated_pb2_grpc.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh/sdk/protocol | |
creating build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh/sdk/uast | |
copying bblfsh/github/com/bblfsh/sdk/uast/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh/sdk/uast | |
copying bblfsh/github/com/bblfsh/sdk/uast/generated_pb2.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh/sdk/uast | |
creating build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/gogo/protobuf | |
copying bblfsh/github/com/gogo/protobuf/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/gogo/protobuf | |
creating build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/gogo/protobuf/gogoproto | |
copying bblfsh/github/com/gogo/protobuf/gogoproto/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/gogo/protobuf/gogoproto | |
copying bblfsh/github/com/gogo/protobuf/gogoproto/gogo_pb2.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/gogo/protobuf/gogoproto | |
running build_ext | |
building 'bblfsh.pyuast' extension | |
creating build/temp.macosx-10.12-x86_64-2.7 | |
creating build/temp.macosx-10.12-x86_64-2.7/bblfsh | |
creating build/temp.macosx-10.12-x86_64-2.7/bblfsh/libuast | |
clang -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibblfsh/libuast/ -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/include -I/usr/include/libxml2 -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c bblfsh/pyuast.c -o build/temp.macosx-10.12-x86_64-2.7/bblfsh/pyuast.o -std=c99 | |
bblfsh/pyuast.c:14:10: warning: implicit declaration of function 'PyUnicode_AsUTF8' is invalid in C99 [-Wimplicit-function-declaration] | |
return PyUnicode_AsUTF8(attribute); | |
^ | |
bblfsh/pyuast.c:14:10: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'const char *' [-Wint-conversion] | |
return PyUnicode_AsUTF8(attribute); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
bblfsh/pyuast.c:85:10: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'const char *' [-Wint-conversion] | |
return PyUnicode_AsUTF8(PyList_GET_ITEM(seq, index)); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
bblfsh/pyuast.c:124:5: error: use of undeclared identifier 'PyModuleDef_HEAD_INIT' | |
PyModuleDef_HEAD_INIT, | |
^ | |
bblfsh/pyuast.c:123:27: error: variable has incomplete type 'struct PyModuleDef' | |
static struct PyModuleDef module_def = { | |
^ | |
bblfsh/pyuast.c:123:15: note: forward declaration of 'struct PyModuleDef' | |
static struct PyModuleDef module_def = { | |
^ | |
bblfsh/pyuast.c:149:10: warning: implicit declaration of function 'PyModule_Create' is invalid in C99 [-Wimplicit-function-declaration] | |
return PyModule_Create(&module_def); | |
^ | |
4 warnings and 2 errors generated. | |
error: command 'clang' failed with exit status 1 | |
---------------------------------------- | |
Failed building wheel for bblfsh | |
Running setup.py clean for bblfsh | |
Failed to build bblfsh | |
Installing collected packages: setuptools, protobuf, grpcio, certifi, idna, urllib3, requests, docker, bblfsh | |
Found existing installation: setuptools 32.1.0 | |
Uninstalling setuptools-32.1.0: | |
Successfully uninstalled setuptools-32.1.0 | |
Found existing installation: protobuf 3.3.0 | |
Uninstalling protobuf-3.3.0: | |
Successfully uninstalled protobuf-3.3.0 | |
Found existing installation: grpcio 1.4.0 | |
Uninstalling grpcio-1.4.0: | |
Successfully uninstalled grpcio-1.4.0 | |
Found existing installation: certifi 2017.4.17 | |
Uninstalling certifi-2017.4.17: | |
Successfully uninstalled certifi-2017.4.17 | |
Found existing installation: idna 2.5 | |
Uninstalling idna-2.5: | |
Successfully uninstalled idna-2.5 | |
Found existing installation: urllib3 1.21.1 | |
Uninstalling urllib3-1.21.1: | |
Successfully uninstalled urllib3-1.21.1 | |
Found existing installation: requests 2.18.1 | |
Uninstalling requests-2.18.1: | |
Successfully uninstalled requests-2.18.1 | |
Found existing installation: docker 2.4.2 | |
Uninstalling docker-2.4.2: | |
Successfully uninstalled docker-2.4.2 | |
Found existing installation: bblfsh 0.0.4 | |
Uninstalling bblfsh-0.0.4: | |
Successfully uninstalled bblfsh-0.0.4 | |
Running setup.py install for bblfsh ... error | |
Complete output from command /usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/k7/71s120gd61sfth8r9bhwh5g40000gn/T/pip-build-Nu66Ur/bblfsh/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/k7/71s120gd61sfth8r9bhwh5g40000gn/T/pip-hvBhUM-record/install-record.txt --single-version-externally-managed --compile: | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 611 0 611 0 0 1072 0 --:--:-- --:--:-- --:--:-- 1071 | |
100 517k 100 517k 0 0 279k 0 0:00:01 0:00:01 --:--:-- 1087k | |
running install | |
running build | |
running build_py | |
creating build | |
creating build/lib.macosx-10.12-x86_64-2.7 | |
creating build/lib.macosx-10.12-x86_64-2.7/bblfsh | |
copying bblfsh/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh | |
copying bblfsh/__main__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh | |
copying bblfsh/client.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh | |
copying bblfsh/launcher.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh | |
copying bblfsh/test.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh | |
creating build/lib.macosx-10.12-x86_64-2.7/bblfsh/github | |
copying bblfsh/github/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github | |
creating build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com | |
copying bblfsh/github/com/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com | |
creating build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh | |
copying bblfsh/github/com/bblfsh/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh | |
creating build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/gogo | |
copying bblfsh/github/com/gogo/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/gogo | |
creating build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh/sdk | |
copying bblfsh/github/com/bblfsh/sdk/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh/sdk | |
creating build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh/sdk/protocol | |
copying bblfsh/github/com/bblfsh/sdk/protocol/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh/sdk/protocol | |
copying bblfsh/github/com/bblfsh/sdk/protocol/generated_pb2.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh/sdk/protocol | |
copying bblfsh/github/com/bblfsh/sdk/protocol/generated_pb2_grpc.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh/sdk/protocol | |
creating build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh/sdk/uast | |
copying bblfsh/github/com/bblfsh/sdk/uast/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh/sdk/uast | |
copying bblfsh/github/com/bblfsh/sdk/uast/generated_pb2.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/bblfsh/sdk/uast | |
creating build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/gogo/protobuf | |
copying bblfsh/github/com/gogo/protobuf/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/gogo/protobuf | |
creating build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/gogo/protobuf/gogoproto | |
copying bblfsh/github/com/gogo/protobuf/gogoproto/__init__.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/gogo/protobuf/gogoproto | |
copying bblfsh/github/com/gogo/protobuf/gogoproto/gogo_pb2.py -> build/lib.macosx-10.12-x86_64-2.7/bblfsh/github/com/gogo/protobuf/gogoproto | |
running build_ext | |
building 'bblfsh.pyuast' extension | |
creating build/temp.macosx-10.12-x86_64-2.7 | |
creating build/temp.macosx-10.12-x86_64-2.7/bblfsh | |
creating build/temp.macosx-10.12-x86_64-2.7/bblfsh/libuast | |
clang -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibblfsh/libuast/ -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/include -I/usr/include/libxml2 -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c bblfsh/pyuast.c -o build/temp.macosx-10.12-x86_64-2.7/bblfsh/pyuast.o -std=c99 | |
bblfsh/pyuast.c:14:10: warning: implicit declaration of function 'PyUnicode_AsUTF8' is invalid in C99 [-Wimplicit-function-declaration] | |
return PyUnicode_AsUTF8(attribute); | |
^ | |
bblfsh/pyuast.c:14:10: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'const char *' [-Wint-conversion] | |
return PyUnicode_AsUTF8(attribute); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
bblfsh/pyuast.c:85:10: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'const char *' [-Wint-conversion] | |
return PyUnicode_AsUTF8(PyList_GET_ITEM(seq, index)); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
bblfsh/pyuast.c:124:5: error: use of undeclared identifier 'PyModuleDef_HEAD_INIT' | |
PyModuleDef_HEAD_INIT, | |
^ | |
bblfsh/pyuast.c:123:27: error: variable has incomplete type 'struct PyModuleDef' | |
static struct PyModuleDef module_def = { | |
^ | |
bblfsh/pyuast.c:123:15: note: forward declaration of 'struct PyModuleDef' | |
static struct PyModuleDef module_def = { | |
^ | |
bblfsh/pyuast.c:149:10: warning: implicit declaration of function 'PyModule_Create' is invalid in C99 [-Wimplicit-function-declaration] | |
return PyModule_Create(&module_def); | |
^ | |
4 warnings and 2 errors generated. | |
error: command 'clang' failed with exit status 1 | |
---------------------------------------- | |
Rolling back uninstall of bblfsh | |
Command "/usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/k7/71s120gd61sfth8r9bhwh5g40000gn/T/pip-build-Nu66Ur/bblfsh/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/k7/71s120gd61sfth8r9bhwh5g40000gn/T/pip-hvBhUM-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/k7/71s120gd61sfth8r9bhwh5g40000gn/T/pip-build-Nu66Ur/bblfsh/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment