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

install failed on python 3.13 #39

Open
doc-sheet opened this issue Oct 18, 2024 · 1 comment
Open

install failed on python 3.13 #39

doc-sheet opened this issue Oct 18, 2024 · 1 comment
Labels
🐞 bug Something isn't working

Comments

@doc-sheet
Copy link

Describe the bug
Looks like typed-ast not compatible with 3.13

To Reproduce
Steps to reproduce the behavior:

  1. Run pip install handsdown on 3.13

Expected behavior
Module installed

Desktop (please complete the following information):

  • OS: ubuntu 22.04 (i guess)
  • Version latest 2.1.0

Additional context

Build failed
 copying typed_ast/__init__.py -> build/lib.linux-x86_64-cpython-313/typed_ast
  copying typed_ast/conversions.py -> build/lib.linux-x86_64-cpython-313/typed_ast
  creating build/lib.linux-x86_64-cpython-313/typed_ast/tests
  copying ast3/tests/test_basics.py -> build/lib.linux-x86_64-cpython-313/typed_ast/tests
  running build_ext
  building '_ast27' extension
  creating build/temp.linux-x86_64-cpython-313/ast27/Custom
  creating build/temp.linux-x86_64-cpython-313/ast27/Parser
  creating build/temp.linux-x86_64-cpython-313/ast27/Python
  gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -Iast27/Include -I/tmp/tmp7aya7lid/.venv/include -I/tmp/runner-cache/Python/3.13.0/x64/include/python3.13 -c ast27/Custom/typed_ast.c -o build/temp.linux-x86_64-cpython-313/ast27/Custom/typed_ast.o
  In file included from /tmp/runner-cache/Python/3.13.0/x64/include/python3.13/pyport.h:358,
                   from /tmp/runner-cache/Python/3.13.0/x64/include/python3.13/Python.h:63,
                   from ast27/Custom/typed_ast.c:1:
  ast27/Custom/../Include/compile.h:12:12: error: unknown type name ‘PyFutureFeatures’
     12 | PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, const char *);
        |            ^~~~~~~~~~~~~~~~
  /tmp/runner-cache/Python/3.13.0/x64/include/python3.13/exports.h:94:53: note: in definition of macro ‘PyAPI_FUNC’
     94 | #       define PyAPI_FUNC(RTYPE) Py_EXPORTED_SYMBOL RTYPE
        |                                                     ^~~~~
  error: command '/usr/bin/gcc' failed with exit code 1
  

  at .venv/lib/python3.13/site-packages/poetry/installation/chef.py:164 in _prepare
      160│ 
      161│                 error = ChefBuildError("\n\n".join(message_parts))
      162│ 
      163│             if error is not None:
    → 164│                 raise error from None
      165│ 
      166│             return path
      167│ 
      168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with typed-ast (1.5.5) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "typed-ast (==1.5.5)"'.
@doc-sheet doc-sheet added the 🐞 bug Something isn't working label Oct 18, 2024
@vemel
Copy link
Owner

vemel commented Oct 21, 2024

Hello! I plan to get rid of typed-ast and drop old Python versions.

Thank you for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants