Closed LanYunDev closed 2 years ago
We don't have native wheels released for M1 at this point, so pip relies on you building it. Unfortunately, there may be some platform issues.
The error appears to be: "AttributeError: DistutilsMetaFinder instance has no attribute 'find_module'"
At this point you are on your own for M1/M2/.. and would have to figure out what is the issue. A web search for AttributeError DistutilsMetaFinder suggests there are some similar issues to take inspiration from.
I'm sorry, I looked up some similar issues through the search engine, but it still didn't solve the problem, I tried to build the build to install it, but it still seems to have problems.
Tried
python3.10 scripts/mk_make.py --prefix=/opt/local/Library/Frameworks/Python.framework/Versions/3.10 --python --pypkgdir=/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages && cd build && make && sudo make install
Still no solution to the problem of not being able to use z3 If you can help me or tell me what to do, I would appreciate it.
When I use this command.
python3.10 scripts/mk_make.py --python --pypkgdir=/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages
when rebuilding and installing, this error occurred.
Same Issue!
if you error is in building z3 can you paste content of the equivalent files on your system:
See also "/private/var/folders/9y/mkk3rkyd065g3x6jwd3pl1hc0000gn/T/pip-install-2dhlww0x/z3-solver_d2e7ef9364d14dbba481c184d869d774/core/build/CMakeFiles/CMakeOutput.log".
See also "/private/var/folders/9y/mkk3rkyd065g3x6jwd3pl1hc0000gn/T/pip-install-2dhlww0x/z3-solver_d2e7ef9364d14dbba481c184d869d774/core/build/CMakeFiles/CMakeError.log".
Also, now it should be possible to do the following (thanks to Isabelle and Arie): You can try to download
Then "pip install z3_solver-4.8.18.0-py2.py3-none-macosx_11_0_arm64.whl"
You even don't need to download. Just give the http URL to pip install.
However, it is still interesting to see the logs to understand why the build fails...
thanks very much !
thanks very much!
Also, now it should be possible to do the following (thanks to Isabelle and Arie): You can try to download
Then "pip install z3_solver-4.8.18.0-py2.py3-none-macosx_11_0_arm64.whl"
would be fixed with latest release
➜ ~ pip3 install z3-solver DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621 Collecting z3-solver Using cached z3-solver-4.8.17.0.tar.gz (4.5 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: z3-solver Building wheel for z3-solver (pyproject.toml) ... error error: subprocess-exited-with-error
× Building wheel for z3-solver (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [204 lines of output] running bdist_wheel running build Configuring Z3 -- The CXX compiler identification is AppleClang 13.1.6.13160021 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Z3 version 4.8.17.0 -- Failed to find git directory. CMake Warning at CMakeLists.txt:51 (message): Disabling Z3_INCLUDE_GIT_DESCRIBE Call Stack (most recent call first): CMakeLists.txt:100 (disable_git_describe)
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for z3-solver Failed to build z3-solver ERROR: Could not build wheels for z3-solver, which is required to install pyproject.toml-based projects
Above is the error message, below is my python 3.10 location and other information
➜ ~ which python3.10 /opt/local/bin/python3.10 ➜ ~ python3.10 -m site sys.path = [ '/Users/lanyun', '/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python310.zip', '/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10', '/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/lib-dynload', '/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages', ] USER_BASE: '/Users/lanyun/Library/Python/3.10' (exists) USER_SITE: '/Users/lanyun/Library/Python/3.10/lib/python/site-packages' (doesn't exist) ENABLE_USER_SITE: True