Results 1 to 1 of 1

Thread: System Error when running loadUi()

  1. #1
    Join Date
    Feb 2011
    Qt products
    MacOS X Windows

    Question System Error when running loadUi()

    I'm pretty new to Qt, Python and their combinations. I'm currently writing a QGIS plugin in python (I used QtCreator 2.1 (Qt Designer 4.7) to generate a .ui-file and am now trying to use it for a Quantum GIS plugin that's written in Python 2.5 (and running in the Quantum GIS Python 2.5 console)).
    I am running into trouble when loading the ui-file dynamically when the program runs the loadUi() function. The error occurs outside my script. Does that mean, I'm passing something wrong into it? Where does the error come in? Any hints on what could be wrong?
    Qt Code:
    1. # Set up the user interface from Designer
    2. code_dir = os.path.dirname(os.path.abspath(__file__))
    3. self.ui = loadUi(os.path.join(code_dir, "Ui_myfile.ui"), self)
    To copy to clipboard, switch view to plain text mode 
    Traceback (most recent call last):
    File "C:/Dokumente und Einstellungen/\myfile\", line 57, in run
    self.dialog = myfileUI(self.iface)
    File "C:/Dokumente und Einstellungen/\myfile\", line 42, in __init__
    self.ui = loadUi(os.path.join(code_dir, "Ui_myfile.ui"), self)
    File "C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages\PyQt4\uic\", line 112, in loadUi
    return DynamicUILoader().loadUi(uifile, baseinstance)
    File "C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages\PyQt4\uic\Loader\", line 21, in loadUi
    return self.parse(filename)
    File "C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages\PyQt4\uic\", line 768, in parse
    File "C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages\PyQt4\uic\", line 616, in createUserInterface
    File "C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages\PyQt4\uic\", line 594, in traverseWidgetTree
    handler(self, child)
    File "C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages\PyQt4\uic\", line 233, in createWidget
    SystemError: error return without exception set
    Last edited by Amelie; 9th March 2011 at 16:30.

Similar Threads

  1. error while running
    By sattu in forum Newbie
    Replies: 7
    Last Post: 11th January 2011, 13:42
  2. error using the system D-BUS
    By HERC in forum Qt Programming
    Replies: 0
    Last Post: 3rd February 2010, 11:29
  3. Qt Embedded - error running app on CE
    By in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 26th September 2008, 06:43
  4. running error
    By Mysterious in forum Newbie
    Replies: 1
    Last Post: 3rd November 2007, 13:53
  5. Running QT3 and QT4 on the same system?
    By milonguero in forum Installation and Deployment
    Replies: 2
    Last Post: 26th April 2007, 19:38


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.