aitom icon indicating copy to clipboard operation
aitom copied to clipboard

tomominer.simulation.reconstruction__simple_convolution cannot find module tomominer

Open sherjy opened this issue 4 years ago • 2 comments

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.

sherjy avatar Jan 14 '21 08:01 sherjy

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

Shadowalker1995 avatar Jan 15 '21 07:01 Shadowalker1995

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

Zhang-hn1125 avatar Sep 22 '21 09:09 Zhang-hn1125