Windows Installation All » History » Version 43
Anchi Cheng, 11/04/2015 03:25 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 | |
6 | h2. Install Python and supporting packages with their installers |
||
7 | |||
8 | {{include(Windows External Package installers)}} |
||
9 | |||
10 | Excute the installer files and follow the instructions. |
||
11 | 34 | Anchi Cheng | |
12 | {{include(add host)}} |
||
13 | 1 | Anchi Cheng | |
14 | h2. Install the Windows Installer Files from created from source by NRAMM |
||
15 | |||
16 | {{include(Windows Myami Package installers)}} |
||
17 | |||
18 | 19 | Anchi Cheng | |
19 | 1 | Anchi Cheng | Execute the installer files and follow the instructions. |
20 | |||
21 | h2. Install the packages you downloaded from NRAMM svn repository |
||
22 | |||
23 | 43 | Anchi Cheng | The svn checkout is a folder containing several subpackages. You will install the python packages using python installer. *See the next section if you want to use directly the svn checkout*. |
24 | 1 | Anchi Cheng | |
25 | h3. These are the sub-packages |
||
26 | |||
27 | |_.Name:|_.Purpose:| |
||
28 | | leginon|modular TEM image acquisition| |
||
29 | | pyami|general functions| |
||
30 | 9 | Anchi Cheng | | sinedon|database interaction| |
31 | 1 | Anchi Cheng | | pyscope|microscope control and monitoring| |
32 | | imageviewer|image viewing for tomography| |
||
33 | |||
34 | 41 | Anchi Cheng | 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 and opencv are not required by Leginon client that this part installation is aimed for. |
35 | 1 | Anchi Cheng | |
36 | * Start a command line Window from Start Menu |
||
37 | |||
38 | * Install the package in each folder with commands such as |
||
39 | <pre>cd path_to\myami-VERSION\myami\leginon |
||
40 | c:\\python27\python.exe setup.py install</pre> |
||
41 | 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. |
||
42 | 41 | Anchi Cheng | |
43 | h2. (Alternative approach, easy for updating) Set environment variable PYTHONPATH to use svn check out directly |
||
44 | |||
45 | 42 | Anchi Cheng | {{include(set pythonpath environment variable for local myami sandbox)}} |
46 | 41 | Anchi Cheng | |
47 | 27 | Anchi Cheng | |
48 | 30 | Anchi Cheng | ______ |
49 | |||
50 | 29 | Anchi Cheng | h1. The following depends on what instrument is controlled by the computer |
51 | 33 | Anchi Cheng | |
52 | 32 | Anchi Cheng | You can also refer to Specific notes for various instrument in [[Installation_on_the_instrument_computers]] |
53 | 33 | Anchi Cheng | |
54 | 27 | Anchi Cheng | h2. Register TecnaiCCD.dll (Gatan 32-bit DM on FEI microscope), CAMC4.exe (For Tietz camera), and adaexp.exe (For film exposure) |
55 | |||
56 | * From the command prompt, run the following commands. You may need to enter the full path of the exe or dll: |
||
57 | <pre>adaexp.exe /regserver |
||
58 | CAMC4.exe /regserver |
||
59 | REGSVR32 TecnaiCCD.dll</pre> |
||
60 | 26 | Anchi Cheng | |
61 | 36 | Anchi Cheng | In one case, we also had to [[find and register a dll file as command components in Windows|find and register TEM Scripting]] for an FEI scope |
62 | 35 | Anchi Cheng | |
63 | 38 | Anchi Cheng | h2. install comtypes if this *32-bit computer is for the microscope, or any camera other than Gatan K2 Summit*. |
64 | 26 | Anchi Cheng | |
65 | {{include(Comtypes_installer)}} |
||
66 | 1 | Anchi Cheng | |
67 | 23 | Anchi Cheng | h2. Modify comtypes if it is used: |
68 | 1 | Anchi Cheng | |
69 | 23 | Anchi Cheng | This include |
70 | * TIA controlling camera |
||
71 | * Gatan camera is controlled by older, 32-bit computer |
||
72 | * JEOL models that uses JEOL COM library. |
||
73 | |||
74 | 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. |
75 | |||
76 | 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 |
77 | <pre> |
||
78 | import comtypes |
||
79 | </pre> |
||
80 | |||
81 | 40 | Anchi Cheng | h2. Run checkcom.py if comtypes is used or run updatecom.py if pywin is used (TIVPS camera) |
82 | 1 | Anchi Cheng | |
83 | From a command line window: |
||
84 | |||
85 | <pre>cd C:\python27\Lib\site-packages\pyscope |
||
86 | 39 | Anchi Cheng | C:\python27\python.exe checkcom.py</pre> |
87 | or |
||
88 | 1 | Anchi Cheng | C:\python27\python.exe updatecom.py</pre> |
89 | |||
90 | The python window appears should say show the required type libraries it found: |
||
91 | <pre> |
||
92 | Generating .py files from type libraries... |
||
93 | 24 | Anchi Cheng | initializing TEM Scripting |
94 | Found TEM Scripting |
||
95 | or |
||
96 | Found Tecnai Scripting |
||
97 | done. |
||
98 | 1 | Anchi Cheng | |
99 | 24 | Anchi Cheng | initializing TOM Moniker |
100 | Found TOMMoniker 1.0 Type Library |
||
101 | done. |
||
102 | 21 | Anchi Cheng | |
103 | 24 | Anchi Cheng | ..... |
104 | 1 | Anchi Cheng | </pre> |
105 | 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' |
106 | 1 | Anchi Cheng | |
107 | You will only find Tecnai Exposure Adaptor (Scripting for film exposure) if you ask FEI for it. |
||
108 | |||
109 | 39 | Anchi Cheng | The updatecom.py 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 |
110 | 15 | Anchi Cheng | |
111 | 31 | Anchi Cheng | h2. Install SEMCCD as Digital Micrograph plugin (Gatan 64-bit computer such as that for K2 camera only) |
112 | 15 | Anchi Cheng | |
113 | {{include(Install_SerialEM_DigitalMicrograph_plugin)}} |
||
114 | 4 | Anchi Cheng | |
115 | 22 | Anchi Cheng | h2. Install Google protobuf (DE camera only) |
116 | |||
117 | {{include(portobuf installation instruction)}} |
||
118 | |||
119 | |||
120 | |||
121 | 7 | Anchi Cheng | h2. Register the Tietz ping callback function (Tietz camera only) |
122 | 5 | Anchi Cheng | |
123 | * From a command line window: |
||
124 | |||
125 | 11 | Anchi Cheng | <pre>cd C:\python27\Lib\site-packages\pyscope |
126 | 5 | Anchi Cheng | C:\python27\python.exe tietzping.py</pre> |
127 | 1 | Anchi Cheng | |
128 | 7 | Anchi Cheng | h2. camc.ini setup (Tietz camera only) |
129 | 8 | Anchi Cheng | |
130 | 6 | Anchi Cheng | {{include(CAMC_ini_setup)}} |
131 | |||
132 | 5 | Anchi Cheng | |
133 | 4 | Anchi Cheng | ______ |
134 | |||
135 | [[Windows_Package_Requirement_30|< Package Requirement]] | [[Windows_Myami_Configuration| Configurations related to Leginon >]] |
||
136 | |||
137 | |||
138 | ______ |