Windows Installation All » History » Version 23
Anchi Cheng, 08/04/2014 10:37 AM
1 | 1 | Anchi Cheng | h1. Windows Installation |
---|---|---|---|
2 | |||
3 | 3 | Anchi Cheng | * You need to repeat installation of the general packages for each of the computer involved in Leginon operation with addition for the camera and scope. |
4 | |||
5 | 1 | Anchi Cheng | {{include(add host)}} |
6 | |||
7 | h2. Register TecnaiCCD.dll (Gatan 32-bit DM on FEI microscope), CAMC4.exe (For Tietz camera), and adaexp.exe (For film exposure) |
||
8 | |||
9 | * From the command prompt, run the following commands. You may need to enter the full path of the exe or dll: |
||
10 | <pre>adaexp.exe /regserver |
||
11 | CAMC4.exe /regserver |
||
12 | REGSVR32 TecnaiCCD.dll</pre> |
||
13 | |||
14 | h2. Install Python and supporting packages with their installers |
||
15 | |||
16 | {{include(Windows External Package installers)}} |
||
17 | |||
18 | Excute the installer files and follow the instructions. |
||
19 | |||
20 | h2. Install the Windows Installer Files from created from source by NRAMM |
||
21 | |||
22 | {{include(Windows Myami Package installers)}} |
||
23 | |||
24 | 20 | Anchi Cheng | also install comtypes if this *32-bit computer is for TIA controlling camera or for a Gatan camera*. |
25 | 19 | Anchi Cheng | |
26 | {{include(Comtypes_installer)}} |
||
27 | |||
28 | 1 | Anchi Cheng | Execute the installer files and follow the instructions. |
29 | |||
30 | h2. Install the packages you downloaded from NRAMM svn repository |
||
31 | |||
32 | The svn checkout is a folder containing several subpackages. You will install the python packages using python installer |
||
33 | |||
34 | h3. These are the sub-packages |
||
35 | |||
36 | |_.Name:|_.Purpose:| |
||
37 | | leginon|modular TEM image acquisition| |
||
38 | | pyami|general functions| |
||
39 | 9 | Anchi Cheng | | sinedon|database interaction| |
40 | 1 | Anchi Cheng | | pyscope|microscope control and monitoring| |
41 | | imageviewer|image viewing for tomography| |
||
42 | |||
43 | If you recall Linux processing server installation instruction, this is a bit different. Numextension and LibCV are not included. Numextension is already installed with windows installer. libcv is not required by Leginon client that this part installation is aimed for. |
||
44 | |||
45 | * Start a command line Window from Start Menu |
||
46 | |||
47 | * Install the package in each folder with commands such as |
||
48 | 10 | Anchi Cheng | <pre>cd path_to\myami-VERSION\myami\leginon |
49 | 1 | Anchi Cheng | c:\\python27\python.exe setup.py install</pre> |
50 | Then continue with the other packages, replacing leginon with the package name. See "These are the sub-packages of myami that you will install with the python installer." section above for complete list. |
||
51 | |||
52 | 23 | Anchi Cheng | h2. Modify comtypes if it is used: |
53 | 1 | Anchi Cheng | |
54 | 23 | Anchi Cheng | This include |
55 | * TIA controlling camera |
||
56 | * Gatan camera is controlled by older, 32-bit computer |
||
57 | * JEOL models that uses JEOL COM library. |
||
58 | |||
59 | 16 | Anchi Cheng | 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. |
60 | |||
61 | 1 | Anchi Cheng | Remove safearray.pyc in C:\Python2*\Lib\site-packages\comtypes\ if it does not appear to recompile (timestamp of the file change) when you import comtype in python command line |
62 | <pre> |
||
63 | import comtypes |
||
64 | </pre> |
||
65 | |||
66 | h2. Run updatecom.py |
||
67 | |||
68 | From a command line window: |
||
69 | |||
70 | 18 | Anchi Cheng | <pre>cd C:\python27\Lib\site-packages\pyscope |
71 | 1 | Anchi Cheng | C:\python27\python.exe updatecom.py</pre> |
72 | |||
73 | The python window appears should say show the required type libraries it found: |
||
74 | <pre> |
||
75 | Generating .py files from type libraries... |
||
76 | initializing TEM Scripting Error, cannot find typelib for "TEM Scripting" |
||
77 | initializing Tecnai Scripting done. |
||
78 | initializing TOM Moniker done. |
||
79 | initializing Tecnai Low Dose Kit done. |
||
80 | initializing Tecnai Exposure Adaptor done. |
||
81 | |||
82 | 21 | Anchi Cheng | initializing Tietz CCD Camera done. (If you have a Tietz camera) |
83 | initializing Gatan CCD Camera done. (If your Gatan camera uses TecnaiCCD.dll) |
||
84 | |||
85 | 1 | Anchi Cheng | </pre> |
86 | The output is of course depending on what is available on your microscope computer. You should have either "Tecnai Scripting" or the pairing of "TEM Scripting" and "TOM Moniker". |
||
87 | |||
88 | You will only find Tecnai Exposure Adaptor (Scripting for film exposure) if you ask FEI for it. |
||
89 | |||
90 | The script should generate a few files in C:\\python27\Lib\win32com\gen_py with seemly scrambled names such as BC0A2B03-19FF-11D3-AE00-00A024CBA50Cx0x1x9.py |
||
91 | 15 | Anchi Cheng | |
92 | h2. Install SEMCCD as Digital Micrograph plugin (Gatan K2 camera only) |
||
93 | |||
94 | {{include(Install_SerialEM_DigitalMicrograph_plugin)}} |
||
95 | 4 | Anchi Cheng | |
96 | 22 | Anchi Cheng | h2. Install Google protobuf (DE camera only) |
97 | |||
98 | {{include(portobuf installation instruction)}} |
||
99 | |||
100 | |||
101 | |||
102 | 7 | Anchi Cheng | h2. Register the Tietz ping callback function (Tietz camera only) |
103 | 5 | Anchi Cheng | |
104 | * From a command line window: |
||
105 | |||
106 | 11 | Anchi Cheng | <pre>cd C:\python27\Lib\site-packages\pyscope |
107 | 5 | Anchi Cheng | C:\python27\python.exe tietzping.py</pre> |
108 | 1 | Anchi Cheng | |
109 | 7 | Anchi Cheng | h2. camc.ini setup (Tietz camera only) |
110 | 8 | Anchi Cheng | |
111 | 6 | Anchi Cheng | {{include(CAMC_ini_setup)}} |
112 | |||
113 | 5 | Anchi Cheng | |
114 | 4 | Anchi Cheng | ______ |
115 | |||
116 | [[Windows_Package_Requirement_30|< Package Requirement]] | [[Windows_Myami_Configuration| Configurations related to Leginon >]] |
||
117 | |||
118 | |||
119 | ______ |