Will not run under Ubuntu 11.10 (oneiric)

Bug #926108 reported by Bob Horrobin
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Time Drive

Bug Description

setup.sh ran clean then:

/opt/time-drive/time-drive-0.4.0$ sudo time-drive
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:127: RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK
Traceback (most recent call last):
  File "/usr/local/bin/time-drive", line 29, in <module>
  File "/usr/local/bin/time-drive", line 24, in main
    window = MainWindow()
  File "/usr/local/lib/python2.7/dist-packages/timedrive/app.py", line 35, in __init__
    gui_utils.loadUi(self, "uiMainWindow.ui")
  File "/usr/local/lib/python2.7/dist-packages/timedrive/utils/gui_utils.py", line 45, in loadUi
    uic.loadUi(utils.find_file(uiFile), self)
  File "/usr/lib/python2.7/dist-packages/PyQt4/uic/__init__.py", line 221, in loadUi
    return DynamicUILoader().loadUi(uifile, baseinstance)
  File "/usr/lib/python2.7/dist-packages/PyQt4/uic/Loader/loader.py", line 71, in loadUi
    return self.parse(filename, basedir)
  File "/usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py", line 919, in parse
    document = parse(filename)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1177, in parse
    tree.parse(source, parser)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 646, in parse
    source = open(source, "rb")
IOError: [Errno 2] No such file or directory: 'None'

Tags: oneiric
Revision history for this message
Thomas Wiebe (thomas-openhort) wrote :

I'm not familiar with how setuptools determines the default prefix, but on a regular Ubuntu 12.04 amd64 installation this is /usr/local, and I'd expect this to be the default for most installations. Therefore we also need to look at /usr/local/share/time-drive for ui-files.

A patch against time-drive 0.4.0 is attached. But I very much dislike the hard-coded paths currently found in find_file().


Revision history for this message
Gelefisk (gelefisk) wrote :

Confirming patch work on kubuntu 12.10 amd64

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.