[Python-modules-team] Bug#518150: Bug#518150: python-matplotlib-doc: matplotlib 'user_interfaces' wx examples don't work

Sandro Tosi morph at debian.org
Thu Mar 5 20:26:39 UTC 2009

Hello Giacomo,

On Wed, Mar 4, 2009 at 13:00, giacomo boffi <boffi at stru.polimi.it> wrote:
> Package: python-matplotlib-doc
> Version: 0.98.3-5
> Severity: normal
> all the examples about integration between matplotlib and wx
> applications are broken --- the broken files are
> /usr/share/doc/python-matplotlib-doc/examples/user_interfaces/embedding_in_wx?.py
> in particular, items ...wx{2,3,4}.py contain a "from wx import *" that
> fails with the error message
>        AttributeError: 'module' object has no attribute '__DocFilter'
> afaict, that error is well known, and it is recommended to use only
> "import wx" in wx applications

Mh, there is no reasons why "from <module> import *" should not work,
and indeed there is a bug already reported about it: #488532

> the example ...wx5.py tries to import a module wx.aui that's not found on my
> system, the error is
>        ImportError: No module named aui
> thank you

This is because the default python wrapper on your machine is v2.6, on
2.8 that module is present:

$ ls /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/aui* -1

I don't think these are bugs in mpl; let me know what you're thinking.

Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

More information about the Python-modules-team mailing list