Project

General

Profile

pythoncom module not found

Added by Harry Kao over 10 years ago

Hi,

I am performed a complete installation of Legion 3 for the F20 with Gatan camera.

When I ran the command 'start-leginon.py' on the Leginon server, I received the following error msg

File "/usr/local/lib/python2.7/site-packages/pyscope/config.py", line 102, in getTEMClasses
parse()
File "/usr/local/lib/python2.7/site-packages/pyscope/config.py", line 56, in parse
mod = imp.load_module(fullmodname, *args)
File "/usr/local/lib/python2.7/site-packages/pyscope/gatan.py", line 22, in <module>
import pythoncom
ImportError: No module named pythoncom

Our OS is OpenSuse12.1
Downloaded trunk is Revision: 18161

Thank you.

Harry


Replies (2)

RE: pythoncom module not found - Added by Anchi Cheng over 10 years ago

Check your instruments.cfg

From your trace back and your information, you got this error on a linux computer that does not control the gatan camera directly.

pythoncom is part of pywin32 package only available and needed on Windows OS and the Gatan CCD camera is controlled by its software installed on the F20 Scope Windows PC.

My guess is that you have copied instruments.cfg from the Windows PC to your linux machine. That would be the wrong thing to do. As the linux computer has no scope nor camera attached to it directly to it, instruments.cfg should contain only simulators such as those in instruments.cfg.template.

Hope I am making it clear.

RE: pythoncom module not found - Added by Harry Kao over 10 years ago

Hi Anchi,

I was wondering why the Windows module is being called under linux. I copied over the old config file from the previous installation of Legion 2.2 on Linux. Now I commented out the actual instrument names as you suggested and use the following default simulations config.

  1. normally you want the simulated instruments available
    [Sim TEM]
    class: simtem.SimTEM

[Sim Cam]
class: simccdcamera.SimCCDCamera

The above setting seems to work and does not lead to any error msg.

Thank you.

Harry

    (1-2/2)