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-1.4.0 fails to install #574

Open
derSteFfi opened this issue Dec 2, 2020 · 1 comment
Open

typed-ast-1.4.0 fails to install #574

derSteFfi opened this issue Dec 2, 2020 · 1 comment

Comments

@derSteFfi
Copy link

typed-ast-1.4.0 fails to install:

ast3/Python/ast.c: In Funktion »decode_bytes_with_escapes«:
    ast3/Python/ast.c:4534:24: Fehler: zu viele Argumente für Funktion »_PyBytes_DecodeEscape«
     4534 |     PyObject *result = _PyBytes_DecodeEscape(s, len, NULL, 0, NULL,
          |                        ^~~~~~~~~~~~~~~~~~~~~
    In Datei, eingebunden von /usr/include/python3.9/bytesobject.h:75,
                     von /usr/include/python3.9/Python.h:96,
                     von ast3/Python/ast.c:6:
    /usr/include/python3.9/cpython/bytesobject.h:28:24: Anmerkung: hier deklariert
       28 | PyAPI_FUNC(PyObject *) _PyBytes_DecodeEscape(const char *, Py_ssize_t,
          |                        ^~~~~~~~~~~~~~~~~~~~~
    error: command '/usr/bin/gcc' failed with exit code 1

gcc version 10.2.0. Updating typed-ast to 1.4.1 in requirements.txt fixed the issue.

@reenigneEsrever92
Copy link

Same here.

Seems the Signature has changed in between python versions!?
From typed-ast>=1.4.1 onwards seems to work though.

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

2 participants