Skip to content

can not install with python 3.12.3 #75

Description

@tshrinivasan

getting below error message on pip3 install -r requirements.txt

errors:

  Stored in directory: /home/shrini/.cache/pip/wheels/55/34/d8/dbc2d1186d1bd77c0d7eb8ca4c8506edeeecff1d46cf851db6
  DEPRECATION: Building 'typed-ast' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the `--use-pep517` option, (possibly combined with `--no-build-isolation`), or adding a `pyproject.toml` file to the source tree of 'typed-ast'. Discussion can be found at https://github.com/pypa/pip/issues/6334
  Building wheel for typed-ast (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [211 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build/lib.linux-x86_64-cpython-312/typed_ast
      copying typed_ast/conversions.py -> build/lib.linux-x86_64-cpython-312/typed_ast
      copying typed_ast/ast3.py -> build/lib.linux-x86_64-cpython-312/typed_ast
      copying typed_ast/__init__.py -> build/lib.linux-x86_64-cpython-312/typed_ast
      copying typed_ast/ast27.py -> build/lib.linux-x86_64-cpython-312/typed_ast
      running build_ext
      building '_ast27' extension
      creating build/temp.linux-x86_64-cpython-312/ast27/Custom
      creating build/temp.linux-x86_64-cpython-312/ast27/Parser
      creating build/temp.linux-x86_64-cpython-312/ast27/Python
      x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -Iast27/Include -I/usr/include/python3.12 -c ast27/Custom/typed_ast.c -o build/temp.linux-x86_64-cpython-312/ast27/Custom/typed_ast.o
      In file included from ast27/Include/Python-ast.h:3,
                       from ast27/Custom/typed_ast.c:2:
      ast27/Include/asdl.h:37:41: error: unknown type name ‘PyArena’
         37 | asdl_seq *asdl_seq_new(Py_ssize_t size, PyArena *arena);
            |                                         ^~~~~~~
      ast27/Include/asdl.h:38:49: error: unknown type name ‘PyArena’
         38 | asdl_int_seq *asdl_int_seq_new(Py_ssize_t size, PyArena *arena);
            |                                                 ^~~~~~~
      ast27/Include/Python-ast.h:397:63: error: unknown type name ‘PyArena’
        397 | mod_ty _Ta27_Module(asdl_seq * body, asdl_seq * type_ignores, PyArena *arena);
            |                                                               ^~~~~~~
      ast27/Include/Python-ast.h:399:43: error: unknown type name ‘PyArena’
        399 | mod_ty _Ta27_Interactive(asdl_seq * body, PyArena *arena);
            |                                           ^~~~~~~
      ast27/Include/Python-ast.h:401:39: error: unknown type name ‘PyArena’
        401 | mod_ty _Ta27_Expression(expr_ty body, PyArena *arena);
            |                                       ^~~~~~~
      ast27/Include/Python-ast.h:403:65: error: unknown type name ‘PyArena’
        403 | mod_ty _Ta27_FunctionType(asdl_seq * argtypes, expr_ty returns, PyArena *arena);
            |                                                                 ^~~~~~~
      ast27/Include/Python-ast.h:405:37: error: unknown type name ‘PyArena’
        405 | mod_ty _Ta27_Suite(asdl_seq * body, PyArena *arena);
            |                                     ^~~~~~~
      ast27/Include/Python-ast.h:408:92: error: unknown type name ‘PyArena’
        408 |                           decorator_list, string type_comment, int lineno, int col_offset, PyArena
            |                                                                                            ^~~~~~~
      ast27/Include/Python-ast.h:412:68: error: unknown type name ‘PyArena’
        412 |                        decorator_list, int lineno, int col_offset, PyArena *arena);
            |                                                                    ^~~~~~~
      ast27/Include/Python-ast.h:414:65: error: unknown type name ‘PyArena’
        414 | stmt_ty _Ta27_Return(expr_ty value, int lineno, int col_offset, PyArena *arena);
            |                                                                 ^~~~~~~
      ast27/Include/Python-ast.h:416:70: error: unknown type name ‘PyArena’
        416 | stmt_ty _Ta27_Delete(asdl_seq * targets, int lineno, int col_offset, PyArena *arena);
            |                                                                      ^~~~~~~
      ast27/Include/Python-ast.h:419:34: error: unknown type name ‘PyArena’
        419 |                      col_offset, PyArena *arena);
            |                                  ^~~~~~~
      ast27/Include/Python-ast.h:422:25: error: unknown type name ‘PyArena’
        422 |                         PyArena *arena);
            |                         ^~~~~~~
      ast27/Include/Python-ast.h:424:91: error: unknown type name ‘PyArena’
        424 | stmt_ty _Ta27_Print(expr_ty dest, asdl_seq * values, bool nl, int lineno, int col_offset, PyArena
            |                                                                                           ^~~~~~~
      ast27/Include/Python-ast.h:428:61: error: unknown type name ‘PyArena’
        428 |                   type_comment, int lineno, int col_offset, PyArena *arena);
            |                                                             ^~~~~~~
      ast27/Include/Python-ast.h:431:21: error: unknown type name ‘PyArena’
        431 |                     PyArena *arena);
            |                     ^~~~~~~
      ast27/Include/Python-ast.h:434:18: error: unknown type name ‘PyArena’
        434 |                  PyArena *arena);
            |                  ^~~~~~~
      ast27/Include/Python-ast.h:437:62: error: unknown type name ‘PyArena’
        437 |                    type_comment, int lineno, int col_offset, PyArena *arena);
            |                                                              ^~~~~~~
      ast27/Include/Python-ast.h:439:92: error: unknown type name ‘PyArena’
        439 | stmt_ty _Ta27_Raise(expr_ty type, expr_ty inst, expr_ty tback, int lineno, int col_offset, PyArena
            |                                                                                            ^~~~~~~
      ast27/Include/Python-ast.h:443:37: error: unknown type name ‘PyArena’
        443 |                         col_offset, PyArena *arena);
            |                                     ^~~~~~~
      ast27/Include/Python-ast.h:445:93: error: unknown type name ‘PyArena’
        445 | stmt_ty _Ta27_TryFinally(asdl_seq * body, asdl_seq * finalbody, int lineno, int col_offset, PyArena
            |                                                                                             ^~~~~~~
      ast27/Include/Python-ast.h:448:77: error: unknown type name ‘PyArena’
        448 | stmt_ty _Ta27_Assert(expr_ty test, expr_ty msg, int lineno, int col_offset, PyArena *arena);
            |                                                                             ^~~~~~~
      ast27/Include/Python-ast.h:450:68: error: unknown type name ‘PyArena’
        450 | stmt_ty _Ta27_Import(asdl_seq * names, int lineno, int col_offset, PyArena *arena);
            |                                                                    ^~~~~~~
      ast27/Include/Python-ast.h:453:38: error: unknown type name ‘PyArena’
        453 |                          col_offset, PyArena *arena);
            |                                      ^~~~~~~
      ast27/Include/Python-ast.h:456:20: error: unknown type name ‘PyArena’
        456 |                    PyArena *arena);
            |                    ^~~~~~~
      ast27/Include/Python-ast.h:458:68: error: unknown type name ‘PyArena’
        458 | stmt_ty _Ta27_Global(asdl_seq * names, int lineno, int col_offset, PyArena *arena);
            |                                                                    ^~~~~~~
      ast27/Include/Python-ast.h:460:63: error: unknown type name ‘PyArena’
        460 | stmt_ty _Ta27_Expr(expr_ty value, int lineno, int col_offset, PyArena *arena);
            |                                                               ^~~~~~~
      ast27/Include/Python-ast.h:462:48: error: unknown type name ‘PyArena’
        462 | stmt_ty _Ta27_Pass(int lineno, int col_offset, PyArena *arena);
            |                                                ^~~~~~~
      ast27/Include/Python-ast.h:464:49: error: unknown type name ‘PyArena’
        464 | stmt_ty _Ta27_Break(int lineno, int col_offset, PyArena *arena);
            |                                                 ^~~~~~~
      ast27/Include/Python-ast.h:466:52: error: unknown type name ‘PyArena’
        466 | stmt_ty _Ta27_Continue(int lineno, int col_offset, PyArena *arena);
            |                                                    ^~~~~~~
      ast27/Include/Python-ast.h:468:83: error: unknown type name ‘PyArena’
        468 | expr_ty _Ta27_BoolOp(boolop_ty op, asdl_seq * values, int lineno, int col_offset, PyArena *arena);
            |                                                                                   ^~~~~~~
      ast27/Include/Python-ast.h:471:21: error: unknown type name ‘PyArena’
        471 |                     PyArena *arena);
            |                     ^~~~~~~
      ast27/Include/Python-ast.h:473:83: error: unknown type name ‘PyArena’
        473 | expr_ty _Ta27_UnaryOp(unaryop_ty op, expr_ty operand, int lineno, int col_offset, PyArena *arena);
            |                                                                                   ^~~~~~~
      ast27/Include/Python-ast.h:475:83: error: unknown type name ‘PyArena’
        475 | expr_ty _Ta27_Lambda(arguments_ty args, expr_ty body, int lineno, int col_offset, PyArena *arena);
            |                                                                                   ^~~~~~~
      ast27/Include/Python-ast.h:477:93: error: unknown type name ‘PyArena’
        477 | expr_ty _Ta27_IfExp(expr_ty test, expr_ty body, expr_ty orelse, int lineno, int col_offset, PyArena
            |                                                                                             ^~~~~~~
      ast27/Include/Python-ast.h:480:84: error: unknown type name ‘PyArena’
        480 | expr_ty _Ta27_Dict(asdl_seq * keys, asdl_seq * values, int lineno, int col_offset, PyArena *arena);
            |                                                                                    ^~~~~~~
      ast27/Include/Python-ast.h:482:64: error: unknown type name ‘PyArena’
        482 | expr_ty _Ta27_Set(asdl_seq * elts, int lineno, int col_offset, PyArena *arena);
            |                                                                ^~~~~~~
      ast27/Include/Python-ast.h:484:88: error: unknown type name ‘PyArena’
        484 | expr_ty _Ta27_ListComp(expr_ty elt, asdl_seq * generators, int lineno, int col_offset, PyArena
            |                                                                                        ^~~~~~~
      ast27/Include/Python-ast.h:487:87: error: unknown type name ‘PyArena’
        487 | expr_ty _Ta27_SetComp(expr_ty elt, asdl_seq * generators, int lineno, int col_offset, PyArena
            |                                                                                       ^~~~~~~
      ast27/Include/Python-ast.h:491:36: error: unknown type name ‘PyArena’
        491 |                        col_offset, PyArena *arena);
            |                                    ^~~~~~~
      ast27/Include/Python-ast.h:493:92: error: unknown type name ‘PyArena’
        493 | expr_ty _Ta27_GeneratorExp(expr_ty elt, asdl_seq * generators, int lineno, int col_offset, PyArena
            |                                                                                            ^~~~~~~
      ast27/Include/Python-ast.h:496:64: error: unknown type name ‘PyArena’
        496 | expr_ty _Ta27_Yield(expr_ty value, int lineno, int col_offset, PyArena *arena);
            |                                                                ^~~~~~~
      ast27/Include/Python-ast.h:499:35: error: unknown type name ‘PyArena’
        499 |                       col_offset, PyArena *arena);
            |                                   ^~~~~~~
      ast27/Include/Python-ast.h:502:56: error: unknown type name ‘PyArena’
        502 |                    kwargs, int lineno, int col_offset, PyArena *arena);
            |                                                        ^~~~~~~
      ast27/Include/Python-ast.h:504:63: error: unknown type name ‘PyArena’
        504 | expr_ty _Ta27_Repr(expr_ty value, int lineno, int col_offset, PyArena *arena);
            |                                                               ^~~~~~~
      ast27/Include/Python-ast.h:506:57: error: unknown type name ‘PyArena’
        506 | expr_ty _Ta27_Num(object n, int lineno, int col_offset, PyArena *arena);
            |                                                         ^~~~~~~
      ast27/Include/Python-ast.h:508:70: error: unknown type name ‘PyArena’
        508 | expr_ty _Ta27_Str(string s, string kind, int lineno, int col_offset, PyArena *arena);
            |                                                                      ^~~~~~~
      ast27/Include/Python-ast.h:511:37: error: unknown type name ‘PyArena’
        511 |                         col_offset, PyArena *arena);
            |                                     ^~~~~~~
      ast27/Include/Python-ast.h:514:37: error: unknown type name ‘PyArena’
        514 |                         col_offset, PyArena *arena);
            |                                     ^~~~~~~
      ast27/Include/Python-ast.h:516:84: error: unknown type name ‘PyArena’
        516 | expr_ty _Ta27_Name(identifier id, expr_context_ty ctx, int lineno, int col_offset, PyArena *arena);
            |                                                                                    ^~~~~~~
      ast27/Include/Python-ast.h:518:86: error: unknown type name ‘PyArena’
        518 | expr_ty _Ta27_List(asdl_seq * elts, expr_context_ty ctx, int lineno, int col_offset, PyArena
            |                                                                                      ^~~~~~~
      ast27/Include/Python-ast.h:521:87: error: unknown type name ‘PyArena’
        521 | expr_ty _Ta27_Tuple(asdl_seq * elts, expr_context_ty ctx, int lineno, int col_offset, PyArena
            |                                                                                       ^~~~~~~
      ast27/Include/Python-ast.h:524:25: error: unknown type name ‘PyArena’
        524 | slice_ty _Ta27_Ellipsis(PyArena *arena);
            |                         ^~~~~~~
      ast27/Include/Python-ast.h:526:66: error: unknown type name ‘PyArena’
        526 | slice_ty _Ta27_Slice(expr_ty lower, expr_ty upper, expr_ty step, PyArena *arena);
            |                                                                  ^~~~~~~
      ast27/Include/Python-ast.h:528:42: error: unknown type name ‘PyArena’
        528 | slice_ty _Ta27_ExtSlice(asdl_seq * dims, PyArena *arena);
            |                                          ^~~~~~~
      ast27/Include/Python-ast.h:530:37: error: unknown type name ‘PyArena’
        530 | slice_ty _Ta27_Index(expr_ty value, PyArena *arena);
            |                                     ^~~~~~~
      ast27/Include/Python-ast.h:532:84: error: unknown type name ‘PyArena’
        532 | comprehension_ty _Ta27_comprehension(expr_ty target, expr_ty iter, asdl_seq * ifs, PyArena *arena);
            |                                                                                    ^~~~~~~
      ast27/Include/Python-ast.h:535:50: error: unknown type name ‘PyArena’
        535 |                                      col_offset, PyArena *arena);
            |                                                  ^~~~~~~
      ast27/Include/Python-ast.h:538:66: error: unknown type name ‘PyArena’
        538 |                              defaults, asdl_seq * type_comments, PyArena *arena);
            |                                                                  ^~~~~~~
      ast27/Include/Python-ast.h:540:57: error: unknown type name ‘PyArena’
        540 | keyword_ty _Ta27_keyword(identifier arg, expr_ty value, PyArena *arena);
            |                                                         ^~~~~~~
      ast27/Include/Python-ast.h:542:58: error: unknown type name ‘PyArena’
        542 | alias_ty _Ta27_alias(identifier name, identifier asname, PyArena *arena);
            |                                                          ^~~~~~~
      ast27/Include/Python-ast.h:544:45: error: unknown type name ‘PyArena’
        544 | type_ignore_ty _Ta27_TypeIgnore(int lineno, PyArena *arena);
            |                                             ^~~~~~~
      ast27/Include/Python-ast.h:547:39: error: unknown type name ‘PyArena’
        547 | mod_ty Ta27AST_obj2mod(PyObject* ast, PyArena* arena, int mode);
            |                                       ^~~~~~~
      In file included from ast27/Custom/typed_ast.c:3:
      ast27/Include/compile.h:5:10: fatal error: code.h: No such file or directory
          5 | #include "code.h"
            |          ^~~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-linux-gnu-gcc' 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
  Running setup.py clean for typed-ast
  DEPRECATION: Building 'wrapt' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the `--use-pep517` option, (possibly combined with `--no-build-isolation`), or adding a `pyproject.toml` file to the source tree of 'wrapt'. Discussion can be found at https://github.com/pypa/pip/issues/6334
  Building wheel for wrapt (setup.py) ... done
  Created wheel for wrapt: filename=wrapt-1.11.1-cp312-cp312-linux_x86_64.whl size=74715 sha256=19c93ea8550556df4c3a650292464dece35b8958c770e77525c5c8717f0e4471
  Stored in directory: /home/shrini/.cache/pip/wheels/b1/40/c1/c26f4f1711615219188db80ba673817e8a1d0765f4c078fe82
Successfully built bs4 Fuzzy lazy-object-proxy wrapt
Failed to build typed-ast
ERROR: Failed to build installable wheels for some pyproject.toml based projects (typed-ast)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions