[Python-modules-team] Bug#518150: Bug#518150: python-matplotlib-doc: matplotlib 'user_interfaces' wx examples don't work
morph at debian.org
Fri Mar 13 18:31:46 UTC 2009
sorry for the delay.
On Fri, Mar 6, 2009 at 08:48, Giacomo Boffi <giacomo.boffi at polimi.it> wrote:
> Sandro Tosi writes:
> about --- from wx import * ---
> > Mh, there is no reasons why "from <module> import *" should not work,
> > and indeed there is a bug already reported about it: #488532
> i have googled around, it seems that this problem was repeatedly
> reported to distributions and upstream, but never resolved
> the usual upstream reply is sort of
> "from * import *" is bad practice anyway,
> please do "import wx"
> about --- import wx.aui ---
> > This is because the default python wrapper on your machine is v2.6, on
> > 2.8 that module is present:
> i had both the 2.6 and the 2.8 wrappers, both automatically installed,
> and apparently python finds first the older one
> after i removed 2.6 and its reverse dependencies, the example file n.5
> works OK, python finding the wx.aui module
> in summary, i think that my bug is upstream, either in wxpython or in
The problem was that matplotlib requires wx2.8, but on debian when
both 2.6 and 2.8 are installed, 2.6 is chosed. I sent a patch upstream
to convert to "import wx" together with a way to choose wx2.8 (using
> i understand that "from wx import *" should work, but it seems that
> it's not going to work anytime soon
with wx2.8 it works as expected.
> may i suggest that you, speaking as the debian mantainer, could report
> to matplotlib developers the opportunity of modifying all the wx
> examples that do the "wrong" thing when importing wx? they are
That's what the patch I forged do. I attached here too, just in case
you want to look at and apply it locally.
Anyhow, I don't plan an upload to just fix these examples, so this bug
will be fixed when upstream will release a new version.
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 9890 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20090313/afde5205/attachment.patch
More information about the Python-modules-team