Windows Installation All » History » Revision 35
Revision 34 (Anchi Cheng, 08/12/2014 02:40 PM) → Revision 35/65 (Anchi Cheng, 08/13/2014 04:22 PM)
h1. Windows Installation
* 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.
h2. Install Python and supporting packages with their installers
{{include(Windows External Package installers)}}
Excute the installer files and follow the instructions.
{{include(add host)}}
h2. Install the Windows Installer Files from created from source by NRAMM
{{include(Windows Myami Package installers)}}
Execute the installer files and follow the instructions.
h2. Install the packages you downloaded from NRAMM svn repository
The svn checkout is a folder containing several subpackages. You will install the python packages using python installer
h3. These are the sub-packages
|_.Name:|_.Purpose:|
| leginon|modular TEM image acquisition|
| pyami|general functions|
| sinedon|database interaction|
| pyscope|microscope control and monitoring|
| imageviewer|image viewing for tomography|
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.
* Start a command line Window from Start Menu
* Install the package in each folder with commands such as
<pre>cd path_to\myami-VERSION\myami\leginon
c:\\python27\python.exe setup.py install</pre>
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.
______
h1. The following depends on what instrument is controlled by the computer
You can also refer to Specific notes for various instrument in [[Installation_on_the_instrument_computers]]
h2. Register TecnaiCCD.dll (Gatan 32-bit DM on FEI microscope), CAMC4.exe (For Tietz camera), and adaexp.exe (For film exposure)
* From the command prompt, run the following commands. You may need to enter the full path of the exe or dll:
<pre>adaexp.exe /regserver
CAMC4.exe /regserver
REGSVR32 TecnaiCCD.dll</pre>
In one case, we also had to [[find and register a dll file as command components in Windows|find and register TEM Scripting]]
h2. install comtypes if this *32-bit computer is for TIA controlling camera or for a Gatan camera on FEI scope*.
{{include(Comtypes_installer)}}
h2. Modify comtypes if it is used:
This include
* TIA controlling camera
* Gatan camera is controlled by older, 32-bit computer
* JEOL models that uses JEOL COM library.
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.
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
<pre>
import comtypes
</pre>
h2. Run updatecom.py
From a command line window:
<pre>cd C:\python27\Lib\site-packages\pyscope
C:\python27\python.exe updatecom.py</pre>
The python window appears should say show the required type libraries it found:
<pre>
Generating .py files from type libraries...
initializing TEM Scripting
Found TEM Scripting
or
Found Tecnai Scripting
done.
initializing TOM Moniker
Found TOMMoniker 1.0 Type Library
done.
.....
</pre>
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'
You will only find Tecnai Exposure Adaptor (Scripting for film exposure) if you ask FEI for it.
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
h2. Install SEMCCD as Digital Micrograph plugin (Gatan 64-bit computer such as that for K2 camera only)
{{include(Install_SerialEM_DigitalMicrograph_plugin)}}
h2. Install Google protobuf (DE camera only)
{{include(portobuf installation instruction)}}
h2. Register the Tietz ping callback function (Tietz camera only)
* From a command line window:
<pre>cd C:\python27\Lib\site-packages\pyscope
C:\python27\python.exe tietzping.py</pre>
h2. camc.ini setup (Tietz camera only)
{{include(CAMC_ini_setup)}}
______
[[Windows_Package_Requirement_30|< Package Requirement]] | [[Windows_Myami_Configuration| Configurations related to Leginon >]]
______