Thanks for the tip, but as you and John suggested I tried a
> new clean installation (both for matplotlib - removing the
> site-packages and /usr/share matplotlib dir - and ipython)
> but the small test I sent you still react the same. The
> specific import command:
> from matplotlib.backends.backend_ps import FigureCanvasPS
> does indeed give an ImportError:
> ImportError: cannot import name FigureCanvasPS
> not sure what to do now. Thanks for any input there!
Strange indeed. Issue these commands and let me know what you find
>>> import matplotlib.backends.backend_ps
>>> matplotlib.__file__
'/usr/lib/python2.4/site-packages/matplotlib/__init__.pyc'
>>> matplotlib.backends.backend_ps.__file__
'/usr/lib/python2.4/site-packages/matplotlib/backends/backend_ps.pyc'
>>> import matplotlib
>>> matplotlib.__version__
'0.82'
>>> matplotlib.__file__
'/usr/lib/python2.4/site-packages/matplotlib/__init__.pyc'
Also, what do these commands from the unix shell return (substituting
in your path to backend_ps.py)
peds-pc311:~> md5sum /usr/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py
2bb2161d70c11f56e803d7749b4fe05a /usr/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py
peds-pc311:~> grep '^class FigureCanvas' /usr/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py
class FigureCanvasPS(FigureCanvasBase):
The only things I can think of are
1) you have an errant copy of matplotlib.backends.backend_ps
somewhere in your path
2) you have a corrupted backend_ps (hence the md5sum check)
3) You did not successfully remove site-packages/matplotlib and have
a corrupt install.
JDH
followed what you suggested, everything was fine until the 'grep' : for some obscure reason every new install produced an empty (0 byte) backend_ps.py file (I think this may have come from a previously interrupted 'build'). I therefore erased the original matplotlib source dir (as well as the installed ones), and redetared the archive starting from scratch..
It works...
thanks a lot for the support!!!!
Eric
John Hunter wrote:
···
"Eric" == Eric Emsellem <emsellem@...419...> writes:
> Thanks for the tip, but as you and John suggested I tried a
> new clean installation (both for matplotlib - removing the
> site-packages and /usr/share matplotlib dir - and ipython)
> but the small test I sent you still react the same. The
> specific import command:
> from matplotlib.backends.backend_ps import FigureCanvasPS
> does indeed give an ImportError:
> ImportError: cannot import name FigureCanvasPS
> not sure what to do now. Thanks for any input there!
Strange indeed. Issue these commands and let me know what you find
>>> import matplotlib.backends.backend_ps
>>> matplotlib.__file__
'/usr/lib/python2.4/site-packages/matplotlib/__init__.pyc'
>>> matplotlib.backends.backend_ps.__file__
'/usr/lib/python2.4/site-packages/matplotlib/backends/backend_ps.pyc'
>>> import matplotlib
>>> matplotlib.__version__
'0.82'
>>> matplotlib.__file__
'/usr/lib/python2.4/site-packages/matplotlib/__init__.pyc'
Also, what do these commands from the unix shell return (substituting
in your path to backend_ps.py)
peds-pc311:~> md5sum /usr/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py
2bb2161d70c11f56e803d7749b4fe05a /usr/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py
peds-pc311:~> grep '^class FigureCanvas' /usr/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py
class FigureCanvasPS(FigureCanvasBase):
The only things I can think of are
1) you have an errant copy of matplotlib.backends.backend_ps
somewhere in your path
2) you have a corrupted backend_ps (hence the md5sum check)
3) You did not successfully remove site-packages/matplotlib and have
a corrupt install.
JDH
--
Observatoire de Lyon emsellem@...419...
9 av. Charles-Andre tel: +33 4 78 86 83 84
69561 Saint-Genis Laval Cedex fax: +33 4 78 86 83 86
France http://www-obs.univ-lyon1.fr/eric.emsellem