CNS-OIST / STEPS

Public release repository for STochastic Engine of Pathway Simulation (STEPS)
http://steps.sourceforge.net
Other
38 stars 10 forks source link

Python - STEPS Import Error #43

Open rajitshekhar96 opened 4 months ago

rajitshekhar96 commented 4 months ago

Dear fellow researchers,

I am trying to install STEPS from the GitHub repository on a Macbook Pro as instructed here - [https://steps.sourceforge.net/manual/getting_started.html]. The installation seems to have worked fine but I am getting the following import error whenever I try to import a STEPS module in Python : ImportError: dlopen(/Users/xyz/.local/lib/python3.11/site-packages/steps/cysteps_dist.so, 0x0002): symbol not found in flat namespace '__ZN5steps4dist12OhmicCurrent20setReversalPotentialENS_4util9strong_idIiNS_17triangle_id_traitENSt3__19enable_ifILb1EvEEEEd'. I was wondering if anyone else has come across this issue and what might be a possible fix. I am using Python 3.11.7 through conda in a Mac terminal. Any help will be much appreciated.

Regards,

Rajit

jlallouette commented 4 months ago

Dear @rajitshekhar96,

This issue can happen when PETSc is not installed on your system. It will be fixed with 5.0.2 (which will be released shortly). In the meantime, you can either install PETSc on your system, or you can switch to the 5.0.1_conda_fixes branch with git checkout 5.0.1_conda_fixes. Then recompile and re-install STEPS, following the same procedure you used before.

rajitshekhar96 commented 4 months ago

Dear @jlallouette,

Thank you for the help. I am currently trying that approach by installing PETSc. Will keep it posted here.

Rajit