Project

General

Profile

Error, cannot find typelib for "TEM/TOM/Tecnai Low Dose/Gatan CCD..."

Added by Arne Moeller almost 9 years ago

Hi Anchi and Sargis and all,

we are trying to install Leginon on a Spirit with a Gatan 4k on a separate computer.
At first we got stuck during installation and connection to the remote Linux Control computer - using the autoinstallation
Then we changed to step by step installation (as suggested by Anchi) and we got it much further.
However we are unable to get around this error.

Tem scripting is available

many thanks for any suggestion

cheers,
Arne

===========
- Database works. On python, import MySQLdb and db.connect works.
The leginon server (linux) sees the camera client (windows 7).
We can export Applications.

- instruments.cfg, leginon.cfg and sinedon.cfg are the same on the windows machine, but different of the ones on the leginon server (linux). The rationale is that the server doesn't need to know about all the microscopes that is connecting to.

- The microscope PC is different from the Camera PC (client).

- import comtypes works, but checkcomp.py doesn't find anything.
Error message:
Error, cannot find typelib for "TEM/TOM/Tecnai Low Dose/Gatan CCD..."
none of them are found.
Digital Micrograph was running.

==============


Replies (8)

RE: Error, cannot find typelib for "TEM/TOM/Tecnai Low Dose/Gatan CCD..." - Added by Anchi Cheng almost 9 years ago

Hi, Arne,

Thanks for using the forum. It will be good for next person with the same problem.

Your specific configuration of camera computer being separated from the scope computer
creates a situation more like what is on JEOL scope where gatan CCD is on a separate computer.

There are two solutions:

1. Copy tecnaiccd.dll from your microscope PC and register it on the camera computer. However,
there might be one there already with gatan software, just not registered for general use. Do a file search first.

2. Install SerialEMCCD.dll and use dmsem.GatanUltraScan instead of gatan.Gatan as instrument class.
This option is especially good if you have already SerialEM installed there.

Anchi

RE: Error, cannot find typelib for "TEM/TOM/Tecnai Low Dose/Gatan CCD..." - Added by Anchi Cheng almost 9 years ago

By the way, you only need camera instrument class on camera computer. Therefore missing TEM/TOM/etc. microscope components are not important for this.

RE: Error, cannot find typelib for "TEM/TOM/Tecnai Low Dose/Gatan CCD..." - Added by Arne Moeller almost 9 years ago

Many thanks Anchi,

this seems to be the right track - we went with solution 2 and also modified instruments.cfg as suggested

however there was no template dmsem.cfg.template on our myami 3.2 svn version - so we copied the one from the K2
as on the Wiki

http://emg.nysbc.org/projects/leginon/wiki/Gatan_K2_installation_and_setup

this is K2 - but it should work for Ultrascan?

we can now connect to Leginon and the camera can be selected as client (scope not yet configured) but when we connect in an application we get an error message on the launcher

no interface could be initialized

any idea?

cheers,

Arne and Juan

RE: Error, cannot find typelib for "TEM/TOM/Tecnai Low Dose/Gatan CCD..." - Added by Anchi Cheng almost 9 years ago

What is your dm version ?

Do a basic test on the camera computer, it will show the error when loading the module etc.

import pyscope.dmsem
k = pyscope.dmsem.GatanUltraScan()
k.getImage()

RE: Error, cannot find typelib for "TEM/TOM/Tecnai Low Dose/Gatan CCD..." - Added by Arne Moeller almost 9 years ago

Hey Anchi - cant check today but because of the time difference between europe and USA - my question:

what would do we have to look for
we tried to install the files according to our DM version - if this was the case would that be ok?

thanks
Arne

RE: Error, cannot find typelib for "TEM/TOM/Tecnai Low Dose/Gatan CCD..." - Added by Anchi Cheng almost 9 years ago

Regarding version. I am not sure what DM version UltraScan runs on if it was installed a while ago. It is possible that
the socket connection version of SerialEMCCD was not yet developed for. We will just have to try and see and perhaps consult David Mastronarde.

Regarding the pyscope test. You will probably find an error message. If it just says something can not be found, then it is just a matter of install the required module. I can not predict it.

RE: Error, cannot find typelib for "TEM/TOM/Tecnai Low Dose/Gatan CCD..." - Added by Arne Moeller almost 9 years ago

ok - we were not yet able to figure out what is wrong with this scope

we have now tried to install everything (in an identical manner) on the second spirit - in this case the camera and scope PC are the same - and there Leginon is working fine.

on the first scope (with two computers) we get an error message that likely indicates a firewall problem - but this remains when we turn the firewall off - so its a bit confusing..

RE: Error, cannot find typelib for "TEM/TOM/Tecnai Low Dose/Gatan CCD..." - Added by Anchi Cheng almost 9 years ago

Resolved the problem through an Skype session.

Resolving socket connection issue

pyscope test does not use external network, just local sockets. The "error message that likely indicates a firewall problem" is "No connection could be made because the target machine actively refused it". Similar to dmsem.py fails to open local connection on K2 computer. Since we know it is not a firewall issue, we checked for processes that might block the SEMCCD.dll socket connection specified in environment variable SERIALEMCCD_PORT. We found one revealed by Windows Task Manager with a name like SEMCCD even after DigitalMicrograph was closed. Therefore, we removed it.

I added some instruction in Trouble_shooting_semccd_socket_connection

Adding ultrascan module to dmsem.cfg

The next problem in running pyscope test is that upon the last command of getting a test image, got an error ended with

Attribute Error: 'GatnUltraScan' object has no attribute 'cameraid'

This error came from missing ultrascan section of dmsem.cfg
See Gatan_on_Windows-32_with_semccddll

After that, the result of the test is normal, as shown in pyscope test result array

    (1-8/8)