Bug 1185599 - openstv fails to run with wxPython 3.0 in Rawhide
Summary: openstv fails to run with wxPython 3.0 in Rawhide
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: openstv
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David King
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-25 04:07 UTC by Scott Talbert
Modified: 2015-01-25 11:55 UTC (History)
1 user (show)

Fixed In Version: openstv-1.7-4.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-25 11:55:45 UTC
Type: Bug


Attachments (Terms of Use)

Description Scott Talbert 2015-01-25 04:07:39 UTC
wxPython has been updated to 3.0 in Rawhide.  Unfortunately, openstv fails to launch with wxPython 3.0:

[talbert@localhost ~]$ openstv
/usr/lib/python2.7/site-packages/openstv/OpenSTV.py:893: wxPyDeprecationWarning: Call to deprecated item. 
  wx.InitAllImageHandlers()

(openstv:4542): GLib-GObject-WARNING **: The property GtkImageMenuItem:use-stock is deprecated and shouldn't be used anymore. It will be removed in a future version.

(openstv:4542): GLib-GObject-WARNING **: The property GtkSettings:gtk-menu-images is deprecated and shouldn't be used anymore. It will be removed in a future version.

(openstv:4542): GLib-GObject-WARNING **: The property GtkImageMenuItem:accel-group is deprecated and shouldn't be used anymore. It will be removed in a future version.
Traceback (most recent call last):
  File "/usr/bin/openstv", line 7, in <module>
    app = App(0)
  File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk3/wx/_core.py", line 8628, in __init__
    self._BootstrapApp()
  File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk3/wx/_core.py", line 8196, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/openstv/OpenSTV.py", line 902, in OnInit
    self.frame = Frame(None)
  File "/usr/lib/python2.7/site-packages/openstv/OpenSTV.py", line 184, in __init__
    self.console.SetMaxLength(0)
  File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk3/wx/_core.py", line 13339, in SetMaxLength
    return _core_.TextEntryBase_SetMaxLength(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "IsSingleLine()" failed at ./src/gtk/textctrl.cpp(847) in GetEditable(): shouldn't be called for multiline

(The GTK warnings are from wxWidgets and can probably be ignored.  I assume they'll be turned off before release.)

Debian has incorporated a patch which would probably resolve these issues:
https://sources.debian.net/data/main/o/openstv/1.6.1-1.1/debian/patches/wxpython3.0.patch

Comment 1 David King 2015-01-25 11:55:45 UTC
Thanks for the bug report, and the link to the patch! I just built openstv with that patch for Rawhide, and it works well for me.


Note You need to log in before you can comment on or make changes to this bug.