problem with opening a file
Hi! I have a problem with Dia sofware. When i want to open svg file, Dia says: PyDia Error (../../../plug-ins/python/diamodule.c:295): type 'exceptions.NotImplementedError'NotImplementedError('Unknown unit Q',)Traceback (most recent call last): File /usr/share/dia/python/diasvg_import.py, line 717, in import_svg imp.Parse(f.read()) File /usr/share/dia/python/diasvg_import.py, line 658, in Parse p.Parse(sData) File /usr/share/dia/python/diasvg_import.py, line 632, in start_element _eval(s, locals()) File /usr/share/dia/python/diasvg_import.py, line 78, in _eval return eval (s, {'__builtins__' : None }, _locals) File string, line 1, in module File /usr/share/dia/python/diasvg_import.py, line 409, in d xc = Scaled(sp[j]); yc = Scaled(sp[j+1]) File /usr/share/dia/python/diasvg_import.py, line 65, in Scaled raise NotImplementedError(Unknown unit %s %s % (s[:-2], s[-2:])) What should I do with this error? -- With best wishes, Irina ___ dia-list mailing list dia-list@gnome.org https://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia
Re: problem with opening a file
On 07/07/2014 05:56 PM, Ирина Тетеревкова wrote: Hi! I have a problem with Dia sofware. When i want to open svg file, Dia says: PyDia Error (../../../plug-ins/python/diamodule.c:295): type 'exceptions.NotImplementedError'NotImplementedError('Unknown unit Q',)Traceback (most recent call last): File /usr/share/dia/python/diasvg_import.py, line 717, in import_svg imp.Parse(f.read()) File /usr/share/dia/python/diasvg_import.py, line 658, in Parse p.Parse(sData) File /usr/share/dia/python/diasvg_import.py, line 632, in start_element _eval(s, locals()) File /usr/share/dia/python/diasvg_import.py, line 78, in _eval return eval (s, {'__builtins__' : None }, _locals) File string, line 1, in module File /usr/share/dia/python/diasvg_import.py, line 409, in d xc = Scaled(sp[j]); yc = Scaled(sp[j+1]) File /usr/share/dia/python/diasvg_import.py, line 65, in Scaled raise NotImplementedError(Unknown unit %s %s % (s[:-2], s[-2:])) What should I do with this error? Can we have a look at the SVG file? It's hard to tell this way. As an idea, look if your file is really a SVG one, or is an ilustrator file. Dima. ___ dia-list mailing list dia-list@gnome.org https://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia
Re: problem with opening a file
At 07.07.2014 16:56, Ирина Тетеревкова wrote: Hi! I have a problem with Dia sofware. When i want to open svg file, Dia says: PyDia Error (../../../plug-ins/python/diamodule.c:295): type 'exceptions.NotImplementedError'NotImplementedError('Unknown unit Q',)Traceback (most recent call last): [...] What should I do with this error? If you would like throrough analysis attaching the file in question would always be a good idea. Also giving the Dia version exhibiting the problem could help. The message indicates to me that your SVG contains pathes with Qubic curves. This is not yet supported with a released version of Dia but with the development version [1]. Still you could try to load your SVG with the other SVG importer (explicetly selecting Scalable Vector Graphics (*.svg) in the file open dialog. But of course the result would not be completely correct. HTH, Hans [1] https://git.gnome.org/browse/dia/commit/?id=30aab3fcecbb7dc2f79d7e5eb0460a4fbf03369f Hans at Breuer dot Org --- Tell me what you need, and I'll tell you how to get along without it.-- Dilbert ___ dia-list mailing list dia-list@gnome.org https://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia