NovembreLab / feems

MIT License
16 stars 14 forks source link

feems cannot be imported properly #35

Open Galinqiang opened 1 month ago

Galinqiang commented 1 month ago

Hi @haywse @jhmarcus , I wanted to use feems for analysis, but I ran into some problems with it _# feems from feems.utils import prepare_graph_inputs from feems import SpatialGraph, Viz from feems.cross_validation import run_cv When I used the above statement to import the feems package for analysis, I encountered the following problems: from feems.utils import prepare_graph_inputs File "/home/apps/anaconda3/envs/app/lib/python3.9/site-packages/feems/init.py", line 3, in from .cross_validation import run_cv File "/home/apps/anaconda3/envs/app/lib/python3.9/site-packages/feems/cross_validation.py", line 8, in from .spatial_graph import query_node_attributes File "/home/apps/anaconda3/envs/app/lib/python3.9/site-packages/feems/spatial_graph.py", line 8, in import sksparse.cholmod as cholmod ModuleNotFoundError: No module named 'sksparse'_ I tried to download the sksparse package, there is no Linux version. How do I fix it? Is it my code or my installation or my version issue?

Thanks in advances, Gao

VivaswatS commented 1 month ago

Hi @Galinqiang, you need functions from the scikit-sparse (sksparse) package to run FEEMS code. You could install this package using instructions from here: https://github.com/EmJay276/scikit-sparse (there seems to be some caveats for Windows installation, but Linux should be fine)

I would recommend creating a conda environment, then conda install -c condo-forge scikit-sparse should work.