Project

General

Profile

updatecom.py: Cannot find typelib

Added by Anonymous almost 15 years ago

Hi, there! I am just working my way through the Leginon Windows processing installation. Everything fine so far but updatecom.py renders empty files.

Command output:

C:\Program Files\python\Lib\site-packages\pyScope>"c:\Program Files\python\python.exe" updatecom.py
Generating .py files from type libraries...
Tecnai Scripting: Error, cannot find typelib for "Tecnai Scripting" 
Tecnai Scripting: failed GenerateFromTypeLibSpec
TOM Moniker: failed GenerateFromTypeLibSpec
Tecnai Low Dose Kit: failed GenerateFromTypeLibSpec
Tecnai Exposure Adaptor: Error, cannot find typelib for "adaExp Library" 
Gatan CCD Camera: failed GenerateFromTypeLibSpec
Tietz CCD Camera: Error, cannot find typelib for "CAMC4 1.0 Type Library" 
Done.

Is this normal?

Tecnai Scripting and Gatan CCD is installed (tecnaiccd.dll).
Accessing the Tecnai object works in python:

>>> from pyScope import tecnai
>>> mytem = tecnai.Tecnai()
>>> mytem.getMagnification()
58

I would be very thankful for any clues.

-Matthias Brunner


Replies (4)

Re: updatecom.py: Cannot find typelib - Added by Anchi Cheng almost 15 years ago

Check this thread and do the test to see if there are similar clues.
viewtopic.php?f=8&t=286#p756

Anchi

Re: updatecom.py: Cannot find typelib - Added by Anonymous almost 15 years ago

Thanks, using makepy from win32com was successful. However, I was not able to remove any "import gatancom", "import tecnaicom" from the source code because I did not find any:

6) Now in pyScope, we need to edit any of the scripts that were trying to find the *com.py scripts, because we do not need them anymore. Python will automatically use the modules generated by makepy.py in the gen_py folder. In tecnai.py, gatan.py, etc, look for any lines regarding "import tecnaicom" or "import gatancom" etc

But that should not matter, should it?

Re: updatecom.py: Cannot find typelib - Added by Anchi Cheng almost 15 years ago

No, It does not matter. I think it just means that it did not generate these in the first place by updatecom.py

Does this mean that you can now find Tecnai as your TEM and Gatan as your CCDCamera in Leginon?

Anchi

Re: updatecom.py: Cannot find typelib - Added by Anonymous almost 15 years ago

"anchi" wrote:
Does this mean that you can now find Tecnai as your TEM and Gatan as your CCDCamera in Leginon?

Yes, this is working now...Thanks.

    (1-4/4)