Whyteboard does not find wxwindows 2.8 if 3.0 is installed.

Bug #1299767 reported by Stefan Husmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Whyteboard
New
Undecided
Unassigned

Bug Description

Whyteboard 0.41.1
Operating System: Linux 3.13.7-1-ARCH x86_64
Screen Resolution: 1280x1024
Python Version: 2.7.6 (default, Feb 26 2014, 12:07:17)
[GCC 4.8.2 20140206 (prerelease)]
wxPython Version: 3.0.0.0 gtk2 (classic)
wxPython Info: (__WXGTK__, wxGTK, unicode, gtk2, wx-assertions-on, SWIG-1.3.29)
Python Encoding: Default=ascii File=UTF-8
wxPython Encoding: utf-8
System Architecture: 64bit x86_64
Byte order: little
Frozen: False
#---- End System Information ----#

Under Arch Linux, running whyteboard results in the following:

#---- Preferences ----#
language = ""

#---- Traceback Info ----#

*** Sun Mar 30 15:47:41 2014 ***
Traceback (most recent call last):
  File "./whyteboard.py", line 49, in <module>
    WhyteboardApp().MainLoop()
  File "/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8631, in __init__
    self._BootstrapApp()
  File "/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/usr/lib/python2.7/whyteboard/whyteboard/gui/app.py", line 61, in OnInit
    self.frame = GUI(config)
  File "/usr/lib/python2.7/whyteboard/whyteboard/gui/frame.py", line 157, in __init__
    pub.sendMessage('thumbs.update_current')
  File "/usr/lib/python2.7/whyteboard/whyteboard/lib/pubsub/core/publisher.py", line 150, in sendMessage
    topicObj.publish(kwargs)
  File "/usr/lib/python2.7/whyteboard/whyteboard/lib/pubsub/core/topics.py", line 449, in publish
    listener(fullTopic, filteredArgs)
  File "/usr/lib/python2.7/whyteboard/whyteboard/lib/pubsub/core/listener.py", line 160, in __call__
    cb(**kwargs)
  File "/usr/lib/python2.7/whyteboard/whyteboard/gui/panels.py", line 944, in update_current
    self.update(self.gui.tabs.GetSelection())
  File "/usr/lib/python2.7/whyteboard/whyteboard/gui/panels.py", line 956, in update
    thumb.highlight()
  File "/usr/lib/python2.7/whyteboard/whyteboard/gui/panels.py", line 1022, in highlight
    gcdc.SetBrush(wx.Brush(wx.Color(0, 0, 255, 50))) # light blue
AttributeError: 'module' object has no attribute 'Color'

#---- End Traceback Info ----#

Deinstalling wxpython 3.0 is no solution. the arch Linux package wxpython2.8 depends on wxpython.
I am trying to package this properly. My current PKGBUILD looks like this:
http://hastebin.com/qatocefeso

Revision history for this message
Stefan Husmann (stefan-husmann) wrote :

As someone found out, in line 1022 of gui/panels.py the line

gcdc.SetBrush(wx.Brush(wx.Color(0, 0, 255, 50))) # light blue

has to changed to

gcdc.SetBrush(wx.Brush(wx.Colour(0, 0, 255, 50))) # light blue

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.