Project

General

Profile

Installing comtypes » History » Version 1

Jim Pulokas, 05/29/2013 10:45 AM

1 1 Jim Pulokas
h1. Installing comtypes
2
3
The following instructions apply to:
4
* Gatan CCD cameras using the pyscope gatan.py module starting with svn r17592
5
* FEI cameras (Eagle,Falcon) using the pyscope tia.py module starting with svn r17589
6
7
Prior to those revisions, the comarray package was required.  You no longer need to install comarray.  Instead, you must install comtypes, available here:
8
9
http://sourceforge.net/projects/comtypes/files/comtypes/0.6.2/
10
11
Be careful not to accidentally download the py3 version.  Install it from the exe installer, or unzip the source and install using the setup.py installer.   The same package should work with any 2.* version of python.
12
13
IMPORTANT:  After installing comtypes, you must make one modification to it.  The module "safearray.py" that comes with comtypes must be replaced with a modified version that we provide.   You can find the custom version of safearray.py in the pyscope package.  Please copy this module from pyscope into the installed comtypes folder:  C:\Python2*\Lib\site-packages\comtypes\.   It should replace the safearray.py that is included in comtypes.