Comment 3 for bug 366227

Revision history for this message
Chris (ikki-phoenix) wrote : RE: [Bug 366227] Re: impossible to open / import DXF in linux

Hi' I replaced the dxf_input.py by the one in the link you sent. I tried again to open the same file that caused the same error BUT the file was stored on an USB key so I copied it on the desktop to ensure that the bug couldn't come from the "location" or "device" and surprisingly inkscape was able to open it. As I launched Inkscape from a terminal here's what it "says" :

** (inkscape:7017): WARNING **: Malformed URI

I can't say now that I replaced the dxf_input.py file if it is because of the new one that it work or if the trick is that it doesn't want to load from a USB key...

I'll send you the dfx file I was trying to work with. Perhaps it should help to determine the problem.

Thx for being so reactive and for this great program !!!

Chris

> Date: Fri, 24 Apr 2009 22:07:11 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 366227] Re: impossible to open / import DXF in linux
>
> Attached is a modified version of the file dxf_input.py which should fix the problem. Could you tell me if this works?
> This has been committed to rev 21227
>
>
> ** Attachment added: "C:\Program Files\Inkscape\share\extensions\dxf_input.py"
> http://launchpadlibrarian.net/25942839/C%3A%5CProgram%20Files%5CInkscape%5Cshare%5Cextensions%5Cdxf_input.py
>
> ** Changed in: inkscape
> Status: New => Fix Committed
>
> --
> impossible to open / import DXF in linux
> https://bugs.launchpad.net/bugs/366227
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Inkscape: A Vector Drawing Tool: Fix Committed
>
> Bug description:
> Hi' I've just installed the latest Ubuntu 9.04 final on my computer. I've juste compiled the latest Inkscape 0.46+devel r21213.
>
> I just tried to import a DXF file and had 2 issues. In a first time there was a problem that I tried to fix with this command line :
>
> sudo make install |grep dxf
>
> here's what I got : (I'm french)
>
> /usr/bin/install -c 'dxf_input.py' '/usr/local/share/inkscape/extensions/dxf_input.py'
> /usr/bin/install -c 'dxf_outlines.py' '/usr/local/share/inkscape/extensions/dxf_outlines.py'
> /usr/bin/install -c 'dxf_templates.py' '/usr/local/share/inkscape/extensions/dxf_templates.py'
> /usr/bin/install -c 'ps2dxf.sh' '/usr/local/share/inkscape/extensions/ps2dxf.sh'
> /usr/bin/install -c -m 644 'dxf_input.inx' '/usr/local/share/inkscape/extensions/dxf_input.inx'
> /usr/bin/install -c -m 644 'dxf_outlines.inx' '/usr/local/share/inkscape/extensions/dxf_outlines.inx'
> /usr/bin/install -c -m 644 'dxf_output.inx' '/usr/local/share/inkscape/extensions/dxf_output.inx'
> dz.po: AVERTISSEMENT : Il manque le jeu de caractères dans l'en-tête.
> La conversion vers le jeu de caractères de l'utilisateur ne fonctionnera pas.
> zh_TW.po: AVERTISSEMENT : Il manque le jeu de caractères dans l'en-tête.
> La conversion vers le jeu de caractères de l'utilisateur ne fonctionnera pas.
> /usr/bin/install: ne peut évaluer `./dz.gmo': Aucun fichier ou dossier de ce type
> /usr/bin/install: ne peut évaluer `./zh_TW.gmo': Aucun fichier ou dossier de ce type
>
> And lastly here's the error reported by Inkscape :
>
> Traceback (most recent call last):
> File "/usr/local/share/inkscape/extensions/dxf_input.py", line 348, in <module>
> desc.text = '%s - scale = %f' % (args[0], scale)
> File "lxml.etree.pyx", line 833, in lxml.etree._Element.text.__set__ (src/lxml/lxml.etree.c:10968)
> File "apihelpers.pxi", line 581, in lxml.etree._setNodeText (src/lxml/lxml.etree.c:32878)
> File "apihelpers.pxi", line 1136, in lxml.etree._utf8 (src/lxml/lxml.etree.c:36998)
> ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes
>
> I hope this is not an already bug reported I've not found any thing on this
>
> Greatings,
>
> Chris

_________________________________________________________________
Inédit ! Des Emoticônes Déjantées! Installez les dans votre Messenger !
http://www.ilovemessenger.fr/Emoticones/EmoticonesDejantees.aspx