sknetwork-team / scikit-network

Graph Algorithms
Other
602 stars 67 forks source link

`ImportError: Symbol not found: ____chkstk_darwin` on fresh install for version 0.24.0 #491

Closed simondelarue closed 2 years ago

simondelarue commented 3 years ago

Description

After fresh install of version 0.24.0, I get ImportError: Symbol not found: ____chkstk_darwin error when importing scikit-network package.

What I Did

I installed scikit-network's latest version using pip:

pip install scikit-network

On import I get the following error:

  File "myFile.py", line 2, in <module>
    import sknetwork
  File "~/opt/anaconda3/envs/graphEmbedEnv/lib/python3.7/site-packages/sknetwork/__init__.py", line 9, in <module>
    import sknetwork.topology
  File "~/opt/anaconda3/envs/graphEmbedEnv/lib/python3.7/site-packages/sknetwork/topology/__init__.py", line 2, in <module>
    from sknetwork.topology.kcliques import Cliques
ImportError: dlopen(~/opt/anaconda3/envs/graphEmbedEnv/lib/python3.7/site-packages/sknetwork/topology/kcliques.cpython-37m-darwin.so, 2): Symbol not found: ____chkstk_darwin
  Referenced from: ~/opt/anaconda3/envs/graphEmbedEnv/lib/python3.7/site-packages/sknetwork/topology/../.dylibs/libomp.dylib (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libSystem.B.dylib
 in ~/opt/anaconda3/envs/graphEmbedEnv/lib/python3.7/site-packages/sknetwork/topology/../.dylibs/libomp.dylib

Following previous issues resolution, I tried to install the package following contributor guideline (python setup.py develop), which was a success.

Thanks very much !

QLutz commented 3 years ago

Hello,

Thanks for your feedback.

This issue seems to be related to our recent transition to GitHub Actions and has been documented on other packages (here and here for example).

We'll check what they've done and chose how to fix this.

simondelarue commented 3 years ago

Thanks for your help ! :)

tbonald commented 2 years ago

Fixed by python setup.py develop Thanks!