honeypot@pipelinefx.com
PipelineFX
September 06, 2010, 06:22:52 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

News: See Announcements for latest Qube updates.
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: I can't seem to use the following python module in my simplecmd: xml.dom.minidom  (Read 420 times)
jordan
Jr. Member
**
Posts: 6


« on: May 12, 2010, 04:48:28 PM »

I thought this module was standard to python as of 2.5...is there a path that I must append in order for it to import correctly?

Thanks,
Jordan
Logged
Scot Brew
Administrator
*****
Posts: 252



WWW
« Reply #1 on: May 12, 2010, 08:29:16 PM »

The QubeGUI is run by default as an app with python (and all needed modules) already compiled within.  However it does not contain the unused python modules.

On OSX, those packages are located at  qube.app/Contents/Resources/lib/python2.5/site-packages.zip.  It does not contain xml.dom.minidom by default so it therefore cannot be loaded.  The library module "xml" is loaded, but not xml.dom.minidom. 

We have done a little bit of testing.  There may be some confusion in which xml module to use (as there is one already in the .app site-packages.zip file) in addition to the local system if you try to use a sys.path.append() to add a path to help find the xml.dom.minidom on the local system.  There may also be python version incompatibilities.  The combination of these issues may make dynamically importing xml.dom.minidom problematic.

Alternatively you can compile in the xml.dom.minidom if you compile your own version of the QubeGUI.  Here are some postings to facilitate this workflow.

Compiling the GUI: http://www.pipelinefx.com/forum/index.php?topic=573.0
Running qube.py directly: http://www.pipelinefx.com/forum/index.php?topic=710.0

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!