Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing planarity on MacOS #16

Open
rlim-fm opened this issue Jun 19, 2024 · 1 comment
Open

Error installing planarity on MacOS #16

rlim-fm opened this issue Jun 19, 2024 · 1 comment

Comments

@rlim-fm
Copy link

rlim-fm commented Jun 19, 2024

pip3 install planarity

in the terminal produces the following error message:

Collecting planarity
Using cached planarity-0.5.tar.gz (255 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: planarity
Building wheel for planarity (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for planarity (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-universal2-cpython-312
creating build/lib.macosx-10.9-universal2-cpython-312/planarity
copying planarity/planarity_networkx.py -> build/lib.macosx-10.9-universal2-cpython-312/planarity
copying planarity/init.py -> build/lib.macosx-10.9-universal2-cpython-312/planarity
copying planarity/planarity_functions.py -> build/lib.macosx-10.9-universal2-cpython-312/planarity
running build_ext
building 'planarity.planarity' extension
creating build/temp.macosx-10.9-universal2-cpython-312
creating build/temp.macosx-10.9-universal2-cpython-312/planarity
creating build/temp.macosx-10.9-universal2-cpython-312/planarity/src
clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -arch arm64 -arch x86_64 -g -Iplanarity/src/ -I/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c planarity/planarity.c -o build/temp.macosx-10.9-universal2-cpython-312/planarity/planarity.o
planarity/planarity.c:4235:27: error: incompatible pointer to integer conversion assigning to 'int' from 'void *' [-Wint-conversion]
__pyx_v_self->embedding = NULL;
^ ~~~~
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: Failed building wheel for planarity
Failed to build planarity
ERROR: Could not build wheels for planarity, which is required to install pyproject.toml-based projects

@hagberg
Copy link
Owner

hagberg commented Jul 6, 2024

Fixed in 0.6 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants