-
Notifications
You must be signed in to change notification settings - Fork 152
Closed
Description
According to python/mypy#7001 (comment), typed-ast does not work on Python 3.8. We should upgrade to from typed-ast 1.3.5 to a version that does.
Output from pip install -r requirements.pip
Installing collected packages: appdirs, typed-ast, lazy-object-proxy, wrapt, six, astroid, attrs, click, toml, black, entrypoints, pycodestyle, mccabe, pyflakes, flake8, formencode, isort, linecache2, mock, nose, pip-tools, pylint, traceback2, unicodecsv, unittest2, xlrd, yapf
Running setup.py install for typed-ast ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/pyenv/versions/3.8.0/envs/pyxform-env/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/3r/3bt8vq7s1d98y0_lpd8w8twr0000gn/T/pip-install-9wxnjtkx/typed-ast/setup.py'"'"'; __file__='"'"'/private/var/folders/3r/3bt8vq7s1d98y0_lpd8w8twr0000gn/T/pip-install-9wxnjtkx/typed-ast/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/3r/3bt8vq7s1d98y0_lpd8w8twr0000gn/T/pip-record-57r8r1oy/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include/site/python3.8/typed-ast
cwd: /private/var/folders/3r/3bt8vq7s1d98y0_lpd8w8twr0000gn/T/pip-install-9wxnjtkx/typed-ast/
Complete output (58 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.15-x86_64-3.8
creating build/lib.macosx-10.15-x86_64-3.8/typed_ast
copying typed_ast/conversions.py -> build/lib.macosx-10.15-x86_64-3.8/typed_ast
copying typed_ast/__init__.py -> build/lib.macosx-10.15-x86_64-3.8/typed_ast
copying typed_ast/ast3.py -> build/lib.macosx-10.15-x86_64-3.8/typed_ast
copying typed_ast/ast27.py -> build/lib.macosx-10.15-x86_64-3.8/typed_ast
package init file 'ast3/tests/__init__.py' not found (or not a regular file)
creating build/lib.macosx-10.15-x86_64-3.8/typed_ast/tests
copying ast3/tests/test_basics.py -> build/lib.macosx-10.15-x86_64-3.8/typed_ast/tests
running build_ext
building '_ast27' extension
creating build/temp.macosx-10.15-x86_64-3.8
creating build/temp.macosx-10.15-x86_64-3.8/ast27
creating build/temp.macosx-10.15-x86_64-3.8/ast27/Parser
creating build/temp.macosx-10.15-x86_64-3.8/ast27/Python
creating build/temp.macosx-10.15-x86_64-3.8/ast27/Custom
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast27/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast27/Parser/acceler.c -o build/temp.macosx-10.15-x86_64-3.8/ast27/Parser/acceler.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast27/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast27/Parser/bitset.c -o build/temp.macosx-10.15-x86_64-3.8/ast27/Parser/bitset.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast27/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast27/Parser/grammar.c -o build/temp.macosx-10.15-x86_64-3.8/ast27/Parser/grammar.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast27/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast27/Parser/grammar1.c -o build/temp.macosx-10.15-x86_64-3.8/ast27/Parser/grammar1.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast27/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast27/Parser/node.c -o build/temp.macosx-10.15-x86_64-3.8/ast27/Parser/node.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast27/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast27/Parser/parser.c -o build/temp.macosx-10.15-x86_64-3.8/ast27/Parser/parser.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast27/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast27/Parser/parsetok.c -o build/temp.macosx-10.15-x86_64-3.8/ast27/Parser/parsetok.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast27/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast27/Parser/tokenizer.c -o build/temp.macosx-10.15-x86_64-3.8/ast27/Parser/tokenizer.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast27/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast27/Python/asdl.c -o build/temp.macosx-10.15-x86_64-3.8/ast27/Python/asdl.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast27/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast27/Python/ast.c -o build/temp.macosx-10.15-x86_64-3.8/ast27/Python/ast.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast27/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast27/Python/graminit.c -o build/temp.macosx-10.15-x86_64-3.8/ast27/Python/graminit.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast27/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast27/Python/mystrtoul.c -o build/temp.macosx-10.15-x86_64-3.8/ast27/Python/mystrtoul.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast27/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast27/Python/Python-ast.c -o build/temp.macosx-10.15-x86_64-3.8/ast27/Python/Python-ast.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast27/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast27/Custom/typed_ast.c -o build/temp.macosx-10.15-x86_64-3.8/ast27/Custom/typed_ast.o
clang -bundle -undefined dynamic_lookup -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/usr/local/pyenv/versions/3.8.0/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/usr/local/pyenv/versions/3.8.0/lib build/temp.macosx-10.15-x86_64-3.8/ast27/Parser/acceler.o build/temp.macosx-10.15-x86_64-3.8/ast27/Parser/bitset.o build/temp.macosx-10.15-x86_64-3.8/ast27/Parser/grammar.o build/temp.macosx-10.15-x86_64-3.8/ast27/Parser/grammar1.o build/temp.macosx-10.15-x86_64-3.8/ast27/Parser/node.o build/temp.macosx-10.15-x86_64-3.8/ast27/Parser/parser.o build/temp.macosx-10.15-x86_64-3.8/ast27/Parser/parsetok.o build/temp.macosx-10.15-x86_64-3.8/ast27/Parser/tokenizer.o build/temp.macosx-10.15-x86_64-3.8/ast27/Python/asdl.o build/temp.macosx-10.15-x86_64-3.8/ast27/Python/ast.o build/temp.macosx-10.15-x86_64-3.8/ast27/Python/graminit.o build/temp.macosx-10.15-x86_64-3.8/ast27/Python/mystrtoul.o build/temp.macosx-10.15-x86_64-3.8/ast27/Python/Python-ast.o build/temp.macosx-10.15-x86_64-3.8/ast27/Custom/typed_ast.o -o build/lib.macosx-10.15-x86_64-3.8/typed_ast/_ast27.cpython-38-darwin.so
building '_ast3' extension
creating build/temp.macosx-10.15-x86_64-3.8/ast3
creating build/temp.macosx-10.15-x86_64-3.8/ast3/Parser
creating build/temp.macosx-10.15-x86_64-3.8/ast3/Python
creating build/temp.macosx-10.15-x86_64-3.8/ast3/Custom
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast3/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast3/Parser/acceler.c -o build/temp.macosx-10.15-x86_64-3.8/ast3/Parser/acceler.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast3/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast3/Parser/bitset.c -o build/temp.macosx-10.15-x86_64-3.8/ast3/Parser/bitset.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast3/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast3/Parser/grammar.c -o build/temp.macosx-10.15-x86_64-3.8/ast3/Parser/grammar.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast3/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast3/Parser/grammar1.c -o build/temp.macosx-10.15-x86_64-3.8/ast3/Parser/grammar1.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast3/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast3/Parser/node.c -o build/temp.macosx-10.15-x86_64-3.8/ast3/Parser/node.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast3/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast3/Parser/parser.c -o build/temp.macosx-10.15-x86_64-3.8/ast3/Parser/parser.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast3/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast3/Parser/parsetok.c -o build/temp.macosx-10.15-x86_64-3.8/ast3/Parser/parsetok.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast3/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast3/Parser/tokenizer.c -o build/temp.macosx-10.15-x86_64-3.8/ast3/Parser/tokenizer.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast3/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast3/Python/asdl.c -o build/temp.macosx-10.15-x86_64-3.8/ast3/Python/asdl.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Iast3/Include -I/usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include -I/usr/local/pyenv/versions/3.8.0/include/python3.8 -c ast3/Python/ast.c -o build/temp.macosx-10.15-x86_64-3.8/ast3/Python/ast.o
ast3/Python/ast.c:22:1: error: conflicting types for '_PyObject_FastCall'
_PyObject_FastCall(PyObject *func, PyObject *const *args, int nargs)
^
/usr/local/pyenv/versions/3.8.0/include/python3.8/cpython/abstract.h:145:1: note: previous definition is here
_PyObject_FastCall(PyObject *func, PyObject *const *args, Py_ssize_t nargs)
^
1 error generated.
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/pyenv/versions/3.8.0/envs/pyxform-env/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/3r/3bt8vq7s1d98y0_lpd8w8twr0000gn/T/pip-install-9wxnjtkx/typed-ast/setup.py'"'"'; __file__='"'"'/private/var/folders/3r/3bt8vq7s1d98y0_lpd8w8twr0000gn/T/pip-install-9wxnjtkx/typed-ast/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/3r/3bt8vq7s1d98y0_lpd8w8twr0000gn/T/pip-record-57r8r1oy/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/pyenv/versions/3.8.0/envs/pyxform-env/include/site/python3.8/typed-ast Check the logs for full command output.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels