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

Giacomo Boffi giacomo.boffi at polimi.it
Fri Mar 6 07:48:43 UTC 2009


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
matplotlib

i understand that "from wx import *" should work, but it seems that
it's not going to work anytime soon

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

user_interfaces/embedding_in_wx2.py
user_interfaces/embedding_in_wx2.py
user_interfaces/embedding_in_wx2.py
animation/dynamic_image_wxagg2.py

thank you
                                                                gb
-- 
Mangiate pure le vostre carote, noi mangeremo le nostre salsicce!
                                                   -- Claud,   in IHC

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.






More information about the Python-modules-team mailing list