Opened 12 years ago

Last modified 11 years ago

#32035 closed defect

wxwidgets - NotImplementedError: wx.GraphicsContext is not available on this platform. — at Version 1

Reported by: justjoheinz@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ryandesign@…, jwa@…
Port: py26-wxpython wxWidgets-python

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I am not sure which port exactly is causing the problem, the scenario is that I try to use a python programm which uses wxwdigets and I get the error:

NotImplementedError: wx.GraphicsContext is not available on this platform.

I found a bug report and a resolution for another program which can be seen here (nothing to do with macports): http://editra.org/forum/viewtopic.php?t=75

It seems that I need some variant of one of the many wxwidgets ports but I am not sure which one, or if it exists. I am happy to contribute more details if you send me the commands for the interesting debug information.

Change History (1)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… jwa@… added
Description: modified (diff)

The thread you reference says that a) graphics context should already be enabled and b) to force it to be enabled we could add --enable-graphics_ctx to the configure args. The latter is what was requested for wxWidgets-python in #31804 but it failed to build and we don't know how to make it succeed.

The above post also says the graphics context was not added until wxWidgets 2.8. Which wxWidgets port(s) are you using -- wxWidgets? wxWidgets26? wxgtk? wxWidgets-python?

Note: See TracTickets for help on using tickets.