Basket import failure

HomeForumscherrytreeBasket import failure

This topic has 4 voices, contains 13 replies, and was last updated by  theophile 177 days ago.

Viewing 13 posts - 1 through 13 (of 13 total)
Author Posts
Author Posts
15 September 2010 at 15:35 #648

theophile

First off, amazing program. Thanks for working on it, and for implementing import form Basket!

Having trouble with it though. I start a fresh cherrytree instance and select to import from basket. THe file selection dialog takes me immediately to the top-level folder where basket stores its info (awesome) and I select import. Nothing imports, and I get this on the console:

Traceback (most recent call last):
File "/usr/share/cherrytree/modules/core.py", line 276, in nodes_add_from_basket_folder
cherrytree_string = basket.get_cherrytree_xml()
File "/usr/share/cherrytree/modules/imports.py", line 504, in get_cherrytree_xml
self.start_parsing()
File "/usr/share/cherrytree/modules/imports.py", line 339, in start_parsing
if child_dom_iter.nodeName == "basket": self.node_add(child_dom_iter)
File "/usr/share/cherrytree/modules/imports.py", line 434, in node_add
if child_dom_iter.nodeName == "basket": self.node_add(child_dom_iter)
File "/usr/share/cherrytree/modules/imports.py", line 436, in node_add
self.nodes_list.pop()
IndexError: pop from empty list

Any ideas? Thanks!

15 September 2010 at 19:41 #649

giuspen

I got the bug thank you.
Will work on it and fix it soon.
Cheers.

18 September 2010 at 01:13 #650

giuspen

I think that the import from basket now works well.
Can you download the latest version from subversion and tell me if everything ok?

19 September 2010 at 16:42 #651

theophile

Thanks for working on this. I now get further (computer spends a minute working) then I encounter this:
Traceback (most recent call last):
File "/usr/share/cherrytree/modules/core.py", line 275, in nodes_add_from_basket_folder
cherrytree_string = basket.get_cherrytree_xml()
File "/usr/share/cherrytree/modules/imports.py", line 520, in get_cherrytree_xml
return self.dom.toxml()
File "/usr/lib/python2.6/xml/dom/minidom.py", line 45, in toxml
return self.toprettyxml("", "", encoding)
File "/usr/lib/python2.6/xml/dom/minidom.py", line 60, in toprettyxml
return writer.getvalue()
File "/usr/lib/python2.6/StringIO.py", line 270, in getvalue
self.buf += ''.join(self.buflist)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xa7 in position 10: unexpected code byte

For whetever it’s worth, I probably have one of the largest Basket note folders you’re likely to encounter (11.2 MB). I used Basket for all my note-taking for three years of law school. My folder is so large it actually takes Basket itself 4 or 5 full minutes to load. Since it’s my only KDE app and it takes so long to load, that’s why I would much rather use CherryTree, as it is faster and GTK. :)

So thanks again for working on this!

19 September 2010 at 20:44 #652

giuspen

I guess you used 0.14.2 release for the attempt, am I right?
This time I need more help from you as I have to reproduce your problem here in order to fix it.
What I need is the very node that causes the error, or the whole tree if your data is not strictly private and in this case I will search for that node myself.
A tip: if you can see a partial import, the node to blame is probably the first not imported.
Cheers.

19 September 2010 at 21:34 #653

theophile

Sure, no problem. I can send you a link to my compressed basket folder if you just let me know how to PM or similar. Thanks!

20 September 2010 at 00:17 #654

giuspen

if you click the cherrytree menu item help–about you will find my email address, you can send the archive there

17 October 2010 at 22:30 #655

threepwood

Congratulation and thanks for the program. I have tried import my basket notes but it makes nothing. I try with the default baskets and it do works, but it doesn’t with my 30 baskets. Thanks in advance.


This is my log:

Traceback (most recent call last):
File “/usr/share/cherrytree/modules/core.py”, line 286, in nodes_add_from_basket_folder
cherrytree_string = basket.get_cherrytree_xml()
File “/usr/share/cherrytree/modules/imports.py”, line 516, in get_cherrytree_xml
self.start_parsing()
File “/usr/share/cherrytree/modules/imports.py”, line 338, in start_parsing
if child_dom_iter.nodeName == “basket”: self.node_add(child_dom_iter)
File “/usr/share/cherrytree/modules/imports.py”, line 361, in node_add
dom = xml.dom.minidom.parseString(node_xml_string)
File “/usr/lib/python2.6/xml/dom/minidom.py”, line 1928, in parseString
return expatbuilder.parseString(string)
File “/usr/lib/python2.6/xml/dom/expatbuilder.py”, line 940, in parseString
return builder.parseString(string)
File “/usr/lib/python2.6/xml/dom/expatbuilder.py”, line 223, in parseString
parser.Parse(string, True)
xml.parsers.expat.ExpatError: syntax error: line 1, column 0

17 October 2010 at 23:42 #656

giuspen

Hello,
Unfortunately I’m not able to understand the problem simply from the changelog, I need an archive of your “baskets” folder. I understand your data can be private but in this case you should provide me a similar data archive still causing the problem.
Regards.

18 October 2010 at 11:10 #657

threepwood

Thanks for the quick answer. Where could I send you my basket folder? Thanks,

Iam.

18 October 2010 at 13:14 #658

giuspen

If you click the cherrytree menu item help–about you will find my email address, you can send the archive there.
Giuseppe.

18 October 2010 at 20:42 #659

threepwood

Thanks! I had a encrypted basket. I decrypted it and it worked! I will tested your notepad during several days, but I think you have a new user. Thanks again,

Iam.

19 October 2010 at 18:51 #660

giuspen

I’m happy you were able to import successfully, I hope you’ll find CherryTree useful.
Regards,
Giuseppe.

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.