sometimes old projects give an error when opening
java.lang.RuntimeException: Could not load /Users/zaporozhan/Desktop/GAZ/gaz_08-10-18.ndbx
at nodebox.client.NodeBoxDocument.load(NodeBoxDocument.java:211) at nodebox.client.Application.openDocument(Application.java:412) at nodebox.client.Application$1.done(Application.java:135) at javax.swing.SwingWorker$5.run(SwingWorker.java:737) at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:832) at sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112) at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:842) at javax.swing.Timer.fireActionPerformed(Timer.java:313) at javax.swing.Timer$DoPostEvent.run(Timer.java:245) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) Caused by: nodebox.util.LoadException: Error while loading treemap.py: Library does not exist.
at nodebox.function.PythonLibrary.loadScript(PythonLibrary.java:84) at nodebox.function.PythonLibrary.loadScript(PythonLibrary.java:52) at nodebox.function.FunctionLibrary.load(FunctionLibrary.java:37) at nodebox.node.NodeLibrary.parseLink(NodeLibrary.java:453) at nodebox.node.NodeLibrary.parseNDBX(NodeLibrary.java:428) at nodebox.node.NodeLibrary.load(NodeLibrary.java:406) at nodebox.node.NodeLibrary.load(NodeLibrary.java:92) at nodebox.client.NodeBoxDocument.load(NodeBoxDocument.java:200) ... 22 more
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by denis.zaporozha... on 17 Jan, 2019 11:17 AM
Often I cannot open some projects and see similar errors. How can you save these files?
Help me please)
Support Staff 2 Posted by john on 18 Jan, 2019 12:54 AM
Hi Denis,
I notice in the middle of that error: "Error while loading treemap.py: Library does not exist."
Is it possible you moved your project file so that it was no longer in the same folder at treemap.py"? If so, try moving a copy of treemap.py in the same folder and try relaunching.
Usually when I get these errors its because there is some kind of mismatch between a custom node and files registered in the code library.
If that doesn't work another thing you can try is opening the ndbx file in a text editor. If there are python files registered in the code library you should see lines near the top (just after the proper names which define the document size) which look like this:
<link href="python:treemap.py" rel="functions"/>
If you need to register a python file but can't open the project to add it to the code library you may be able to just add such a line to the ndbx file directly. Another technique is to remove all such lines, which will probably allow you to open the project; you can then add the correct python files back into the code library. Of course you should always make a backup copy before attempting to edit a ndbx file directly.
Let me know if this helps. If you are desperate you can send me the nodebox file (zipped) and I can see if I can fix it.
John
3 Posted by denis.zaporozha... on 18 Feb, 2019 11:40 AM
Hi John!
Thank you very much your answer helped!
Library registration helped!