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

feems cannot be imported properly #35

Open
Galinqiang opened this issue Jul 20, 2024 · 1 comment
Open

feems cannot be imported properly #35

Galinqiang opened this issue Jul 20, 2024 · 1 comment

Comments

@Galinqiang
Copy link

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
Copy link
Collaborator

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.

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