Menu

#172 AttributeError: 'module' object has no attribute 'PENSTYLE_SOLID'

closed
nobody
None
2017-08-26
2017-08-25
No

Python 2.7.13
Timeline Version: 1.15.0
python-wxgtk2.8 Version: Version: 2.8.12.1+dfsg2-2

upon launching Timeline from the commandline on my raspberrypi/raspbian stretch system, I get the error:
AttributeError: 'module' object has no attribute 'PENSTYLE_SOLID'
please see the attached backtrace for details.

1 Attachments

Discussion

  • Rickard Lindberg

    Thanks for taking the time to report this error.

    We develop for wxPython 3 currently. And there it works. (The documentation should perhaps state that wxPython 3 is needed.)

    Do you have the possibility to upgrade to wxPython 3?

     
  • Rickard Lindberg

    If that is not possible, you can edit the source file:

    File "/home/pi/timeline-1.15.0/source/timelinelib/wxgui/components/categorytree.py", line 167, in _draw_bitmap
      memdc.SetBackground(wx.Brush(self.GetBackgroundColour(), wx.PENSTYLE_SOLID))
    

    Change wx.PENSTYLE_SOLID to wx.SOLID. (That was the old name that now seems deprecated.)

     
  • Nils Gotzhein

    Nils Gotzhein - 2017-08-26

    Hello Rickard. Thank you for the help. installing wxPython 3 fixed the problem.
    maybe you should consider updating this site: http://thetimelineproj.sourceforge.net/installing.html
    (it says "Timeline requires version 2.8.9.2 or greater.")

     
  • Rickard Lindberg

    Yes, I will update the documentation. Thanks for brining it to my attention.

     
  • Rickard Lindberg

    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB