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

Disentangling failed: No module named scipy #132

Closed
SSmith-NUIG opened this issue Jan 20, 2022 · 11 comments
Closed

Disentangling failed: No module named scipy #132

SSmith-NUIG opened this issue Jan 20, 2022 · 11 comments

Comments

@SSmith-NUIG
Copy link

SSmith-NUIG commented Jan 20, 2022

get_org_private.log.txt
Hi,
GetOrganelle seems unable to import scipy for the disentangling stage.

I'm running it on an anaconda environment with python 3.6.
If I run python in the terminal and type import scipy it works no problem.
If I create a testing python script which imports scipy it also works with no problems.

From the log output:
PYTHON LIBS: GetOrganelleLib 1.7.5; numpy 1.18.5; sympy 1.5.1; scipy 1.5.2

@Kinggerm
Copy link
Owner

Please ALWAYS attach the get_org.log.txt file if applicable

@SSmith-NUIG
Copy link
Author

Please ALWAYS attach the get_org.log.txt file if applicable

Attached it to the OP now.

@Kinggerm
Copy link
Owner

Thanks!
Could you please resume the run with "--verbose --continue" attached and post the new log file here?

@SSmith-NUIG
Copy link
Author

SSmith-NUIG commented Jan 20, 2022

get_org_private_continue.log.txt

Thanks! Could you please resume the run with "--verbose --continue" attached and post the new log file here?

Will do tomorrow once I have access to the HPC again. I'll edit this post with the output

@Kinggerm
Copy link
Owner

Thanks for the feedback.
It still seems to be a scipy importing error because no other code blocks will trigger this error.

Could you please try following command inside the python of your HPC:

from scipy import stats, inf, log

@SSmith-NUIG
Copy link
Author

Thanks for the feedback. It still seems to be a scipy importing error because no other code blocks will trigger this error.

Could you please try following command inside the python of your HPC:

from scipy import stats, inf, log

Thanks, that did the trick. My environment was missing some Mkl libraries.

@Kinggerm
Copy link
Owner

Good to know.

And thanks again. I have modified the associated code blocks, reporting from scipy import stats, inf, log error instead of No module named scipy.

@o-william-white
Copy link

Just to add, I got the same error with the example data but it was fixed by downgrading scipy from 1.12 to 1.11.3.

@JianjunJin
Copy link
Collaborator

JianjunJin commented Mar 5, 2024

@o-william-white Thanks a lot! It seems that scipy 1.12 does not have inf and log, which can be replaced with np.inf and np.log.

BTW, in the next big release, GetOrganelle uses gekko instead of scipy.

JianjunJin added a commit that referenced this issue Apr 3, 2024
1. fix a import bug of 'from scipy import stat, log, inf' issue (issue #132 #315)
2. fix a ZeroDivisionError bug when the estimated coverage is 0 (issue #311)
3. Disentangling failed -> Disentangling unsuccessful to avoid panic (issue #308)
4. fix a bug in parsing options when '-F anonym' is used (issue #319)
5. have max_multiplicity passed to no-slim case
6. minor adjustment
@JianjunJin
Copy link
Collaborator

JianjunJin commented Apr 10, 2024

Before the formal release of GetOrganelle 1.8.0, I just added some fixes to GetOrganelle 1.7.7.1, including compatibility with scipy 1.2. GetOrganelle 1.7.7.1 is now available in bioconda.

@o-william-white
Copy link

Thanks @Kinggerm

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

4 participants