Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run tests on Python 3.10 #2597

Closed
1 task done
jaraco opened this issue Mar 7, 2021 · 3 comments
Closed
1 task done

Unable to run tests on Python 3.10 #2597

jaraco opened this issue Mar 7, 2021 · 3 comments
Labels
bug Needs Triage Issues that need to be evaluated for severity and status.

Comments

@jaraco
Copy link
Member

jaraco commented Mar 7, 2021

setuptools version

main

Python version

3.10.0a6

OS

macOS

Additional environment information

No response

Description

Installing Python from python.org, I then proceed to run tests with tox -e py310, but they fail when tox/pip are unable to install typed-ast:

Failed to build typed-ast
Installing collected packages: pyparsing, toml, six, py, pluggy, path, packaging, iniconfig, filelock, distlib, attrs, appdirs, apipkg, virtualenv, typing-extensions, typed-ast, termcolor, regex, pytest, pyflakes, pycodestyle, pathspec, path.py, mypy-extensions, more-itertools, mock, mccabe, execnet, contextlib2, click, tox, pytest-shutil, pytest-forked, pytest-fixture-config, pep517, mypy, jaraco.functools, jaraco.context, flake8, docutils, coverage, black, setuptools, pytest-xdist, pytest-virtualenv, pytest-mypy, pytest-flake8, pytest-enabler, pytest-cov, pytest-checkdocs, pytest-black, paver, jaraco.envs, flake8-2020
    Running setup.py install for typed-ast: started
    Running setup.py install for typed-ast: finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /Users/jaraco/code/public/pypa/setuptools/.tox/py310/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/pip-install-6kz8vj0w/typed-ast_c8f8b66ccb42442ca810b704423e27ea/setup.py'"'"'; __file__='"'"'/private/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/pip-install-6kz8vj0w/typed-ast_c8f8b66ccb42442ca810b704423e27ea/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/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/pip-record-v4c8hiug/install-record.txt --single-version-externally-managed --compile --install-headers /Users/jaraco/code/public/pypa/setuptools/.tox/py310/include/site/python3.10/typed-ast
         cwd: /private/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/pip-install-6kz8vj0w/typed-ast_c8f8b66ccb42442ca810b704423e27ea/
    Complete output (34 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.9-universal2-3.10
    creating build/lib.macosx-10.9-universal2-3.10/typed_ast
    copying typed_ast/conversions.py -> build/lib.macosx-10.9-universal2-3.10/typed_ast
    copying typed_ast/__init__.py -> build/lib.macosx-10.9-universal2-3.10/typed_ast
    copying typed_ast/ast3.py -> build/lib.macosx-10.9-universal2-3.10/typed_ast
    copying typed_ast/ast27.py -> build/lib.macosx-10.9-universal2-3.10/typed_ast
    package init file 'ast3/tests/__init__.py' not found (or not a regular file)
    creating build/lib.macosx-10.9-universal2-3.10/typed_ast/tests
    copying ast3/tests/test_basics.py -> build/lib.macosx-10.9-universal2-3.10/typed_ast/tests
    running build_ext
    building '_ast27' extension
    creating build/temp.macosx-10.9-universal2-3.10
    creating build/temp.macosx-10.9-universal2-3.10/ast27
    creating build/temp.macosx-10.9-universal2-3.10/ast27/Custom
    creating build/temp.macosx-10.9-universal2-3.10/ast27/Parser
    creating build/temp.macosx-10.9-universal2-3.10/ast27/Python
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -Iast27/Include -I/Users/jaraco/code/public/pypa/setuptools/.tox/py310/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c ast27/Custom/typed_ast.c -o build/temp.macosx-10.9-universal2-3.10/ast27/Custom/typed_ast.o
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -Iast27/Include -I/Users/jaraco/code/public/pypa/setuptools/.tox/py310/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c ast27/Parser/acceler.c -o build/temp.macosx-10.9-universal2-3.10/ast27/Parser/acceler.o
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -Iast27/Include -I/Users/jaraco/code/public/pypa/setuptools/.tox/py310/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c ast27/Parser/bitset.c -o build/temp.macosx-10.9-universal2-3.10/ast27/Parser/bitset.o
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -Iast27/Include -I/Users/jaraco/code/public/pypa/setuptools/.tox/py310/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c ast27/Parser/grammar.c -o build/temp.macosx-10.9-universal2-3.10/ast27/Parser/grammar.o
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -Iast27/Include -I/Users/jaraco/code/public/pypa/setuptools/.tox/py310/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c ast27/Parser/grammar1.c -o build/temp.macosx-10.9-universal2-3.10/ast27/Parser/grammar1.o
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -Iast27/Include -I/Users/jaraco/code/public/pypa/setuptools/.tox/py310/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c ast27/Parser/node.c -o build/temp.macosx-10.9-universal2-3.10/ast27/Parser/node.o
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -Iast27/Include -I/Users/jaraco/code/public/pypa/setuptools/.tox/py310/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c ast27/Parser/parser.c -o build/temp.macosx-10.9-universal2-3.10/ast27/Parser/parser.o
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -Iast27/Include -I/Users/jaraco/code/public/pypa/setuptools/.tox/py310/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c ast27/Parser/parsetok.c -o build/temp.macosx-10.9-universal2-3.10/ast27/Parser/parsetok.o
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -Iast27/Include -I/Users/jaraco/code/public/pypa/setuptools/.tox/py310/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c ast27/Parser/tokenizer.c -o build/temp.macosx-10.9-universal2-3.10/ast27/Parser/tokenizer.o
    ast27/Parser/tokenizer.c:19:10: fatal error: 'pydebug.h' file not found
    #include "pydebug.h"
             ^~~~~~~~~~~
    1 error generated.
    error: command '/usr/bin/gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/jaraco/code/public/pypa/setuptools/.tox/py310/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/pip-install-6kz8vj0w/typed-ast_c8f8b66ccb42442ca810b704423e27ea/setup.py'"'"'; __file__='"'"'/private/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/pip-install-6kz8vj0w/typed-ast_c8f8b66ccb42442ca810b704423e27ea/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/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/pip-record-v4c8hiug/install-record.txt --single-version-externally-managed --compile --install-headers /Users/jaraco/code/public/pypa/setuptools/.tox/py310/include/site/python3.10/typed-ast Check the logs for full command output.

Expected behavior

blah

How to Reproduce

blah

Output

blah

Code of Conduct

  • I agree to follow the PSF Code of Conduct
@jaraco jaraco added bug Needs Triage Issues that need to be evaluated for severity and status. labels Mar 7, 2021
@jaraco
Copy link
Member Author

jaraco commented Mar 7, 2021

Fixed in jaraco/skeleton@14312a5.

@jaraco jaraco closed this as completed Mar 7, 2021
@jaraco
Copy link
Member Author

jaraco commented Mar 7, 2021

Ugh. black also depends on that dependency so needs to be denied as well.

@jaraco jaraco reopened this Mar 7, 2021
@jaraco
Copy link
Member Author

jaraco commented Mar 7, 2021

Black denied in jaraco/skeleton@86efb88.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Needs Triage Issues that need to be evaluated for severity and status.
Projects
None yet
Development

No branches or pull requests

1 participant