Author Topic: HOWTO: Run the QubeGUI interactively via qube.py  (Read 4911 times)

Scot Brew

  • Hero Member
  • *****
  • Posts: 272
    • PipelineFX
HOWTO: Run the QubeGUI interactively via qube.py
« on: July 14, 2009, 12:48:07 AM »
One can download and run the QubeGUI compiled for Windows, OSX, and a variety of Linux flavors/versions.  However one may want to run the QubeGUI on a version of Linux that is not compatible with the compiled version or may want to modify the QubeGUI python code itself.

Here is how to run the qube.py QubeGUI via python directly.

REQUIRED MODULES
Install the required modules.  Make sure that both the wx and qb modules are available.  Confirm the qb python module is installed and in your PYTHONPATH.  It is installed from the qube core installers.  On Linux, you should have /usr/local/pfx/qube/api/python in your PYTHONPATH.  That will refer to the qb python modules under /usr/local/pfx/qube/api/python/qb.

   1. qb qube module -- installed from the qube core rpm.
           One may need to add /usr/local/pfx/qube/api/python
           to your PYTHONPATH  
   2. wxPython ansi 2.7.2 or higher (http://www.wxpython.org)
   3. numpy 1.0 or higher (http://numpy.scipy.org/)

Test this works by typing from the command prompt.  If it does not error, then the modules loaded successfully.

$ python
>>> import qb
>>> import wx
>>> import numpy

OPTIONAL MODULES
The following modules are optional, though do add some additional functionality to the QubeGUI.  The charting panels require numpy and PIL adds additional image formats for the image preview panel.

   1. PIL -- Python Image Library (download install from http://www.pythonware.com/products/pil/)
   2. MySQLdb -- Python MySQL interface (mysql-python rpm or download from http://sourceforge.net/projects/mysql-python/)


RUNNING IT:
To run the qubegui interactively:
1. cd /usr/local/pfx/qube/api/python/qb/gui
2. python qube.py
« Last Edit: December 30, 2010, 09:23:02 PM by Scot Brew »