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

Build failed for the C core of igraph. #264

Open
micheletizzoni opened this issue Apr 21, 2023 · 5 comments
Open

Build failed for the C core of igraph. #264

micheletizzoni opened this issue Apr 21, 2023 · 5 comments

Comments

@micheletizzoni
Copy link

micheletizzoni commented Apr 21, 2023

Hi, I am trying to install scikit-mobility using pip on a 2023 MacOS machine.
I have no anaconda installation.

The build of the library fails due to the error mentioned in the title. More specifically:

2 errors generated.
make[2]: *** [vendor/plfit/CMakeFiles/plfit_vendored.dir/gss.c.o] Error 1
make[1]: *** [vendor/plfit/CMakeFiles/plfit_vendored.dir/all] Error 2
make: *** [all] Error 2
Build failed for the C core of igraph.

  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for igraph
Running setup.py clean for igraph
Failed to build igraph
ERROR: Could not build wheels for igraph, which is required to install pyproject.toml-based projects

Any help with this?

Thank you.

@szhorvat
Copy link

szhorvat commented Apr 22, 2023

This is almost certainly the same issue as igraph/python-igraph#654, which is fixed in recent versions of igraph. Here's the relevant fix I made in gss.c. The fix was released with version 0.10.2.

Why pip wants to compile igraph from sources on your machine (instead of using the binaries) is unclear to me though. What version of Python are you using @micheletizzoni ?

@micheletizzoni
Copy link
Author

thanks @szhorvat! I am using Python 3.11 .

Interestingly, if I install igraph using pip it works fine and I am able to import it without issues.

The problem comes with scikit-mobility only. It does not find the installed version of igraph and it wants to compile it again. Not sure why.

@szhorvat
Copy link

szhorvat commented Apr 24, 2023

If you install directly, you get the latest version. But scikit-mobility currently indicates that it requires 0.9, which does not come with binaries for Python 3.11, so that version gets complied from sources.

This version requirement could perhaps be updated.

@micheletizzoni
Copy link
Author

thanks, it is pretty clear now. Igraph requirement should be bounced to 0.10.2

@apiszcz
Copy link

apiszcz commented Jan 4, 2024

Was this issue resolved? I'm seeing the same error, igraph 0.11.3 is installed, yet scikit-mobility install fails with error reported above.

Temporary work around, unknown if this will cause issues later.

  1. Download the scikit-mobility whl, https://pypi.org/project/scikit-mobility/#files
  2. rename .whl to .zip
  3. Edit METADATA file in the *info folder.
  4. Change
    Requires-Dist: python-igraph (>=0.9.1,<0.10.0)
    to
    Requires-Dist: python-igraph (>=0.9.1,<0.12.0)

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

3 participants