Bizarre ipython -pylab bug. Help?

Fernando Perez <fperez.net@...149...> writes:

Bug #349634 “Calender widget apears after matplotlib.pyplot impo...” : Bugs : IPython

is a really strange bug report we had from an ipython/pylab user on
Windows. I don't have the foggiest idea of how his opening of
matplotlib with Tk under Windows could open a calendar.

Wow, that's weird. Matplotlib bundles the dateutil library, which seems
to have some Windows-specific time-zone functionality - perhaps
something it does could trigger opening a calendar window?

One possible reason for weird stuff like this is the way Python searches
for modules. Say you have been experimenting with calendar stuff, and
have in your current directory (or somewhere on your search path) a file
named calendar.py. Then you import matplotlib, and matplotlib imports
dateutil.rrule, which in turn imports calendar... and your calendar.py
file gets executed, not the one shipped with Python.

···

--
Jouni K. Sepp�nen

OK, thanks for the info. I linked to this thread on the bug report,
the OP might track this kind of behavior down with this info.

Cheers,

f

···

On Wed, Apr 15, 2009 at 11:16 AM, Jouni K. Seppänen <jks@...278...> wrote:

One possible reason for weird stuff like this is the way Python searches
for modules. Say you have been experimenting with calendar stuff, and
have in your current directory (or somewhere on your search path) a file
named calendar.py. Then you import matplotlib, and matplotlib imports
dateutil.rrule, which in turn imports calendar... and your calendar.py
file gets executed, not the one shipped with Python.