Windows Installation All » History » Version 2
Anchi Cheng, 10/31/2013 04:48 PM
| 1 | 1 | Anchi Cheng | h1. Windows Installation |
|---|---|---|---|
| 2 | |||
| 3 | {{include(add host)}} |
||
| 4 | |||
| 5 | h2. Register TecnaiCCD.dll (Gatan 32-bit DM on FEI microscope), CAMC4.exe (For Tietz camera), and adaexp.exe (For film exposure) |
||
| 6 | |||
| 7 | * From the command prompt, run the following commands. You may need to enter the full path of the exe or dll: |
||
| 8 | <pre>adaexp.exe /regserver |
||
| 9 | CAMC4.exe /regserver |
||
| 10 | REGSVR32 TecnaiCCD.dll</pre> |
||
| 11 | |||
| 12 | h2. Install Python and supporting packages with their installers |
||
| 13 | |||
| 14 | {{include(Windows External Package installers)}} |
||
| 15 | |||
| 16 | Excute the installer files and follow the instructions. |
||
| 17 | |||
| 18 | |||
| 19 | h2. Install the Windows Installer Files from created from source by NRAMM |
||
| 20 | |||
| 21 | {{include(Windows Myami Package installers)}} |
||
| 22 | |||
| 23 | Execute the installer files and follow the instructions. |
||
| 24 | |||
| 25 | h2. Install the packages you downloaded from NRAMM svn repository |
||
| 26 | |||
| 27 | The svn checkout is a folder containing several subpackages. You will install the python packages using python installer |
||
| 28 | |||
| 29 | h3. These are the sub-packages |
||
| 30 | |||
| 31 | |_.Name:|_.Purpose:| |
||
| 32 | | leginon|modular TEM image acquisition| |
||
| 33 | | pyami|general functions| |
||
| 34 | | sinedon|Leginon/database interaction| |
||
| 35 | | pyscope|microscope control and monitoring| |
||
| 36 | | imageviewer|image viewing for tomography| |
||
| 37 | |||
| 38 | 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. |
||
| 39 | |||
| 40 | * Start a command line Window from Start Menu |
||
| 41 | |||
| 42 | * Install the package in each folder with commands such as |
||
| 43 | <pre>cd Your_Download_Place\LeginonTrunk\leginon |
||
| 44 | c:\\python27\python.exe setup.py install</pre> |
||
| 45 | 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. |
||
| 46 | |||
| 47 | h2. Modify comtypes if TIA controlling camera is used or Gatan camera is controlled by older, 32-bit computer. |
||
| 48 | |||
| 49 | 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. |
||
| 50 | |||
| 51 | h2. TIA controlling camera only: |
||
| 52 | |||
| 53 | (Reported by a user as a necessary step on his system. May not be necessary) Copy TecnaiCCD.dll and stdscript.dll into pyscope folder |
||
| 54 | |||
| 55 | h2. Run updatecom.py |
||
| 56 | |||
| 57 | From a command line window: |
||
| 58 | |||
| 59 | <pre>cd C:\python27\Lib\Site-Packages\pyScope |
||
| 60 | C:\python27\python.exe updatecom.py</pre> |
||
| 61 | |||
| 62 | The python window appears should say show the required type libraries it found: |
||
| 63 | <pre> |
||
| 64 | Generating .py files from type libraries... |
||
| 65 | initializing TEM Scripting Error, cannot find typelib for "TEM Scripting" |
||
| 66 | initializing Tecnai Scripting done. |
||
| 67 | initializing TOM Moniker done. |
||
| 68 | initializing Tecnai Low Dose Kit done. |
||
| 69 | initializing Tecnai Exposure Adaptor done. |
||
| 70 | |||
| 71 | initializing Tietz CCD Camera done. |
||
| 72 | </pre> |
||
| 73 | 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". |
||
| 74 | |||
| 75 | You will only find Tecnai Exposure Adaptor (Scripting for film exposure) if you ask FEI for it. |
||
| 76 | |||
| 77 | 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 |