wxGCDC is not available on this platform Errors

Answers to common questions and problems here

wxGCDC is not available on this platform Errors

Postby cody » Wed May 13, 2009 2:56 pm

If you are getting an error like the following:

Code: Select all
File "/usr/local/lib/python2.6/site-packages/Editra/src/eclib/platebtn.py", line 150, in <lambda>
self.Bind(wx.EVT_PAINT, lambda evt: self.__DrawButton())
File "/usr/local/lib/python2.6/site-packages/Editra/src/eclib/platebtn.py", line 254, in __DrawButton
gc = wx.GCDC(dc)
File "/usr/local/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_gdi.py", line 5906, in __init__
_gdi_.GCDC_swiginit(self,_gdi_.new_GCDC(*args))
NotImplementedError: wxGCDC is not available on this platform.


This means that your wxWidgets build was not configured with the correct flags. Editra is tested against the official wxPython builds as done by wxpython.org. Many Linux distro's are missing an important step in their build processes for wxWidgets2.8.

During configure the following flag must be included

Code: Select all
--enable-graphics_ctx


I have worked with many Linux distro's to correct this issue, if you are experiencing this please file a request/bug report with the Linux distribution that you are using so that they can make compatible builds.
User avatar
cody
Site Admin
 
Posts: 1315
Joined: Mon Oct 09, 2006 2:49 am
Location: United States

Return to FAQS

Who is online

Users browsing this forum: No registered users and 1 guest

cron