Ah, right. There was indeed new.pyc file in folder I was working in.
Thanks
On Sat, May 25, 2013 at 9:47 PM, Christoph Gohlke <cgoh...@uci.edu> wrote:
> On 5/25/2013 12:37 PM, klo uo wrote:
> > Out of the blue, I started getting this messages while plotting with MPL
> > 1.2.1:
> >
> > ========================================
> > Traceback (most recent call last):
> > File
> > "C:\Python27\lib\site-packages\matplotlib\backends\backend_qt4.py", line
> > 244, in mouseMoveEvent
> > FigureCanvasBase.motion_notify_event( self, x, y )
> > File "C:\Python27\lib\site-packages\matplotlib\backend_bases.py",
> > line 1724, in motion_notify_event
> > self.callbacks.process(s, event)
> > File "C:\Python27\lib\site-packages\matplotlib\cbook.py", line 343,
> > in process
> > proxy(*args, **kwargs)
> > File "C:\Python27\lib\site-packages\matplotlib\cbook.py", line 215,
> > in __call__
> > mtd = new.instancemethod(self.func, self.inst(), self.klass)
> > AttributeError: 'module' object has no attribute 'instancemethod'
> > ========================================
> >
> > I didn't install any new package or change my Python installation in any
> > way, which makes this hard for me to solve. The message appears when I
> > move my mouse pointer inside plot window. I first removed matplotlibrc
> > from my "home" folder, and it happens again regardless backend changed
> > this way from wx to tk (which is default). I set backend to qt4 also,
> > but it's just the same.
> >
> > Any ideas?
> >
>
> There is likely a `new` module in sys.path that shadows Python's builtin
> new module. Add a `import new;print(new.__file__)` statement at the top
> of your script. It should output 'X:\\Python27\\lib\\new.pyc'
>
> Christoph
>
>
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users