On Mon, Jan 12, 2009 at 7:44 AM, Mauro Cavalcanti <mauro...@gmail.com> wrote:
> Dear ALL,
>
> I just found the following error when trying to run a very simple test
> MPL/Basemap script under Ubuntu Linux Intrepid. This does *not* happen
> when not importing MPL pyplot (for example, in a wxPython embedded
> app).
>
> Traceback (most recent call last):
>    from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK,
> FigureCanvasGTK,\
>  File 
> "/usr/lib/python2.5/site-packages/matplotlib-0.98.5.1-py2.5-linux-i686.egg/matplotlib/backends/backend_gtk.py",
> line 25, in <module>
>    from matplotlib.backends.backend_gdk import RendererGDK, FigureCanvasGDK
>  File 
> "/usr/lib/python2.5/site-packages/matplotlib-0.98.5.1-py2.5-linux-i686.egg/matplotlib/backends/backend_gdk.py",
> line 29, in <module>
>    from matplotlib.backends._backend_gdk import pixbuf_get_pixels_array
> ImportError: libffi.so.4: cannot open shared object file: No such file
> or directory
>
> Any hints??? I am near panic now...

No one ever made a dime by panicking :-)

Did you compile mpl yourself or are you using a prepackaged version?
If you are using the ubuntu package of mpl, this is likely a bug with
the package and should be reported to ubuntu.  If you compiled
yourself, what version are you using?  Can you attach the output of a
clean build process?

See::

  
http://matplotlib.sourceforge.net/faq/troubleshooting_faq.html#reporting-problems


Note that the problem appears in the gtk backend, so if it turns out
to be an ubuntu problem and you need a solution right away, you should
be able to use a different backend, eg tkagg, but please take the time
to report it to the ubuntu package maintainer if it has not been
already.  It looks like it is related to this debian bug

  http://osdir.com/ml/linux.debian.devel.python.modules/2008-05/msg00009.html

I've CCd Sandro (the debian, not the ubuntu, maintainter) who may have
more information.

JDH

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to