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

typed-ast dependency end of life #832

Open
jbpaux opened this issue Jan 11, 2023 · 5 comments
Open

typed-ast dependency end of life #832

jbpaux opened this issue Jan 11, 2023 · 5 comments

Comments

@jbpaux
Copy link

jbpaux commented Jan 11, 2023

Hi, according to this issue python/typed_ast#179 typed-ast is end of life and you should go to ast package instead

@s3v-
Copy link

s3v- commented Jan 1, 2024

typed-ast was removed from Debian sid (unstable) and trixie (testing)
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1057174
and diagrams is uninstallable consequently.

Kind Regards

@GadgetSteve
Copy link

Over a year on and still an issue. On Windows without the ability to build the latest typed-ast & since wheels are not available for Python 3.12 this has blocked diagrams for me.

@jpvlsmv
Copy link

jpvlsmv commented Sep 4, 2024

And in fact, the typed-ast dependency isn't actually a requirement. I cloned the repo, deleted the line, and it Just Worked.

Looks like typed-ast was a requirement of the poetry tools back in the python 3.7 days, and can be simply removed now.

@andrew-womeldorf
Copy link

I can't build the typed-ast on python 3.13, which means diagrams is unusable on 3.13:

$ python --version
Python 3.13.0
$ pip wheel --no-cache-dir --use-pep517 "typed-ast (==1.5.5)"
Collecting typed-ast==1.5.5
  Downloading typed_ast-1.5.5.tar.gz (252 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 252.8/252.8 kB 4.4 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: typed-ast
  Building wheel for typed-ast (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for typed-ast (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [22 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build/lib.macosx-11.0-arm64-cpython-313/typed_ast
      copying typed_ast/conversions.py -> build/lib.macosx-11.0-arm64-cpython-313/typed_ast
      copying typed_ast/__init__.py -> build/lib.macosx-11.0-arm64-cpython-313/typed_ast
      copying typed_ast/ast3.py -> build/lib.macosx-11.0-arm64-cpython-313/typed_ast
      copying typed_ast/ast27.py -> build/lib.macosx-11.0-arm64-cpython-313/typed_ast
      creating build/lib.macosx-11.0-arm64-cpython-313/typed_ast/tests
      copying ast3/tests/test_basics.py -> build/lib.macosx-11.0-arm64-cpython-313/typed_ast/tests
      running build_ext
      building '_ast27' extension
      creating build/temp.macosx-11.0-arm64-cpython-313/ast27/Custom
      creating build/temp.macosx-11.0-arm64-cpython-313/ast27/Parser
      creating build/temp.macosx-11.0-arm64-cpython-313/ast27/Python
      clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Iast27/Include -I/Users/awomeldorf/.local/share/mise/installs/python/3.13.0/include/python3.13 -c ast27/Custom/typed_ast.c -o build/temp.macosx-11.0-arm64-cpython-313/ast27/Custom/typed_ast.o
      In file included from ast27/Custom/typed_ast.c:3:
      ast27/Custom/../Include/compile.h:12:12: error: unknown type name 'PyFutureFeatures'
         12 | PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, const char *);
            |            ^
      1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for typed-ast
Failed to build typed-ast
ERROR: Failed to build one or more wheels

@andrew-womeldorf
Copy link

Oh, just noticed that it's not an issue with the more recent version of diagrams.

  • 0.23.4 failed with this typed-ast issue
  • 0.24.1 succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants