Public bug reported:
Ubuntu 14.04.2 up-to-date, ggobi 2.1.10-5ubuntu1 amd64
Expected behavior: I expect ggobi to process my xml dataset without
error
Observed behavior: ggobi claims that some lines do not have enough elements:
Error in XML parsing [line 517, column 10]: Not enough elements
In more detail: I am trying to feed ggobi a dataset containing a large
number of columns (500). When I do this, ggobi complains that some
lines do not have enough columns of data. I checked mechanically (using
awk) and the number of columns is correct. Od tells me that the line
does not contain any non-printable characters. What is strange is that
when I remove the first record (which is supposedly error free), the
error remains at the same line in the file. When I sanitized the labels
in case I needed to supply a test case, the errors also moved around.
Details about the xml file attached: There are 21 data records:
$ grep '^0' ggobi-err.xml | wc -l
They all have 500 space-separated columns:
$ awk '/^0/{print NR,NF,length($0)}' ggobi-err.xml
513 500 1035
516 500 1092
519 500 1067
522 500 1039
525 500 1001
528 500 1092
531 500 1040
534 500 1001
537 500 1026
540 500 1001
543 500 1026
546 500 1039
549 500 1040
552 500 1026
555 500 1001
558 500 1001
561 500 1039
564 500 1081
567 500 1001
570 500 1040
573 500 1001
Ggobi complains thus:
$ ggobi ggobi-err.xml
Error in XML parsing [line 550, column 10]: Not enough elements
Error in XML parsing [line 562, column 10]: Not enough elements
Changing the label changes the data error:
$ sed 's/Hello/A long goodbye/' <ggobi-err.xml >ggobi-err2.xml
$ ggobi ggobi-err2.xml
Error in XML parsing [line 517, column 10]: Not enough elements
(The second error has gone away, even though there was no change to the
data.)
I don't think there is anything wrong with the XML file. A 20 column file
generated with the same Python script is just fine.
I don't mind trying to find this myself, but the source for ggobi 2.1.11
won't build without GTK 2.6, and the only development package I can see
as available for installation on 14.04 is libgtk-3-dev.
** Affects: ggobi (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "ggobi-err.xml"
https://bugs.launchpad.net/bugs/1425809/+attachment/4328006/+files/ggobi-err.xml
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1425809
Title:
ggobi difficulies with long data records
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ggobi/+bug/1425809/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs