Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keepnote won't open any notebook and will shut down immediately #715

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 12 comments
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Using Keepnote to create a note tree, modifying said tree by deleting and 
moving nodes.
2. Closing Keepnote
3. Trying to open Keepnote again

What is the expected output? What do you see instead?
I expect the program to work and to let me access all the notes I have typed in 
(as it has done for several days before).
Instead the program closes immediately no matter what notebook I try to open.
Removing the keepnote.xml file in Application folder allows Keepnote not to 
shut immediately but then when I try to open my notebooks I see the .nbk files 
(ALL of them, not only the last one modified) grayed out in keepnote's file 
browser. Trying to double click on the nbk files results in Keepnote to be shut 
down immediately.

What version of the product are you using? On what operating system?
keepnote 0.7.8 on XP sp3 and on Vista.
After syncing folders both version stopped working, effectively killing all my 
work in entering notes.

Please provide any additional information below.
This is the relevant part of the error log that is generated when I try to open 
any of the old nbk files under XP
The error messages are consistent.

=============================================
KeepNote 0.7.8: Sun Jan 04 05:18:25 2015

Traceback (most recent call last):
  File "keepnote", line 437, in <module>
  File "keepnote", line 423, in main
  File "keepnote", line 273, in start_gui
  File "keepnote", line 368, in execute_command
  File "keepnote\gui\main_window.pyc", line 866, in open_notebook
  File "keepnote\gui\main_window.pyc", line 788, in _restore_windows
  File "keepnote\gui\main_window.pyc", line 897, in set_notebook
  File "keepnote\gui\tabbed_viewer.pyc", line 331, in set_notebook
  File "keepnote\gui\three_pane_viewer.pyc", line 212, in set_notebook
  File "keepnote\gui\listview.pyc", line 122, in set_notebook
  File "keepnote\gui\listview.pyc", line 230, in setup_columns
TypeError: GtkTreeView.set_expander_column() argument 1 must be 
gtk.TreeViewColumn, not None

========================================

This is an extract of an older log with a different set of errors

=========================================
Unmanaged change detected. Reindexing 'D:\MyDocs\Notes\Software'
Traceback (most recent call last):
  File "keepnote\gui\tabbed_viewer.pyc", line 638, in <lambda>
  File "keepnote\gui\tabbed_viewer.pyc", line 627, in highlight
AttributeError: 'gtk.EventBox' object has no attribute 'get_state'
Traceback (most recent call last):
  File "keepnote\gui\tabbed_viewer.pyc", line 641, in <lambda>
  File "keepnote\gui\tabbed_viewer.pyc", line 627, in highlight
AttributeError: 'gtk.EventBox' object has no attribute 'get_state'
===========================================

Is this project dead?

Original issue reported on code.google.com by peltio on 4 Jan 2015 at 3:58

@GoogleCodeExporter
Copy link
Author

I was able to recover my notebooks by following the advice given here:
http://code.google.com/p/keepnote/issues/detail?id=406
That is, by changing my node.xml and notebook.nbk file to empty version 
containing only

<node></node>

and 

<notebook></notebook>

respectively. It would be nice to know what caused the corruption to begin with 
in order to avoid it in the future. I suspect my "two-way" syncing with 
FreeFileSync has left some files that should have been deleted, but then, why 
corrupting ALL notebooks?

Also, if someone is listening out there, it would be nice to know if 
regenerating notebooks in this way can lead to loss of data, or are the 
node.xml, notebook.nbk file used only to speed up indexing (an thus can be 
regenerated without problem after every syncing, something I might even think 
to automate to avoid further problem of this sort)?.

Keepnote looks like a promising piece of software, but it's hard to commit tons 
of notes if it's not possible to safely sync folder between computers.

Original comment by peltio on 4 Jan 2015 at 5:54

@proteansec
Copy link

proteansec commented Apr 18, 2016

I was having the same problem today and I solved that by editing the top-level node.xml in the keepnote directory only: you don't have to edit order node.xml files in sub-directories.

