Project

General

Profile

tecnai.Tecnai can not be initialized

Added by Anchi Cheng over 10 years ago

To help searching for answer, I am starting this thread based on the thread appended to Leginon 3.0 client could not recognize the Gatan CCD

The problem was that simple test from python commandline

from pyscope import tecnai
t=tencai.Tecnai()

gave back error after the bug fix for the error message #2891

unable to initialize Tecnai interface

Long and I did a few things that may help future debuging.

1. Based on http://docs.activestate.com/activepython/2.4/pywin32/html/com/win32com/HTML/QuickStartClientCom.html, we opened combrowse.py and found TEM Scripting. In the table it shows where the file that is registered is located:

c:\Tecnai\Scripting\StdScript.dll

2. With Windows Commnad line, we did the following to register it.

cd C:\Tecnai\Scripting
regsvr32 StdScript.dll

after that registration, it worksed. This is the first time we need to register TEM Scripting. It may be necessary because some other program overwritten it