Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants