Windows Installation All » History » Version 26
Anchi Cheng, 08/08/2014 10:07 PM
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 | 19 | Anchi Cheng | |
25 | 1 | Anchi Cheng | Execute the installer files and follow the instructions. |
26 | |||
27 | h2. Install the packages you downloaded from NRAMM svn repository |
||
28 | |||
29 | The svn checkout is a folder containing several subpackages. You will install the python packages using python installer |
||
30 | |||
31 | h3. These are the sub-packages |
||
32 | |||
33 | |_.Name:|_.Purpose:| |
||
34 | | leginon|modular TEM image acquisition| |
||
35 | | pyami|general functions| |
||
36 | 9 | Anchi Cheng | | sinedon|database interaction| |
37 | 1 | Anchi Cheng | | pyscope|microscope control and monitoring| |
38 | | imageviewer|image viewing for tomography| |
||
39 | |||
40 | 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. |
||
41 | |||
42 | * Start a command line Window from Start Menu |
||
43 | |||
44 | * Install the package in each folder with commands such as |
||
45 | <pre>cd path_to\myami-VERSION\myami\leginon |
||
46 | c:\\python27\python.exe setup.py install</pre> |
||
47 | 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. |
||
48 | 26 | Anchi Cheng | |
49 | h2. install comtypes if this *32-bit computer is for TIA controlling camera or for a Gatan camera*. |
||
50 | |||
51 | {{include(Comtypes_installer)}} |
||
52 | 1 | Anchi Cheng | |
53 | 23 | Anchi Cheng | h2. Modify comtypes if it is used: |
54 | 1 | Anchi Cheng | |
55 | 23 | Anchi Cheng | This include |
56 | * TIA controlling camera |
||
57 | * Gatan camera is controlled by older, 32-bit computer |
||
58 | * JEOL models that uses JEOL COM library. |
||
59 | |||
60 | 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. |
61 | |||
62 | 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 |
63 | <pre> |
||
64 | import comtypes |
||
65 | </pre> |
||
66 | |||
67 | h2. Run updatecom.py |
||
68 | |||
69 | From a command line window: |
||
70 | |||
71 | 18 | Anchi Cheng | <pre>cd C:\python27\Lib\site-packages\pyscope |
72 | 1 | Anchi Cheng | C:\python27\python.exe updatecom.py</pre> |
73 | |||
74 | The python window appears should say show the required type libraries it found: |
||
75 | <pre> |
||
76 | Generating .py files from type libraries... |
||
77 | 24 | Anchi Cheng | initializing TEM Scripting |
78 | Found TEM Scripting |
||
79 | or |
||
80 | Found Tecnai Scripting |
||
81 | done. |
||
82 | 1 | Anchi Cheng | |
83 | 24 | Anchi Cheng | initializing TOM Moniker |
84 | Found TOMMoniker 1.0 Type Library |
||
85 | done. |
||
86 | 21 | Anchi Cheng | |
87 | 24 | Anchi Cheng | ..... |
88 | 1 | Anchi Cheng | </pre> |
89 | 25 | Anchi Cheng | The output depends, of course, on what is available on your microscope/camera computer. For FEI scopes, you should find either "Tecnai Scripting" or "TEM Scripting" and "TOM Moniker". For Tietz camera, you should find 'CAMC4 1.0 Type Library' |
90 | 1 | Anchi Cheng | |
91 | You will only find Tecnai Exposure Adaptor (Scripting for film exposure) if you ask FEI for it. |
||
92 | |||
93 | 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 |
||
94 | 15 | Anchi Cheng | |
95 | h2. Install SEMCCD as Digital Micrograph plugin (Gatan K2 camera only) |
||
96 | |||
97 | {{include(Install_SerialEM_DigitalMicrograph_plugin)}} |
||
98 | 4 | Anchi Cheng | |
99 | 22 | Anchi Cheng | h2. Install Google protobuf (DE camera only) |
100 | |||
101 | {{include(portobuf installation instruction)}} |
||
102 | |||
103 | |||
104 | |||
105 | 7 | Anchi Cheng | h2. Register the Tietz ping callback function (Tietz camera only) |
106 | 5 | Anchi Cheng | |
107 | * From a command line window: |
||
108 | |||
109 | 11 | Anchi Cheng | <pre>cd C:\python27\Lib\site-packages\pyscope |
110 | 5 | Anchi Cheng | C:\python27\python.exe tietzping.py</pre> |
111 | 1 | Anchi Cheng | |
112 | 7 | Anchi Cheng | h2. camc.ini setup (Tietz camera only) |
113 | 8 | Anchi Cheng | |
114 | 6 | Anchi Cheng | {{include(CAMC_ini_setup)}} |
115 | |||
116 | 5 | Anchi Cheng | |
117 | 4 | Anchi Cheng | ______ |
118 | |||
119 | [[Windows_Package_Requirement_30|< Package Requirement]] | [[Windows_Myami_Configuration| Configurations related to Leginon >]] |
||
120 | |||
121 | |||
122 | ______ |