The new node.xml contains the following:

<?xml version="1.0" encoding="UTF-8"?>                                                                                                                                          
<node> 
</node>

After that I was able to successfully open the notebook.

@KajiMaster
Copy link

+1
Thank you for this. I was able to recover my keepnote thx to this.

@ezequielsvelez
Copy link

+1 good advice

@TH3xACE
Copy link

TH3xACE commented Dec 14, 2018

+1 really good advice... thought I would lose years of work :)

@kinjikij
Copy link

When I open KeepNote directory I don't see the folders I had notes about. When I search the directory from KeepNote I see those folders... Can somebody explain me? Need my notes back.

@ransacrob
Copy link

ransacrob commented Feb 3, 2020

When I open KeepNote directory I don't see the folders I had notes about. When I search the directory from KeepNote I see those folders... Can somebody explain me? Need my notes back.

Hi, Did you have any luck resolving this?? Keepnote will not open my previous months worth of study notes, can see the folder, but only in keepnote, not in explorer.. help..

@Kanotix1
Copy link

Kanotix1 commented Feb 8, 2020

When I open KeepNote directory I don't see the folders I had notes about. When I search the directory from KeepNote I see those folders... Can somebody explain me? Need my notes back.

Hi, Did you have any luck resolving this?? Keepnote will not open my previous months worth of study notes, can see the folder, but only in keepnote, not in explorer.. help..

Hi,

I found the Keepnote folders path on a Windows machine, to be C:\Users\UserName\AppData\Local\VirtualStore\Program Files (x86)\

Tip: You need to unhide/show folders to reveal the hidden AppData folder.

Once you locate your notes folder delete any node.xml file ending with .tmp e.g (node.xml_-qmiig.tmp) replace it with a newely generated node,xml, which I did by doing a clean install of keepnote.exe on a virtual Windows machine and locating the folder with the steps above then created a random note to produce the new node.xml then copied the fresh node.xml file to my original (Lost) note folder.

I basically moved the note folder with the fresh node.xml file to C:\Program Files (x86)\KeepNote\ and run keepnote.exe as an administrator on my Windows 10. All worked fine.

I hope this helps.

@ransacrob
Copy link

ransacrob commented Feb 10, 2020 via email

@kinjikij
Copy link

When I open KeepNote directory I don't see the folders I had notes about. When I search the directory from KeepNote I see those folders... Can somebody explain me? Need my notes back.

Hi, Did you have any luck resolving this?? Keepnote will not open my previous months worth of study notes, can see the folder, but only in keepnote, not in explorer.. help..

Hi,

I found the Keepnote folders path on a Windows machine, to be C:\Users\UserName\AppData\Local\VirtualStore\Program Files (x86)\

Tip: You need to unhide/show folders to reveal the hidden AppData folder.

Once you locate your notes folder delete any node.xml file ending with .tmp e.g (node.xml_-qmiig.tmp) replace it with a newely generated node,xml, which I did by doing a clean install of keepnote.exe on a virtual Windows machine and locating the folder with the steps above then created a random note to produce the new node.xml then copied the fresh node.xml file to my original (Lost) note folder.

I basically moved the note folder with the fresh node.xml file to C:\Program Files (x86)\KeepNote\ and run keepnote.exe as an administrator on my Windows 10. All worked fine.

I hope this helps.

I found the folders in AppData folder but I can not figure out how to make them come back to my KeepNote...

@CyberSecSean
Copy link

After a few hours of scouring the computer wondering where the hell these folders have physically disappeared to, with help from some friends on discord I have found that if you press windows key type in %APPDATA% go into that folder and click Local, then VirtualStore, a keepnote folder should be there

Click into that and open the files via HTML through chrome/explorer and you will see all your writing and screenshots which you can simply copy and paste over to another note app such as cherrytree! :)

@cwnaze
Copy link

cwnaze commented Oct 30, 2020

if the uppermost node.xml is a tmp file, rename the file to node.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants