After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 172105 - sample SVG file wont open, tried both importers
sample SVG file wont open, tried both importers
Status: RESOLVED DUPLICATE of bug 108502
Product: dia
Classification: Other
Component: import
0.94
Other Linux
: Normal normal
: ---
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2005-03-30 14:41 UTC by Alan Horkan
Modified: 2005-03-30 15:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
svg produced by karbon 14, drawing is of a single a red square (637 bytes, application/octet-stream)
2005-03-30 14:42 UTC, Alan Horkan
Details

Description Alan Horkan 2005-03-30 14:41:00 UTC
a relatively simple file produced using karbon14 (a KDE vector graphic program)
could not be opened correctly by Dia (other files from the same program did open
corrrectly).  I tried both the built in and python versions of the importer,
neither worked and only the Python importer gave an error message.
Comment 1 Alan Horkan 2005-03-30 14:42:17 UTC
Created attachment 39438 [details]
svg produced by karbon 14, drawing is of a single a red square
Comment 2 Alan Horkan 2005-03-30 15:27:20 UTC
Error message produced by diasvg the python "SVG plain" importer: 

bash-2.05b$ Unknown unit 811.92 6Z
<class exceptions.ValueError at 0x41319b0c><exceptions.ValueError instance at
0x415528ec>Traceback (most recent call last):
  • File "/tmp/horkana/unsup//share/dia/python/diasvg_import.py", line 659 in import_svg
    imp.Parse(f.read())
  • File "/tmp/horkana/unsup//share/dia/python/diasvg_import.py", line 605 in Parse
    p.Parse(sData)
  • File "/tmp/horkana/unsup//share/dia/python/diasvg_import.py", line 580 in start_element
    eval(s)
  • File "<string>", line 0 in ?
  • File "/tmp/horkana/unsup//share/dia/python/diasvg_import.py", line 376 in d
    xc = Scaled(sp[j]); yc = Scaled(sp[j+1])
  • File "/tmp/horkana/unsup//share/dia/python/diasvg_import.py", line 47 in Scaled
    return float(s) * dfUserScale

Comment 3 Hans Breuer 2005-03-30 15:37:48 UTC
Confirmed, but not any longer relevant. Both importers in 
cvs load the file just fine. Alan - if you want to be 
helpful - please build from cvs.

*** This bug has been marked as a duplicate of 108502 ***
Comment 4 Alan Horkan 2005-03-30 15:57:33 UTC
I've tried unsucessfully to build CVS on several occasions.  
If I can find the time I will try again.  Working directly from CVS is not
practical for me for various reasons.  The setup of the internet proxies, and
the lack of disk space on the more up to date machines, and the out of date
toolchain on the various machines I have available, and other factors all add to
the difficulties and time required to get anything built let alone a CVS build.  

A release, even a pre-release would be extremely helpful.  
It is a lot harder to keep track of a moving target.