Interested in EM?
Using the NYSBC
Principles & Protocols
NYSBC Equipment
Seminars & Courses
Publications associated with CEM at NYSBC
Jobs Available


Microscope Schedule
Logbook
NYSBC Intranet
NYSBC Contacts
Cryo-EM home



NYSBC home
NMR Facility
X-Ray Facility
Protein Production Facility
Electron Crystallography Center


Cryo-EM Site map

Prerequisites

  1. python
  2. gtk and glib. If the FSU software has been installed already then the required libraries should already be present
  3. wxGTK (Not sure if this is absolutely required). (done for CEM03,CEM12)

Dowload packages

  1. login as root
  2. Download wxPython source from Sourceforge.
  3. Extract to /usr/local/

Setup environment for compile

  1. setenv LD_LIBRARY_PATH /usr/lib64
    • Andrea included /usr/local/lib64:/usr/X11R6/lib64
  2. setenv PKG_CONFIG_PATH /usr/local/lib64/pkgconfig

Configure and compile and install wxWidgets libraries

  1. cd /usr/local/wxPython-src-2.8.7.1/
  2. ../configure --prefix=/usr --libdir=/usr/lib64 --enable-unicode
    • on cem02, this didn't work for 'root', had to do this as user 'stokes'
    • Andrea used -with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-mediactrl --enable-display --disable-debugreport
  3. make
  4. make install

compile and install wxPython modules

  1. cd /usr/local/wxPython-src-2.8.7.1//wxPython
  2. edit config.py
    • set flags for BUILD_GLCANVAS, BUILD_STC, BUILD_GIZMOS to 0 (they gave errors during the build, but maybe you can try them)
  3. python setup.py build
  4. python setup.py install
  5. create file 'wx.pth' in site-packages directory: contents of file: wx-2.8-gtk2-unicode (or whatever the directory used for wx)
    • actually, it looks like you might be able to copy /usr/lib/python2.x/site-packages/wx.pth to /usr/lib64/python2.x/site-packages

Test installation

  1. To test: Type python then type import wx
  2. If no errors are returned, then it has been configured correctly.
  3. you can also install and run the demo: wxPython-demo-2.6.4.0.tar
    • untar this file - go to the demo subdirectory, start demo: python demo.py

CentOS5

  • CentOS5 comes with newer versions of pango and several other libraries, incompatible with Protomo
  • These are installed in /usr/local/lib64
  • The old libraries are incompatible with firefox and wxpython, and I am using them by default since I often run protomo
  • To use wxpython and firefox, need to have /usr/lib64 (and not /usr/local/lib64) in LD_LIBRARY_PATH variable
  • CEM03 and CEM12 are set up on centos5, so they have this issue
  • I put the following in my .cshrc file:
alias ff_env setenv LD_LIBRARY_PATH /usr/lib64:/usr/X11R6/lib:/cryoem/2dx/lib:/cryoem/fftw3/lib
  • type "ff_env" to let wx python work

Update Aug 20 2009

  • installed rpm versions of wxPython on cem02 and cem03 (yum install wxPython wxPython-devel)
  • emip works on both now, but with a warning about "release number mismatch" between wxPython and wxWidgets

-- DavidStokes - 29 May 2008