Difference: InstallwxPython (23 vs. 24)

Revision 2410 Nov 2009 - Main.DavidStokes

 
META TOPICPARENT name="CemIT"
Contents

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
Added:
>
>
    • 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

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 29 May 2008

META FILEATTACHMENT attr="" autoattached="1" comment="wxPython demo (2.6.4)" date="1257875093" name="wxPython-demo-2.6.4.0.tar" path="wxPython-demo-2.6.4.0.tar" size="6871040" user="Main.DavidStokes" version=""
META FILEATTACHMENT attr="" autoattached="1" comment="wxPython 2.8 source tarball" date="1212095674" name="wxPython-src-2.8.7.1.tar.bz2" path="wxPython-src-2.8.7.1.tar.bz2" size="26362160" user="Main.DavidStokes" version=""
META FILEATTACHMENT attr="" autoattached="1" comment="wx" date="1248723902" name="wxPython-src-2.8.8.1.tar.bz2" path="wxPython-src-2.8.8.1.tar.bz2" size="27712841" user="Main.DavidStokes" version=""
META TOPICMOVED by="DavidStokes" date="1214924233" from="Main.InstallgxPython" to="Main.InstallwxPython"
 
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding this intranet, Send feedback