Newbie and debian user

   I am new (futur) of pylab, I use a debian sid

    > (unstable) with this source.list : deb
    > [1]http://anakonda.altervista.org/debian packages/ deb-src
    > [2]http://anakonda.altervista.org/debian sources/ I try it
    > few 2 mouths ago and it worked, I have just updated all
    > and now it does nit worked. Sorry if the answer is in
    > archive, I did'nt find it. I have this message with from
    > pylab import * :

This is a problem with your debian packaging system, and unfortunately
is outside our ability to help. I would report this to Vittorio, the
debian package maintainer.

gtk recently started using cairo as its rendering engine, and it
appears one of your package is linking to it but it is not provided, so
it looks like a debian dependency error.

JDH

    > ----------------------------------------------------------------------
    > ----- exceptions.ImportError Traceback (most recent call
    > last) /home/sgarcia/<console>
    > /usr/lib/python2.3/site-packages/pylab.py -3 from
    > matplotlib.pylab import *
    > /usr/lib/python2.3/site-packages/matplotlib/pylab.py 197
    > 198 from axes import Axes, PolarAxes
    --> 199 import backends
    > 200 from cbook import flatten, is_string_like,
    > exception_to_str, popd, \ 201 silent_list, iterable,
    > enumerate
    > /usr/lib/python2.3/site-packages/matplotlib/backends/__init__.py
    > 53 # a hack to keep old versions of ipython working with
    > mpl after bug 54 # fix #1209354 55 if 'IPython.Shell' in
    > sys.modules:
    ---> 56 new_figure_manager, draw_if_interactive, show =
    > pylab_setup() 57
    > /usr/lib/python2.3/site-packages/matplotlib/backends/__init__.py
    > in pylab_setup() 22 backend_name =
    > 'backend_'+backend.lower() 23 backend_mod =
    > __import__('matplotlib.backends.'+backend_name,
    ---> 24
    > globals(),locals(),[backend_name]) 25 26 # Things we
    > pull in from all backends
    > /usr/lib/python2.3/site-packages/matplotlib/backends/backend_gtkagg.py
    > 8 from matplotlib.figure import Figure 9 from backend_agg
    > import FigureCanvasAgg
    ---> 10 from backend_gtk import gtk, FigureManagerGTK,
    > FigureCanvasGTK,\ 11 show, draw_if_interactive,\ 12
    > error_msg_gtk, NavigationToolbar, PIXELS_PER_INCH,
    > backend_version, \
    > /usr/lib/python2.3/site-packages/matplotlib/backends/backend_gtk.py
    > 20 from matplotlib.backend_bases import RendererBase,
    > GraphicsContextBase, \ 21 FigureManagerBase,
    > FigureCanvasBase, NavigationToolbar2, cursors
    ---> 22 from matplotlib.backends.backend_gdk import RendererGDK,
    > FigureCanvasGDK 23 from matplotlib.cbook import
    > is_string_like, enumerate 24 from matplotlib.figure import
    > Figure
    > /usr/lib/python2.3/site-packages/matplotlib/backends/backend_gdk.py
    > 32 from matplotlib.backends._na_backend_gdk import
    > pixbuf_get_pixels_array 33 else:
    ---> 34 from matplotlib.backends._nc_backend_gdk import

···

   pixbuf_get_pixels_array 35 36 ImportError:

    > libpangocairo-1.0.so.0: Ne peut ouvrir le fichier d'objet
    > partag?: Aucun fichier ou r?pertoire de ce type Samuel --
    > Samuel GARCIA CNRS - UMR5020 Universite Claude Bernard
    > LYON 1 Laboratoire des Neurosciences et Systemes
    > Sensoriels 50, avenue Tony Garnier 69366 LYON Cedex 07 04
    > 37 28 74 64

    > -------------------------------------------------------
    > This SF.Net email is sponsored by: Power Architecture
    > Resource Center: Free content, downloads, discussions, and
    > more. http://solutions.newsforge.com/ibmarch.tmpl
    > _______________________________________________
    > Matplotlib-users mailing list
    > Matplotlib-users@lists.sourceforge.net
    > https://lists.sourceforge.net/lists/listinfo/matplotlib-users

    > References

    > 1. http://anakonda.altervista.org/debian
    > 2. http://anakonda.altervista.org/debian

While writing this email, I noticed that the 0.83.2 package has been pulled from the repository on anakonda. Samuel, try uninstalling and then re-installing python2.3-matplotlib. That will hopefull end up downgrading you to version 0.82, which I believe works fine under GTK.

This is a problem with your debian packaging system, and unfortunately
is outside our ability to help. I would report this to Vittorio, the
debian package maintainer.

I believe that there is a problem with the Debian package itself, rather than with Samuel's installation of Debian. I have been able to reproduce this problem on a machine running Debian sarge. I hadn't noticed it until now because I don't use the GTK backends:

kmcivor@...849...:~$ dpkg-query -l | fgrep python-matpl
ii python-matplot 0.83.2-2 python based plotting system in a style simi
ii python-matplot 0.83.2-2 python based plotting system (data package)
ii python-matplot 0.82-1 python based plotting system (documentation
kmcivor@...849...:~$ ldd /usr/lib/python2.3/site-packages/matplotlib/backends/_na_backend_gdk.so

fgrep pangocairo

         libpangocairo-1.0.so.0 => not found

gtk recently started using cairo as its rendering engine, and it
appears one of your package is linking to it but it is not provided, so
it looks like a debian dependency error.

The problem Samuel is having appeared on the debian-science mailing list about a week ago. At the time I couldn't figure out where the dependency on libpangocairo was coming from, but your comment about gtk made the light bulb go on.

According to the "search the contents of packages" function on Debian's packages page, there are no files containing the phrase "pangocairo" in any package in Debian sarge, testing, or sid. However, libpango-1.0 in Ubuntu Breezy Badger (their current testing distribution?) does contain libpangocairo and friends. My guess is that the package was built on a machine running Ubuntu testing/unstable.

Ken

···

On Oct 17, 2005, at 12:32 PM, John Hunter wrote: