Hi
Excuse me.
I executed the command yb_build.sh release
to compile version v2.17.2 of yugabyteDB, but failed due to a fatal error. The error message is as follows:
DEPRECATION: typed-ast is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for typed-ast ... error
error: subprocess-exited-with-error
× Running setup.py install for typed-ast did not run successfully.
│ exit code: 1
╰─> [28 lines of output]
running install
/Users/simon/Documents/yugabyte-db-2.17.2/build/venv-arm64/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.macosx-13-arm64-cpython-311
creating build/lib.macosx-13-arm64-cpython-311/typed_ast
copying typed_ast/conversions.py -> build/lib.macosx-13-arm64-cpython-311/typed_ast
copying typed_ast/__init__.py -> build/lib.macosx-13-arm64-cpython-311/typed_ast
copying typed_ast/ast3.py -> build/lib.macosx-13-arm64-cpython-311/typed_ast
copying typed_ast/ast27.py -> build/lib.macosx-13-arm64-cpython-311/typed_ast
creating build/lib.macosx-13-arm64-cpython-311/typed_ast/tests
copying ast3/tests/test_basics.py -> build/lib.macosx-13-arm64-cpython-311/typed_ast/tests
running build_ext
building '_ast27' extension
creating build/temp.macosx-13-arm64-cpython-311
creating build/temp.macosx-13-arm64-cpython-311/ast27
creating build/temp.macosx-13-arm64-cpython-311/ast27/Custom
creating build/temp.macosx-13-arm64-cpython-311/ast27/Parser
creating build/temp.macosx-13-arm64-cpython-311/ast27/Python
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/opt/homebrew/opt/openjdk@11/include -Iast27/Include -I/Users/simon/Documents/yugabyte-db-2.17.2/build/venv-arm64/include -I/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c ast27/Custom/typed_ast.c -o build/temp.macosx-13-arm64-cpython-311/ast27/Custom/typed_ast.o
In file included from ast27/Custom/typed_ast.c:3:
ast27/Custom/../Include/compile.h:5:10: fatal error: 'code.h' file not found
#include "code.h"
^~~~~~~~
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: legacy-install-failure
Maybe it was running setup.py install for typed-ast, but it did not run successfully.
So far, I don’t know how to solve it.
May I ask if you can provide a solution or suggestion?