Project

General

Profile

comtypes required on linux side for JEOL 3200

Added by Xing Meng over 10 years ago

Hi Anchi
start-leginon.py test (using sim tem, sim cam) OK

after set the real JEOL TEM to instrument.cfg
start-leginon.py
it showed error related to comtypes
I installed comtypes (python setup.py install)

there is still error

3dem@3dem Desktop]$ start-leginon.py
Traceback (most recent call last):
File "/usr/bin/start-leginon.py", line 9, in <module>
from leginon import start
File "/usr/lib/python2.6/site-packages/leginon/start.py", line 13, in <module>
import leginon.gui.wx.Manager
File "/usr/lib/python2.6/site-packages/leginon/gui/wx/Manager.py", line 20, in <module>
from leginon import manager
File "/usr/lib/python2.6/site-packages/leginon/manager.py", line 19, in <module>
import launcher
File "/usr/lib/python2.6/site-packages/leginon/launcher.py", line 14, in <module>
import noderegistry
File "/usr/lib/python2.6/site-packages/leginon/noderegistry.py", line 33, in <module>
import leginon.allnodes
File "/usr/lib/python2.6/site-packages/leginon/allnodes.py", line 169, in <module>
from driftmanager import DriftManager
File "/usr/lib/python2.6/site-packages/leginon/driftmanager.py", line 20, in <module>
import EM
File "/usr/lib/python2.6/site-packages/leginon/EM.py", line 15, in <module>
from pyscope import tem, ccdcamera, registry
File "/usr/lib/python2.6/site-packages/pyscope/registry.py", line 16, in <module>
for c in config.getTEMClasses():
File "/usr/lib/python2.6/site-packages/pyscope/config.py", line 102, in getTEMClasses
parse()
File "/usr/lib/python2.6/site-packages/pyscope/config.py", line 56, in parse
mod = imp.load_module(fullmodname, *args)
File "/usr/lib/python2.6/site-packages/pyscope/jeolcom.py", line 4, in <module>
import comtypes.client
File "/usr/lib/python2.6/site-packages/comtypes/__init__.py", line 23, in <module>
from _ctypes import COMError
ImportError: cannot import name COMError


Replies (2)

RE: comtypes required on linux side for JEOL 3200 - Added by Anchi Cheng over 10 years ago

First, instruments.cfg should contain only instruments that are directly controlled by the said computer.

Therefore, on Linux computer, the only ones that you should put are the simulated tem and camera.

To connect to an instrument on another computer, you need to start Leginon client on the latter which is why we wanted to do test1.py and test2.py to check network socket connection to both the database and Leginon process done through different socket port, even though on the same computer. You will need to solve that part of problem first as in dtatabase not found.

Once that problem is solved, you are ready to connect. To connect to Jeol, you should start leginon client on the computer where you successfully did module testing as described in as described in JEOL_installation_specifics (I think it means the K2 computer in your case). To start Leginon client, follow the instruction in Run_Leginon_Client_on_the_Instrument_Computers even though we don't have an example for JEOL, yet.

You will then need to add the K2 computer as the client whose instruments.cfg contains both jeolcom.Jeol and dmsem.GatanK2Counting etc.

RE: comtypes required on linux side for JEOL 3200 - Added by Anchi Cheng over 10 years ago

Sorry I didn't finish. comtypes is only usable on Windows, which is why even though you installed it as python package, it does not work.

comtypes is not required on linux side.

    (1-2/2)