[Python-modules-team] Bug#548874: Bug#548874: Bug#548874: matplotlib: figure() call fails. GTK seems not to recognise filetype of a .svg file

Sandro Tosi morph at debian.org
Wed Oct 7 09:17:50 UTC 2009


tags 548874 +unreproducible
thanks

On Tue, Sep 29, 2009 at 18:22, Jonas <wayne.stoerts at googlemail.com> wrote:
> Hi,
>
> Sorry for not providing the dependencies. That happened because they belong
> to python-matplotlib, not matplotlib itself.
> I found that the problem was caused by a missing gdk-pixbuf loader for SVG
> files.
> It is provided by librsvg2-common which i suggest do add to the dependencies.

I tried to replicate this problem in a clean chroot and only maplotlib
installed (and its dependencies of course) but the svg file is
generated correctly *without* any svg library installed.

The code I used is:

import matplotlib as mpl
mpl.use('SVG')
import matplotlib.pyplot as plt
plt.figure()
plt.plot([1,2])
plt.savefig('test.svg')


the mpl version is:

python -c "import matplotlib as mpl ; print mpl.__version__"
0.99.0

and the suggested lib is not installed (attached the list of packages
installed on the chroot):

dpkg -l librsvg2-common | tail -1
un  librsvg2-common                  <none>            (no description
available)

