Skip to content Skip to sidebar Skip to footer

Getting A "notimplementederror" In Wxpython

I'm getting this error whenever I run my wxpython code. Traceback (most recent call last): File 'musicplayer.py', line 203, in MyPanel(frame, -1)

Solution 1:

The wxMediaCtrl is an optional part of the build, and it will automatically be excluded if wxWidgets' configure script was not able to finde the right dependent libraries or their -devel packages are not installed. When wxPython is built using a wxWigets without wxMediaCtrl then it creates a stub class that simply raises NotImplementedError if you try to use it.

Solution 2:

What version of wxPython?

On Linux, using python2.7 and wxPython 2.8.12.1, I went to my shell and started the python interpreter and issued some test commands:

python
>>>import wx.media>>>app = wx.App()>>>frm = wx.Frame(None)>>>mc = wx.media.MediaCtrl(frm, style=wx.SIMPLE_BORDER)>>>

No error, although it took about 20 seconds after hitting enter on that last line and getting the python prompt back. Can you do the same at your command shell and see if you still get the error, and if so try without the style argument?

Post a Comment for "Getting A "notimplementederror" In Wxpython"