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

tomominer.simulation.reconstruction__simple_convolution cannot find module tomominer #167

Open
sherjy opened this issue Jan 14, 2021 · 2 comments

Comments

@sherjy
Copy link
Contributor

sherjy commented Jan 14, 2021

Hi, when calling aitom/aitom/geometry/pack/sphere/few/map_tomo/map2tomogram.py on 171.
import tomominer.simulation.reconstruction__simple_convolution as TSRSC cause no module tomominer, and this function can be used before 2021/1/11.
When I try using:
sys.path.append('/ldap_shared/shared/src/aitom_core/')
import aitom_core.simulation.reconstruction.reconstruction__simple_convolution as TSRSC
to load this function, Marshal loads failed error occurs.
I'm using py2.7 and I found reconstruction__simple_convolution function is compiled recently using py3.5. I'm not sure how to call this function correctly now.

@Shadowalker1995
Copy link
Contributor

Hello, @sherjy I have checked it out and found that reconstruction__simple_convolution.py is compiled using python3.8. So you need to upgrade your python interpreter to version 3.8.
In addition, using the following code:

import sys
sys.path.append('/shared/src/aitom/aitom_core')

from aitom_core.simulation.reconstruction import reconstruction__simple_convolution  as TSRSC

@Zhang-hn1125
Copy link

Hello, @sherjy I have checked it out and found that reconstruction__simple_convolution.py is compiled using python3.8. So you need to upgrade your python interpreter to version 3.8.
In addition, using the following code:

import sys
sys.path.append('/shared/src/aitom/aitom_core')

from aitom_core.simulation.reconstruction import reconstruction__simple_convolution  as TSRSC

Hi, I can't find the path aitom_core, how can I use the aitom_core? Thanks

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

3 participants