Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56546 - Skencil can't find xml.sax (saxlib, saxexts) when opening an SVG made from another program
Summary: Skencil can't find xml.sax (saxlib, saxexts) when opening an SVG made from an...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-09 09:09 UTC by Adam Tenderholt
Modified: 2004-12-25 03:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
SVG that skencil is unable to open (test.svg,15.14 KB, image/svg+xml)
2004-07-09 09:10 UTC, Adam Tenderholt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Tenderholt 2004-07-09 09:09:05 UTC
Using Skencil version 0.6.16, I get an error when I try to open an SVG made using inkscape (version 0.37):

When importing plugin svgloader
Traceback (most recent call last):
  File "/usr/lib/skencil-0.6.16/Sketch/Base/plugins.py", line 157, in __call__
    module = self.load_module()
  File "/usr/lib/skencil-0.6.16/Sketch/Base/plugins.py", line 83, in load_module
    desc)
  File "/usr/lib/skencil-0.6.16/Sketch/../Plugins/Filters/svgloader.py", line 52, in ?
    from xml.sax import saxlib, saxexts
ImportError: cannot import name saxlib

It also says I need the Python XML libraries installed. I have python 2.3.3-r1 with pyxml 0.8.3 installed. I don't have PyXML-py21 installed (0.8.1), which I assume is for older versions of python.

Attached is the SVG I'm trying to open with skencil.

Reproducible: Always
Steps to Reproduce:
1. Start skencil from the command line
2. Open test.svg


Actual Results:  
Error given above is listed. 

Expected Results:  
 

$ emerge info 
Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, 
glibc-2.3.3.20040420-r0,2.3.2-r9, 2.6.4) 
================================================================= 
System uname: 2.6.4 i686 AMD Athlon(tm) XP 2200+ 
Gentoo Base System version 1.4.16 
Autoconf: sys-devel/autoconf-2.59-r3,sys-devel/autoconf-2.58-r1 
Automake: sys-devel/automake-1.8.3 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="no" 
CFLAGS="-march=athlon-xp -Os -fomit-frame-pointer" 
CHOST="i486-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=athlon-xp -Os -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/home/adam/portage" 
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" 
USE="3dnow X alsa apm arts avi berkdb bonobo cdr composite crypt cups dvd 
encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java 
jpeg kde libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls 
objprelink oggvorbis ooo-kde opengl oss pam pdflib perl png python qt 
quicktime readline sdl slang spell sse ssl svga tcltk tcpd tetex truetype x86 
xml2 xmms xv zlib"
Comment 1 Adam Tenderholt 2004-07-09 09:10:05 UTC
Created attachment 35065 [details]
SVG that skencil is unable to open
Comment 2 Hanno Böck gentoo-dev 2004-12-23 05:48:53 UTC
I've testet it with pyxml installed and can open the file.
I've added pyxml to the dependencies of skencil. Can you test if it still breaks for you?
Comment 3 Hanno Böck gentoo-dev 2004-12-25 03:29:03 UTC
Please re-open if this is still an issue.