sknetwork-team / scikit-network

Graph Algorithms
Other
611 stars 65 forks source link

python -m pip install scikit-network/ fails because it is looking for /triangles.cpp: #528

Closed vzografos closed 2 years ago

vzografos commented 2 years ago

Description

First I installed sknetwork using pip install sknetwork. Installation works well. Then when I import sknetwork I get ModuleNotFoundError: No module named 'sknetwork.topology.kcliques' After trying different things I gave up. Uninstalled with pip and decided to compile from source.

What I Did

git clone https://github.com/sknetwork-team/scikit-network.git
python -m pip install scikit-network/
Processing ./scikit-network
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.21.5 in /clusterfs/.pyenv/versions/3.9.6/envs/proptech_env/lib/python3.9/site-packages (from scikit-network==0.26.0) (1.22.2)
Requirement already satisfied: scipy>=1.6.3 in /clusterfs/.pyenv/versions/3.9.6/envs/proptech_env/lib/python3.9/site-packages (from scikit-network==0.26.0) (1.8.0)
Building wheels for collected packages: scikit-network
  Building wheel for scikit-network (setup.py) ... error
  error: subprocess-exited-with-error

  python setup.py bdist_wheel did not run successfully.
  exit code: 1

  [26 lines of output]
  running bdist_wheel
  running build
  running build_py
  running egg_info
  writing scikit_network.egg-info/PKG-INFO
  writing dependency_links to scikit_network.egg-info/dependency_links.txt
  writing entry points to scikit_network.egg-info/entry_points.txt
  writing requirements to scikit_network.egg-info/requires.txt
  writing top-level names to scikit_network.egg-info/top_level.txt
  adding license file 'LICENSE' (matched pattern 'LICEN[CS]E*')
  adding license file 'AUTHORS.rst' (matched pattern 'AUTHORS*')
  reading manifest file 'scikit_network.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no previously-included files matching '__pycache__' found under directory '*'
  warning: no previously-included files matching '*.py[co]' found under directory '*'
  warning: no files found matching '*.jpg' under directory 'docs'
  warning: no files found matching '*.png' under directory 'docs'
  warning: no files found matching '*.gif' under directory 'docs'
  writing manifest file 'scikit_network.egg-info/SOURCES.txt'
  running build_ext
  building 'sknetwork.topology.triangles' extension
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/clusterfs/.pyenv/versions/proptech_env/lib/python3.9/site-packages/numpy/core/include -I/clusterfs/.pyenv/versions/proptech_env/lib/python3.9/site-packages/numpy/core/include -I/clusterfs/.pyenv/versions/proptech_env/include -I/clusterfs/.pyenv/versions/3.9.6/include/python3.9 -I/clusterfs/.pyenv/versions/proptech_env/lib/python3.9/site-packages/numpy/core/include -c ./sknetwork/topology/triangles.cpp -o build/temp.linux-aarch64-3.9/./sknetwork/topology/triangles.o
  gcc: error: ./sknetwork/topology/triangles.cpp: No such file or directory
  gcc: fatal error: no input files
  compilation terminated.
  error: command '/usr/bin/gcc' 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 scikit-network
  Running setup.py clean for scikit-network