So I'm unsure it's a bug at all: maybe something else broken in your system?

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
-------------- next part --------------
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                             Version           Description
+++-================================-=================-============================================
ii  adduser                          3.111             add and remove users and groups
ii  apt                              0.7.24            Advanced front-end for dpkg
ii  apt-utils                        0.7.24            APT utility programs
ii  aptitude                         0.4.11.11-1+b2    terminal-based package manager
ii  base-files                       5.0.0             Debian base system miscellaneous files
ii  base-passwd                      3.5.22            Debian base system master password and group
ii  bash                             4.0-7             The GNU Bourne Again SHell
ii  bsdmainutils                     6.1.11            collection of more utilities from FreeBSD
ii  bsdutils                         1:2.16.1-3        Basic utilities from 4.4BSD-Lite
ii  coreutils                        7.5-6             GNU core utilities
ii  cpio                             2.10-1            GNU cpio -- a program to manage archives of 
ii  cpp                              4:4.3.3-9         The GNU C preprocessor (cpp)
ii  cpp-4.3                          4.3.4-4           The GNU C preprocessor
ii  cron                             3.0pl1-106        process scheduling daemon
ii  dash                             0.5.5.1-3         POSIX-compliant shell
ii  dbus                             1.2.16-2          simple interprocess messaging system
ii  debconf                          1.5.27            Debian configuration management system
ii  debconf-i18n                     1.5.27            full internationalization support for debcon
ii  debian-archive-keyring           2009.01.31        GnuPG archive keys of the Debian archive
ii  debianutils                      3.2.1             Miscellaneous utilities specific to Debian
ii  defoma                           0.11.10-1         Debian Font Manager -- automatic font config
ii  dhcp3-client                     3.1.2p1-1         DHCP client
ii  dhcp3-common                     3.1.2p1-1         common files used by all the dhcp3* packages
ii  diffutils                        1:2.8.1-18        File comparison utilities
ii  dmidecode                        2.9-1.1           Dump Desktop Management Interface data
ii  dpkg                             1.15.4            Debian package management system
ii  e2fslibs                         1.41.9-1          ext2/ext3/ext4 file system libraries
ii  e2fsprogs                        1.41.9-1          ext2/ext3/ext4 file system utilities
ii  ed                               1.4-1             The classic UNIX line editor
ii  file                             5.03-2            Determines file type using "magic" numbers
ii  findutils                        4.4.2-1           utilities for finding files--find, xargs
ii  fontconfig                       2.6.0-4           generic font configuration library - support
ii  fontconfig-config                2.6.0-4           generic font configuration library - configu
ii  gcc-4.2-base                     4.2.4-6           The GNU Compiler Collection (base package)
ii  gcc-4.3-base                     4.3.4-4           The GNU Compiler Collection (base package)
ii  gcc-4.4-base                     4.4.1-5           The GNU Compiler Collection (base package)
ii  gnupg                            1.4.10-2          GNU privacy guard - a free PGP replacement
ii  gpgv                             1.4.10-2          GNU privacy guard - signature verification t
ii  grep                             2.5.4-4           GNU grep, egrep and fgrep
ii  groff-base                       1.20.1-6          GNU troff text-formatting system (base syste
ii  gzip                             1.3.12-8          GNU compression utilities
ii  hicolor-icon-theme               0.10-2            default fallback theme for FreeDesktop.org i
ii  hostname                         3.00              utility to set/show the host name or domain 
ii  ifupdown                         0.6.9             high level tools to configure network interf
ii  info                             4.13a.dfsg.1-5    Standalone GNU Info documentation browser
ii  initscripts                      2.87dsf-6         scripts for initializing and shutting down t
ii  insserv                          1.12.0-14         Tool to organize boot sequence using LSB ini
ii  install-info                     4.13a.dfsg.1-5    Manage installed documentation in info forma
ii  iproute                          20090324-1        networking and traffic control tools
ii  iptables                         1.4.4-2           administration tools for packet filtering an
ii  iputils-ping                     3:20071127-2      Tools to test the reachability of network ho
ii  libacl1                          2.2.48-1          Access control list shared library
ii  libatk1.0-0                      1.28.0-1          The ATK accessibility toolkit
ii  libatk1.0-data                   1.28.0-1          Common files for the ATK accessibility toolk
ii  libattr1                         1:2.4.44-1        Extended attribute shared library
ii  libavahi-client3                 0.6.25-1          Avahi client library
ii  libavahi-common-data             0.6.25-1          Avahi common data files
ii  libavahi-common3                 0.6.25-1          Avahi common library
ii  libblas3gf                       1.2-2             Basic Linear Algebra Subroutines 3, shared l
ii  libblkid1                        2.16.1-3          block device id library
ii  libbz2-1.0                       1.0.5-3           high-quality block-sorting file compressor l
ii  libc-bin                         2.9-27            GNU C Library: Binaries
ii  libc6                            2.9-27            GNU C Library: Shared libraries
ii  libcairo2                        1.8.8-2           The Cairo 2D vector graphics library
ii  libcomerr2                       1.41.9-1          common error description library
ii  libcups2                         1.4.1-4           Common UNIX Printing System(tm) - Core libra
ii  libcwidget3                      0.5.13-1          high-level terminal interface library for C+
ii  libdatrie1                       0.2.2-1           Double-array trie library
ii  libdb4.5                         4.5.20-13         Berkeley v4.5 Database Libraries [runtime]
ii  libdb4.7                         4.7.25-8          Berkeley v4.7 Database Libraries [runtime]
ii  libdb4.8                         4.8.24-1          Berkeley v4.8 Database Libraries [runtime]
ii  libdbus-1-3                      1.2.16-2          simple interprocess messaging system
ii  libdevmapper1.02.1               2:1.02.38-1       The Linux Kernel Device Mapper userspace lib
ii  libdirectfb-1.2-0                1.2.8-4           direct frame buffer graphics - shared librar
ii  libdrm-intel1                    2.4.13-1          Userspace interface to intel-specific kernel
ii  libdrm2                          2.4.13-1          Userspace interface to kernel DRM services -
ii  libept0                          0.5.29            High-level library for managing Debian packa
ii  libexpat1                        2.0.1-4           XML parsing C library - runtime library
ii  libffi5                          3.0.7-2           Foreign Function Interface library runtime
ii  libfont-freetype-perl            0.03-1            Read font files and render glyphs from Perl 
ii  libfontconfig1                   2.6.0-4           generic font configuration library - runtime
ii  libfontenc1                      1:1.0.4-3         X11 font encoding library
ii  libfreetype6                     2.3.9-5           FreeType 2 font engine, shared library files
ii  libgcc1                          1:4.4.1-5         GCC support library
ii  libgcrypt11                      1.4.4-4           LGPL Crypto library - runtime library
ii  libgdbm3                         1.8.3-6           GNU dbm database routines (runtime version)
ii  libgfortran3                     4.4.1-5           Runtime library for GNU Fortran applications
ii  libgirepository1.0-0             0.6.5-2           Library for handling GObject introspection d
ii  libgl1-mesa-dri                  7.6-1             A free implementation of the OpenGL API -- D
ii  libgl1-mesa-glx                  7.6-1             A free implementation of the OpenGL API -- G
ii  libglade2-0                      1:2.6.4-1         library to load .glade files at runtime
ii  libglib2.0-0                     2.22.1-1          The GLib library of C routines
ii  libglib2.0-data                  2.22.1-1          Common files for GLib library
ii  libgmp3c2                        2:4.3.1+dfsg-3    Multiprecision arithmetic library
ii  libgnutls26                      2.8.4-1           the GNU TLS library - runtime library
ii  libgpg-error0                    1.6-1             library for common error values and messages
ii  libgssapi-krb5-2                 1.7dfsg~beta3-1   MIT Kerberos runtime libraries - krb5 GSS-AP
ii  libgtk2.0-0                      2.18.1-1          The GTK+ graphical user interface library
ii  libgtk2.0-bin                    2.18.1-1          The programs for the GTK+ graphical user int
ii  libgtk2.0-common                 2.18.1-1          Common files for the GTK+ graphical user int
ii  libice6                          2:1.0.5-1         X11 Inter-Client Exchange library
ii  libjasper1                       1.900.1-6         The JasPer JPEG-2000 runtime library
ii  libjpeg62                        6b-15             The Independent JPEG Group's JPEG runtime li
ii  libk5crypto3                     1.7dfsg~beta3-1   MIT Kerberos runtime libraries - Crypto Libr
ii  libkeyutils1                     1.2-12            Linux Key Management Utilities (library)
ii  libkrb5-3                        1.7dfsg~beta3-1   MIT Kerberos runtime libraries
ii  libkrb5support0                  1.7dfsg~beta3-1   MIT Kerberos runtime libraries - Support lib
ii  liblapack3gf                     3.2.1-1           library of linear algebra routines 3 - share
ii  liblocale-gettext-perl           1.05-6            Using libc functions for internationalizatio
ii  libmagic1                        5.03-2            File type determination library using "magic
ii  libmpfr1ldbl                     2.4.1-2           multiple precision floating-point computatio
ii  libncurses5                      5.7+20090803-2    shared libraries for terminal handling
ii  libncursesw5                     5.7+20090803-2    shared libraries for terminal handling (wide
ii  libnewt0.52                      0.52.10-4         Not Erik's Windowing Toolkit - text mode win
ii  libpam-modules                   1.1.0-4           Pluggable Authentication Modules for PAM
ii  libpam-runtime                   1.1.0-4           Runtime support for the PAM library
ii  libpam0g                         1.1.0-4           Pluggable Authentication Modules library
ii  libpango1.0-0                    1.26.0-1          Layout and rendering of internationalized te
ii  libpango1.0-common               1.26.0-1          Modules and configuration files for the Pang
ii  libpcre3                         7.8-2             Perl 5 Compatible Regular Expression Library
ii  libpixman-1-0                    0.16.2-1          pixel-manipulation library for X and cairo
ii  libpng12-0                       1.2.39-1          PNG library - runtime
ii  libpopt0                         1.14-4            lib for parsing cmdline parameters
ii  libreadline5                     5.2-6             GNU readline and history libraries, run-time
ii  libreadline6                     6.0-5             GNU readline and history libraries, run-time
ii  libselinux1                      2.0.85-4          SELinux runtime shared libraries
ii  libsepol1                        2.0.38-2          SELinux library for manipulating binary secu
ii  libsigc++-2.0-0c2a               2.0.18-2          type-safe Signal Framework for C++ - runtime
ii  libslang2                        2.2.1-1           The S-Lang programming library - runtime ver
ii  libsm6                           2:1.1.1-1         X11 Session Management library
ii  libsqlite3-0                     3.6.18-1          SQLite 3 shared library
ii  libss2                           1.41.9-1          command-line interface parsing library
ii  libssl0.9.8                      0.9.8k-5          SSL shared libraries
ii  libstdc++6                       4.4.1-5           The GNU Standard C++ Library v3
ii  libsysfs2                        2.1.0-6           interface library to sysfs
ii  libtasn1-3                       2.3-1             Manage ASN.1 structures (runtime)
ii  libtext-charwidth-perl           0.04-6            get display widths of characters on the term
ii  libtext-iconv-perl               1.7-2             converts between character sets in Perl
ii  libtext-wrapi18n-perl            0.06-7            internationalized substitute of Text::Wrap
ii  libthai-data                     0.1.12-1          Data files for Thai language support library
ii  libthai0                         0.1.12-1          Thai language support library
ii  libtiff4                         3.9.1-1           Tag Image File Format (TIFF) library
ii  libts-0.0-0                      1.0-7             touch screen library
ii  libunwind7                       0.99-0.2          A library to determine the call-chain of a p
ii  libusb-0.1-4                     2:0.1.12-13       userspace USB programming library
ii  libutempter0                     1.1.5-2           A privileged helper for utmp/wtmp updates (r
ii  libuuid1                         2.16.1-3          Universally Unique ID library
ii  libvolume-id1                    0.141-2           libvolume_id shared library
ii  libwrap0                         7.6.q-18          Wietse Venema's TCP wrappers library
ii  libx11-6                         2:1.2.2-1         X11 client-side library
ii  libx11-data                      2:1.2.2-1         X11 client-side library
ii  libxapian15                      1.0.16-3          Search engine library
ii  libxau6                          1:1.0.5-1         X11 authorisation library
ii  libxaw7                          2:1.0.6-1         X11 Athena Widget library
ii  libxcb-render-util0              0.3.6-1           utility libraries for X C Binding -- render-
ii  libxcb-render0                   1.4-1             X C Binding, render extension
ii  libxcb1                          1.4-1             X C Binding
ii  libxcomposite1                   1:0.4.0-4         X11 Composite extension library
ii  libxcursor1                      1:1.1.9-1         X cursor management library
ii  libxdamage1                      1:1.1.1-4         X11 damaged region extension library
ii  libxdmcp6                        1:1.0.2-3         X11 Display Manager Control Protocol library
ii  libxext6                         2:1.0.4-1         X11 miscellaneous extension library
ii  libxfixes3                       1:4.0.3-2         X11 miscellaneous 'fixes' extension library
ii  libxfont1                        1:1.4.0-2         X11 font rasterisation library
ii  libxft2                          2.1.13-3          FreeType-based font drawing library for X
ii  libxi6                           2:1.2.1-2         X11 Input extension library
ii  libxinerama1                     2:1.0.3-2         X11 Xinerama extension library
ii  libxml2                          2.7.5.dfsg-1      GNOME XML library
ii  libxmu6                          2:1.0.4-2         X11 miscellaneous utility library
ii  libxmuu1                         2:1.0.4-2         X11 miscellaneous micro-utility library
ii  libxpm4                          1:3.5.7-2         X11 pixmap library
ii  libxrandr2                       2:1.3.0-2         X11 RandR extension library
ii  libxrender1                      1:0.9.4-2         X Rendering Extension client library
ii  libxss1                          1:1.1.3-1         X11 Screen Saver extension library
ii  libxt6                           1:1.0.6-1         X11 toolkit intrinsics library
ii  libxtst6                         2:1.0.3-1         X11 Testing -- Resource extension library
ii  libxv1                           2:1.0.4-1         X11 Video extension library
ii  libxxf86dga1                     2:1.0.2-1         X11 Direct Graphics Access extension library
ii  libxxf86vm1                      1:1.0.2-1         X11 XFree86 video mode extension library
ii  login                            1:4.1.4.2-1       system login tools
ii  logrotate                        3.7.8-4           Log rotation utility
ii  lsb-base                         3.2-23            Linux Standard Base 3.2 init script function
ii  lzma                             4.43-14           Compression method of 7z format in 7-Zip pro
ii  make                             3.81-6            An utility for Directing compilation.
ii  man-db                           2.5.6-3           on-line manual pager
ii  manpages                         3.22-1            Manual pages about using a GNU/Linux system
ii  mawk                             1.3.3-15          a pattern scanning and text processing langu
ii  mime-support                     3.46-1            MIME files 'mime.types' & 'mailcap', and sup
ii  module-init-tools                3.10-3            tools for managing Linux kernel modules
ii  mount                            2.16.1-3          Tools for mounting and manipulating filesyst
ii  nano                             2.0.9-2           free curses-based text editor, inspired by P
ii  ncurses-base                     5.7+20090803-2    basic terminal type definitions
ii  ncurses-bin                      5.7+20090803-2    terminal-related programs and man pages
ii  net-tools                        1.60-23           The NET-3 networking toolkit
ii  netbase                          4.37              Basic TCP/IP networking system
ii  netcat-traditional               1.10-38           TCP/IP swiss army knife
ii  passwd                           1:4.1.4.2-1       change and administer password and group dat
ii  perl                             5.10.1-5          Larry Wall's Practical Extraction and Report
ii  perl-base                        5.10.1-5          minimal Perl system
ii  perl-modules                     5.10.1-5          Core Perl modules
ii  procps                           1:3.2.8-1.2       /proc file system utilities
ii  python                           2.5.4-2           An interactive high-level object-oriented la
ii  python-antlr                     2.7.7-14          language tool for constructing recognizers, 
ii  python-cairo                     1.8.6-1           Python bindings for the Cairo vector graphic
ii  python-central                   0.6.11            register and build utility for Python packag
ii  python-dateutil                  1.4.1-3           powerful extensions to the standard datetime
ii  python-excelerator               0.6.3a-4          module for reading/writing Excel spreadsheet
ii  python-glade2                    2.16.0-1          GTK+ bindings: Glade support
ii  python-gobject                   2.20.0-1          Python bindings for the GObject library
ii  python-gtk2                      2.16.0-1          Python bindings for the GTK+ widget set
ii  python-matplotlib                0.99.0-1          Python based plotting system in a style simi
ii  python-matplotlib-data           0.99.0-1          Python based plotting system (data package)
ii  python-minimal                   2.5.4-2           A minimal subset of the Python language (def
ii  python-numpy                     1:1.3.0-3         Numerical Python adds a fast array facility 
ii  python-pyparsing                 1.5.2-1           Python parsing module
ii  python-support                   1.0.3             automated rebuilding support for Python modu
ii  python-tz                        2009l-1           Python version of the Olson timezone databas
ii  python2.5                        2.5.4-2           An interactive high-level object-oriented la
ii  python2.5-minimal                2.5.4-2           A minimal subset of the Python language (ver
ii  readline-common                  6.0-5             GNU readline and history libraries, common f
ii  rsyslog                          4.4.1-1           enhanced multi-threaded syslogd
ii  sed                              4.2.1-3           The GNU sed stream editor
ii  sensible-utils                   0.0.1             Utilities for sensible alternative selection
ii  sgml-base                        1.26              SGML infrastructure and SGML catalog file su
ii  shared-mime-info                 0.60-2            FreeDesktop.org shared MIME database and spe
ii  sysv-rc                          2.87dsf-6         System-V-like runlevel change mechanism
ii  sysvinit                         2.87dsf-6         System-V-like init utilities
ii  sysvinit-utils                   2.87dsf-6         System-V-like utilities
ii  tar                              1.22-2            GNU version of the tar archiving utility
ii  tasksel                          2.80              Tool for selecting tasks for installation on
ii  tasksel-data                     2.80              Official tasks used for installation of Debi
ii  tcl8.5                           8.5.7-1           Tcl (the Tool Command Language) v8.5 - run-t
ii  tk8.5                            8.5.7-1           Tk toolkit for Tcl and X11, v8.5 - run-time 
ii  traceroute                       2.0.12-3          Traces the route taken by packets over an IP
ii  tsconf                           1.0-7             touch screen library common files
ii  ttf-dejavu                       2.30-1            Metapackage to pull in ttf-dejavu-core and t
ii  ttf-dejavu-core                  2.30-1            Vera font family derivate with additional ch
ii  ttf-dejavu-extra                 2.30-1            Vera font family derivate with additional ch
ii  tzdata                           2009n-1           time zone and daylight-saving time data
ii  ucf                              3.0022            Update Configuration File: preserve user cha
ii  udev                             146-3             /dev/ and hotplug management daemon
ii  util-linux                       2.16.1-3          Miscellaneous system utilities
ii  vim-common                       2:7.2.245-2       Vi IMproved - Common files
ii  vim-tiny                         2:7.2.245-2       Vi IMproved - enhanced vi editor - compact v
ii  wget                             1.11.4-4          retrieves files from the web
ii  whiptail                         0.52.10-4         Displays user-friendly dialog boxes from she
ii  x-ttcidfont-conf                 32                TrueType and CID fonts configuration for X
ii  x11-common                       1:7.4+4           X Window System (X.Org) infrastructure
ii  x11-utils                        7.4+1             X11 utilities
ii  xbitmaps                         1.0.1-2           Base X bitmaps
ii  xfonts-encodings                 1:1.0.2-3         Encodings for X.Org fonts
ii  xfonts-utils                     1:7.4+2           X Window System font utility programs
ii  xml-core                         0.12              XML infrastructure and XML catalog file supp
ii  xterm                            248-1             X terminal emulator
ii  zlib1g                           1:1.2.3.3.dfsg-15 compression library - runtime


More information about the Python-modules-team mailing list