Open poke1024 opened 4 years ago
I’m using Python 3.7.6 inside a conda environment (macOS 10.15.4).
I believe the underlying issue here is with macOS deprecating libstdc++, see https://github.com/spotify/annoy/issues/349#issuecomment-456687456 Am 3. Apr. 2020, 20:50 +0200 schrieb Fabien notifications@github.com:
A few questions to help me troubleshoot:
• Which version of Python are you using? • Are you using the default python install or a virtual environment?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
I have done a few fix on the API. The fix have been tested on Windows on Ubuntu. Does it fix anything for you?
@fabanc I have faced the error with MacOS: 14.3.1. Tested on python 3.11, 3.10.
Building wheels for collected packages: pyvoronoi
Building wheel for pyvoronoi (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pyvoronoi (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [164 lines of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyvoronoi
Failed to build pyvoronoi
ERROR: Could not build wheels for pyvoronoi, which is required to install pyproject.toml-based projects
fixed as mentioned here:
env CXX=/opt/homebrew/Cellar/gcc/14.1.0_1/bin/g++-14 CC=/opt/homebrew/Cellar/gcc/14.1.0_1/bin/gcc-14 pip install pyvoronoi
Sounds good. It is something I can add in the setup.py file. I am currently working on building the wheels on most OS using cibuildwheel. I am hopping it will:
I have been on that on and off over the past 2 months. The builds can now be generated from Python 3.9 to 3.12 on Windows, Ubuntu, and MacOS.
I am working on pushing those automatically to pypi. Stay tuned.
@bulatbulat48 Using cibuildwheel, I can now generate the wheels for Mac OS. I have pushed those wheels as part of the latest release 1.1.4. Care to give it a try using pypi and see if this solves that problem for you?
pip install pyvoronoi
gives the following error:The fix is to run
CFLAGS="-stdlib=libc++" pip install pyvoronoi
.