Project

General

Profile

Windows Installation All » History » Version 33

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