Failed to build scikit-network
Installing collected packages: scikit-network
  Running setup.py install for scikit-network ... error
  error: subprocess-exited-with-error

  Running setup.py install for scikit-network did not run successfully.
  exit code: 1

  [230 lines of output]
  running install
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-3.9
  creating build/lib.linux-aarch64-3.9/sknetwork
  copying sknetwork/sknetwork.py -> build/lib.linux-aarch64-3.9/sknetwork
  copying sknetwork/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork
  creating build/lib.linux-aarch64-3.9/sknetwork/topology
  copying sknetwork/topology/weisfeiler_lehman.py -> build/lib.linux-aarch64-3.9/sknetwork/topology
  copying sknetwork/topology/structure.py -> build/lib.linux-aarch64-3.9/sknetwork/topology
  copying sknetwork/topology/dag.py -> build/lib.linux-aarch64-3.9/sknetwork/topology
  copying sknetwork/topology/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/topology
  creating build/lib.linux-aarch64-3.9/sknetwork/embedding
  copying sknetwork/embedding/spring.py -> build/lib.linux-aarch64-3.9/sknetwork/embedding
  copying sknetwork/embedding/metrics.py -> build/lib.linux-aarch64-3.9/sknetwork/embedding
  copying sknetwork/embedding/louvain_embedding.py -> build/lib.linux-aarch64-3.9/sknetwork/embedding
  copying sknetwork/embedding/base.py -> build/lib.linux-aarch64-3.9/sknetwork/embedding
  copying sknetwork/embedding/spectral.py -> build/lib.linux-aarch64-3.9/sknetwork/embedding
  copying sknetwork/embedding/random_projection.py -> build/lib.linux-aarch64-3.9/sknetwork/embedding
  copying sknetwork/embedding/svd.py -> build/lib.linux-aarch64-3.9/sknetwork/embedding
  copying sknetwork/embedding/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/embedding
  copying sknetwork/embedding/force_atlas.py -> build/lib.linux-aarch64-3.9/sknetwork/embedding
  copying sknetwork/embedding/louvain_hierarchy.py -> build/lib.linux-aarch64-3.9/sknetwork/embedding
  creating build/lib.linux-aarch64-3.9/sknetwork/linalg
  copying sknetwork/linalg/operators.py -> build/lib.linux-aarch64-3.9/sknetwork/linalg
  copying sknetwork/linalg/sparse_lowrank.py -> build/lib.linux-aarch64-3.9/sknetwork/linalg
  copying sknetwork/linalg/eig_solver.py -> build/lib.linux-aarch64-3.9/sknetwork/linalg
  copying sknetwork/linalg/polynome.py -> build/lib.linux-aarch64-3.9/sknetwork/linalg
  copying sknetwork/linalg/basics.py -> build/lib.linux-aarch64-3.9/sknetwork/linalg
  copying sknetwork/linalg/ppr_solver.py -> build/lib.linux-aarch64-3.9/sknetwork/linalg
  copying sknetwork/linalg/svd_solver.py -> build/lib.linux-aarch64-3.9/sknetwork/linalg
  copying sknetwork/linalg/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/linalg
  copying sknetwork/linalg/normalization.py -> build/lib.linux-aarch64-3.9/sknetwork/linalg
  creating build/lib.linux-aarch64-3.9/sknetwork/regression
  copying sknetwork/regression/base.py -> build/lib.linux-aarch64-3.9/sknetwork/regression
  copying sknetwork/regression/diffusion.py -> build/lib.linux-aarch64-3.9/sknetwork/regression
  copying sknetwork/regression/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/regression
  creating build/lib.linux-aarch64-3.9/sknetwork/data
  copying sknetwork/data/toy_graphs.py -> build/lib.linux-aarch64-3.9/sknetwork/data
  copying sknetwork/data/load.py -> build/lib.linux-aarch64-3.9/sknetwork/data
  copying sknetwork/data/test_graphs.py -> build/lib.linux-aarch64-3.9/sknetwork/data
  copying sknetwork/data/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/data
  copying sknetwork/data/parse.py -> build/lib.linux-aarch64-3.9/sknetwork/data
  copying sknetwork/data/models.py -> build/lib.linux-aarch64-3.9/sknetwork/data
  creating build/lib.linux-aarch64-3.9/sknetwork/utils
  copying sknetwork/utils/check.py -> build/lib.linux-aarch64-3.9/sknetwork/utils
  copying sknetwork/utils/timeout.py -> build/lib.linux-aarch64-3.9/sknetwork/utils
  copying sknetwork/utils/verbose.py -> build/lib.linux-aarch64-3.9/sknetwork/utils
  copying sknetwork/utils/ward.py -> build/lib.linux-aarch64-3.9/sknetwork/utils
  copying sknetwork/utils/base.py -> build/lib.linux-aarch64-3.9/sknetwork/utils
  copying sknetwork/utils/membership.py -> build/lib.linux-aarch64-3.9/sknetwork/utils
  copying sknetwork/utils/co_neighbor.py -> build/lib.linux-aarch64-3.9/sknetwork/utils
  copying sknetwork/utils/neighbors.py -> build/lib.linux-aarch64-3.9/sknetwork/utils
  copying sknetwork/utils/knn.py -> build/lib.linux-aarch64-3.9/sknetwork/utils
  copying sknetwork/utils/simplex.py -> build/lib.linux-aarch64-3.9/sknetwork/utils
  copying sknetwork/utils/format.py -> build/lib.linux-aarch64-3.9/sknetwork/utils
  copying sknetwork/utils/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/utils
  copying sknetwork/utils/seeds.py -> build/lib.linux-aarch64-3.9/sknetwork/utils
  copying sknetwork/utils/kmeans.py -> build/lib.linux-aarch64-3.9/sknetwork/utils
  creating build/lib.linux-aarch64-3.9/sknetwork/hierarchy
  copying sknetwork/hierarchy/ward.py -> build/lib.linux-aarch64-3.9/sknetwork/hierarchy
  copying sknetwork/hierarchy/metrics.py -> build/lib.linux-aarch64-3.9/sknetwork/hierarchy
  copying sknetwork/hierarchy/base.py -> build/lib.linux-aarch64-3.9/sknetwork/hierarchy
  copying sknetwork/hierarchy/postprocess.py -> build/lib.linux-aarch64-3.9/sknetwork/hierarchy
  copying sknetwork/hierarchy/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/hierarchy
  copying sknetwork/hierarchy/louvain_hierarchy.py -> build/lib.linux-aarch64-3.9/sknetwork/hierarchy
  creating build/lib.linux-aarch64-3.9/sknetwork/visualization
  copying sknetwork/visualization/graphs.py -> build/lib.linux-aarch64-3.9/sknetwork/visualization
  copying sknetwork/visualization/colors.py -> build/lib.linux-aarch64-3.9/sknetwork/visualization
  copying sknetwork/visualization/dendrograms.py -> build/lib.linux-aarch64-3.9/sknetwork/visualization
  copying sknetwork/visualization/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/visualization
  creating build/lib.linux-aarch64-3.9/sknetwork/classification
  copying sknetwork/classification/base_rank.py -> build/lib.linux-aarch64-3.9/sknetwork/classification
  copying sknetwork/classification/metrics.py -> build/lib.linux-aarch64-3.9/sknetwork/classification
  copying sknetwork/classification/base.py -> build/lib.linux-aarch64-3.9/sknetwork/classification
  copying sknetwork/classification/diffusion.py -> build/lib.linux-aarch64-3.9/sknetwork/classification
  copying sknetwork/classification/pagerank.py -> build/lib.linux-aarch64-3.9/sknetwork/classification
  copying sknetwork/classification/knn.py -> build/lib.linux-aarch64-3.9/sknetwork/classification
  copying sknetwork/classification/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/classification
  copying sknetwork/classification/propagation.py -> build/lib.linux-aarch64-3.9/sknetwork/classification
  creating build/lib.linux-aarch64-3.9/sknetwork/linkpred
  copying sknetwork/linkpred/base.py -> build/lib.linux-aarch64-3.9/sknetwork/linkpred
  copying sknetwork/linkpred/first_order.py -> build/lib.linux-aarch64-3.9/sknetwork/linkpred
  copying sknetwork/linkpred/postprocessing.py -> build/lib.linux-aarch64-3.9/sknetwork/linkpred
  copying sknetwork/linkpred/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/linkpred
  creating build/lib.linux-aarch64-3.9/sknetwork/path
  copying sknetwork/path/search.py -> build/lib.linux-aarch64-3.9/sknetwork/path
  copying sknetwork/path/metrics.py -> build/lib.linux-aarch64-3.9/sknetwork/path
  copying sknetwork/path/shortest_path.py -> build/lib.linux-aarch64-3.9/sknetwork/path
  copying sknetwork/path/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/path
  creating build/lib.linux-aarch64-3.9/sknetwork/ranking
  copying sknetwork/ranking/base.py -> build/lib.linux-aarch64-3.9/sknetwork/ranking
  copying sknetwork/ranking/pagerank.py -> build/lib.linux-aarch64-3.9/sknetwork/ranking
  copying sknetwork/ranking/postprocess.py -> build/lib.linux-aarch64-3.9/sknetwork/ranking
  copying sknetwork/ranking/hits.py -> build/lib.linux-aarch64-3.9/sknetwork/ranking
  copying sknetwork/ranking/katz.py -> build/lib.linux-aarch64-3.9/sknetwork/ranking
  copying sknetwork/ranking/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/ranking
  copying sknetwork/ranking/closeness.py -> build/lib.linux-aarch64-3.9/sknetwork/ranking
  copying sknetwork/ranking/harmonic.py -> build/lib.linux-aarch64-3.9/sknetwork/ranking
  creating build/lib.linux-aarch64-3.9/sknetwork/clustering
  copying sknetwork/clustering/metrics.py -> build/lib.linux-aarch64-3.9/sknetwork/clustering
  copying sknetwork/clustering/base.py -> build/lib.linux-aarch64-3.9/sknetwork/clustering
  copying sknetwork/clustering/postprocess.py -> build/lib.linux-aarch64-3.9/sknetwork/clustering
  copying sknetwork/clustering/louvain.py -> build/lib.linux-aarch64-3.9/sknetwork/clustering
  copying sknetwork/clustering/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/clustering
  copying sknetwork/clustering/propagation_clustering.py -> build/lib.linux-aarch64-3.9/sknetwork/clustering
  copying sknetwork/clustering/kmeans.py -> build/lib.linux-aarch64-3.9/sknetwork/clustering
  creating build/lib.linux-aarch64-3.9/sknetwork/topology/tests
  copying sknetwork/topology/tests/test_triangles.py -> build/lib.linux-aarch64-3.9/sknetwork/topology/tests
  copying sknetwork/topology/tests/test_cliques.py -> build/lib.linux-aarch64-3.9/sknetwork/topology/tests
  copying sknetwork/topology/tests/test_wl_kernel.py -> build/lib.linux-aarch64-3.9/sknetwork/topology/tests
  copying sknetwork/topology/tests/test_wl_coloring.py -> build/lib.linux-aarch64-3.9/sknetwork/topology/tests
  copying sknetwork/topology/tests/test_dag.py -> build/lib.linux-aarch64-3.9/sknetwork/topology/tests
  copying sknetwork/topology/tests/test_structure.py -> build/lib.linux-aarch64-3.9/sknetwork/topology/tests
  copying sknetwork/topology/tests/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/topology/tests
  copying sknetwork/topology/tests/test_cores.py -> build/lib.linux-aarch64-3.9/sknetwork/topology/tests
  creating build/lib.linux-aarch64-3.9/sknetwork/embedding/tests
  copying sknetwork/embedding/tests/test_spring.py -> build/lib.linux-aarch64-3.9/sknetwork/embedding/tests
  copying sknetwork/embedding/tests/test_force_atlas.py -> build/lib.linux-aarch64-3.9/sknetwork/embedding/tests
  copying sknetwork/embedding/tests/test_random_projection.py -> build/lib.linux-aarch64-3.9/sknetwork/embedding/tests
  copying sknetwork/embedding/tests/test_API.py -> build/lib.linux-aarch64-3.9/sknetwork/embedding/tests
  copying sknetwork/embedding/tests/test_louvain_embedding.py -> build/lib.linux-aarch64-3.9/sknetwork/embedding/tests
  copying sknetwork/embedding/tests/test_louvain_hierarchy.py -> build/lib.linux-aarch64-3.9/sknetwork/embedding/tests
  copying sknetwork/embedding/tests/test_spectral.py -> build/lib.linux-aarch64-3.9/sknetwork/embedding/tests
  copying sknetwork/embedding/tests/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/embedding/tests
  copying sknetwork/embedding/tests/test_metrics.py -> build/lib.linux-aarch64-3.9/sknetwork/embedding/tests
  copying sknetwork/embedding/tests/test_svd.py -> build/lib.linux-aarch64-3.9/sknetwork/embedding/tests
  creating build/lib.linux-aarch64-3.9/sknetwork/linalg/tests
  copying sknetwork/linalg/tests/test_eig.py -> build/lib.linux-aarch64-3.9/sknetwork/linalg/tests
  copying sknetwork/linalg/tests/test_operators.py -> build/lib.linux-aarch64-3.9/sknetwork/linalg/tests
  copying sknetwork/linalg/tests/test_sparse_lowrank.py -> build/lib.linux-aarch64-3.9/sknetwork/linalg/tests
  copying sknetwork/linalg/tests/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/linalg/tests
  copying sknetwork/linalg/tests/test_normalization.py -> build/lib.linux-aarch64-3.9/sknetwork/linalg/tests
  copying sknetwork/linalg/tests/test_polynome.py -> build/lib.linux-aarch64-3.9/sknetwork/linalg/tests
  copying sknetwork/linalg/tests/test_svd.py -> build/lib.linux-aarch64-3.9/sknetwork/linalg/tests
  copying sknetwork/linalg/tests/test_ppr.py -> build/lib.linux-aarch64-3.9/sknetwork/linalg/tests
  creating build/lib.linux-aarch64-3.9/sknetwork/regression/tests
  copying sknetwork/regression/tests/test_diffusion.py -> build/lib.linux-aarch64-3.9/sknetwork/regression/tests
  copying sknetwork/regression/tests/test_API.py -> build/lib.linux-aarch64-3.9/sknetwork/regression/tests
  copying sknetwork/regression/tests/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/regression/tests
  creating build/lib.linux-aarch64-3.9/sknetwork/data/tests
  copying sknetwork/data/tests/test_parse.py -> build/lib.linux-aarch64-3.9/sknetwork/data/tests
  copying sknetwork/data/tests/test_test_graphs.py -> build/lib.linux-aarch64-3.9/sknetwork/data/tests
  copying sknetwork/data/tests/test_API.py -> build/lib.linux-aarch64-3.9/sknetwork/data/tests
  copying sknetwork/data/tests/test_load.py -> build/lib.linux-aarch64-3.9/sknetwork/data/tests
  copying sknetwork/data/tests/test_models.py -> build/lib.linux-aarch64-3.9/sknetwork/data/tests
  copying sknetwork/data/tests/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/data/tests
  copying sknetwork/data/tests/test_toy_graphs.py -> build/lib.linux-aarch64-3.9/sknetwork/data/tests
  creating build/lib.linux-aarch64-3.9/sknetwork/utils/tests
  copying sknetwork/utils/tests/test_kmeans.py -> build/lib.linux-aarch64-3.9/sknetwork/utils/tests
  copying sknetwork/utils/tests/test_base.py -> build/lib.linux-aarch64-3.9/sknetwork/utils/tests
  copying sknetwork/utils/tests/test_seeds.py -> build/lib.linux-aarch64-3.9/sknetwork/utils/tests
  copying sknetwork/utils/tests/test_ward.py -> build/lib.linux-aarch64-3.9/sknetwork/utils/tests
  copying sknetwork/utils/tests/test_check.py -> build/lib.linux-aarch64-3.9/sknetwork/utils/tests
  copying sknetwork/utils/tests/test_neighbors.py -> build/lib.linux-aarch64-3.9/sknetwork/utils/tests
  copying sknetwork/utils/tests/test_projection_simplex.py -> build/lib.linux-aarch64-3.9/sknetwork/utils/tests
  copying sknetwork/utils/tests/test_format.py -> build/lib.linux-aarch64-3.9/sknetwork/utils/tests
  copying sknetwork/utils/tests/test_verbose.py -> build/lib.linux-aarch64-3.9/sknetwork/utils/tests
  copying sknetwork/utils/tests/test_co_neighbor.py -> build/lib.linux-aarch64-3.9/sknetwork/utils/tests
  copying sknetwork/utils/tests/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/utils/tests
  copying sknetwork/utils/tests/test_bunch.py -> build/lib.linux-aarch64-3.9/sknetwork/utils/tests
  copying sknetwork/utils/tests/test_knn.py -> build/lib.linux-aarch64-3.9/sknetwork/utils/tests
  creating build/lib.linux-aarch64-3.9/sknetwork/hierarchy/tests
  copying sknetwork/hierarchy/tests/test_ward.py -> build/lib.linux-aarch64-3.9/sknetwork/hierarchy/tests
  copying sknetwork/hierarchy/tests/test_algos.py -> build/lib.linux-aarch64-3.9/sknetwork/hierarchy/tests
  copying sknetwork/hierarchy/tests/test_API.py -> build/lib.linux-aarch64-3.9/sknetwork/hierarchy/tests
  copying sknetwork/hierarchy/tests/test_postprocess.py -> build/lib.linux-aarch64-3.9/sknetwork/hierarchy/tests
  copying sknetwork/hierarchy/tests/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/hierarchy/tests
  copying sknetwork/hierarchy/tests/test_metrics.py -> build/lib.linux-aarch64-3.9/sknetwork/hierarchy/tests
  creating build/lib.linux-aarch64-3.9/sknetwork/visualization/tests
  copying sknetwork/visualization/tests/test_dendrograms.py -> build/lib.linux-aarch64-3.9/sknetwork/visualization/tests
  copying sknetwork/visualization/tests/test_graphs.py -> build/lib.linux-aarch64-3.9/sknetwork/visualization/tests
  copying sknetwork/visualization/tests/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/visualization/tests
  creating build/lib.linux-aarch64-3.9/sknetwork/classification/tests
  copying sknetwork/classification/tests/test_diffusion.py -> build/lib.linux-aarch64-3.9/sknetwork/classification/tests
  copying sknetwork/classification/tests/test_propagation.py -> build/lib.linux-aarch64-3.9/sknetwork/classification/tests
  copying sknetwork/classification/tests/test_API.py -> build/lib.linux-aarch64-3.9/sknetwork/classification/tests
  copying sknetwork/classification/tests/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/classification/tests
  copying sknetwork/classification/tests/test_knn.py -> build/lib.linux-aarch64-3.9/sknetwork/classification/tests
  copying sknetwork/classification/tests/test_pagerank.py -> build/lib.linux-aarch64-3.9/sknetwork/classification/tests
  creating build/lib.linux-aarch64-3.9/sknetwork/linkpred/tests
  copying sknetwork/linkpred/tests/test_API.py -> build/lib.linux-aarch64-3.9/sknetwork/linkpred/tests
  copying sknetwork/linkpred/tests/test_postprocessing.py -> build/lib.linux-aarch64-3.9/sknetwork/linkpred/tests
  copying sknetwork/linkpred/tests/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/linkpred/tests
  creating build/lib.linux-aarch64-3.9/sknetwork/path/tests
  copying sknetwork/path/tests/test_search.py -> build/lib.linux-aarch64-3.9/sknetwork/path/tests
  copying sknetwork/path/tests/test_shortest_path.py -> build/lib.linux-aarch64-3.9/sknetwork/path/tests
  copying sknetwork/path/tests/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/path/tests
  copying sknetwork/path/tests/test_metrics.py -> build/lib.linux-aarch64-3.9/sknetwork/path/tests
  creating build/lib.linux-aarch64-3.9/sknetwork/ranking/tests
  copying sknetwork/ranking/tests/test_API.py -> build/lib.linux-aarch64-3.9/sknetwork/ranking/tests
  copying sknetwork/ranking/tests/test_hits.py -> build/lib.linux-aarch64-3.9/sknetwork/ranking/tests
  copying sknetwork/ranking/tests/test_closeness.py -> build/lib.linux-aarch64-3.9/sknetwork/ranking/tests
  copying sknetwork/ranking/tests/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/ranking/tests
  copying sknetwork/ranking/tests/test_pagerank.py -> build/lib.linux-aarch64-3.9/sknetwork/ranking/tests
  copying sknetwork/ranking/tests/test_betweenness.py -> build/lib.linux-aarch64-3.9/sknetwork/ranking/tests
  creating build/lib.linux-aarch64-3.9/sknetwork/clustering/tests
  copying sknetwork/clustering/tests/test_kmeans.py -> build/lib.linux-aarch64-3.9/sknetwork/clustering/tests
  copying sknetwork/clustering/tests/test_post_processing.py -> build/lib.linux-aarch64-3.9/sknetwork/clustering/tests
  copying sknetwork/clustering/tests/test_API.py -> build/lib.linux-aarch64-3.9/sknetwork/clustering/tests
  copying sknetwork/clustering/tests/__init__.py -> build/lib.linux-aarch64-3.9/sknetwork/clustering/tests
  copying sknetwork/clustering/tests/test_metrics.py -> build/lib.linux-aarch64-3.9/sknetwork/clustering/tests
  copying sknetwork/clustering/tests/test_louvain.py -> build/lib.linux-aarch64-3.9/sknetwork/clustering/tests
  running egg_info
  writing scikit_network.egg-info/PKG-INFO
  writing dependency_links to scikit_network.egg-info/dependency_links.txt
  writing entry points to scikit_network.egg-info/entry_points.txt
  writing requirements to scikit_network.egg-info/requires.txt
  writing top-level names to scikit_network.egg-info/top_level.txt
  adding license file 'LICENSE' (matched pattern 'LICEN[CS]E*')
  adding license file 'AUTHORS.rst' (matched pattern 'AUTHORS*')
  reading manifest file 'scikit_network.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no previously-included files matching '__pycache__' found under directory '*'
  warning: no previously-included files matching '*.py[co]' found under directory '*'
  warning: no files found matching '*.jpg' under directory 'docs'
  warning: no files found matching '*.png' under directory 'docs'
  warning: no files found matching '*.gif' under directory 'docs'
  writing manifest file 'scikit_network.egg-info/SOURCES.txt'
  running build_ext
  building 'sknetwork.topology.triangles' extension
  creating build/temp.linux-aarch64-3.9
  creating build/temp.linux-aarch64-3.9/sknetwork
  creating build/temp.linux-aarch64-3.9/sknetwork/topology
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/clusterfs/.pyenv/versions/proptech_env/lib/python3.9/site-packages/numpy/core/include -I/clusterfs/.pyenv/versions/proptech_env/lib/python3.9/site-packages/numpy/core/include -I/clusterfs/.pyenv/versions/proptech_env/include -I/clusterfs/.pyenv/versions/3.9.6/include/python3.9 -I/clusterfs/.pyenv/versions/proptech_env/lib/python3.9/site-packages/numpy/core/include -c ./sknetwork/topology/triangles.cpp -o build/temp.linux-aarch64-3.9/./sknetwork/topology/triangles.o
  gcc: error: ./sknetwork/topology/triangles.cpp: No such file or directory
  gcc: fatal error: no input files
  compilation terminated.
  error: command '/usr/bin/gcc' failed with exit code 1
  [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

Encountered error while trying to install package.

scikit-network

note: This is an issue with the package mentioned above, not pip.

In the sknetwork/topology dir there are no *.cpp files (as per the repo). Only:

dag_core.pyx dag.py init.py kcliques.pyx kcore.pyx structure.py tests triangles.pyx weisfeiler_lehman_core.pyx weisfeiler_lehman.py

vzografos commented 2 years ago

my bad. ignore