sometimes old projects give an error when opening

denis.zaporozhan's Avatar

denis.zaporozhan

17 Jan, 2019 11:15 AM

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

  1. 1 Posted by denis.zaporozha... on 17 Jan, 2019 11:17 AM

    denis.zaporozhan's Avatar

    Often I cannot open some projects and see similar errors. How can you save these files?
    Help me please)

  2. Support Staff 2 Posted by john on 18 Jan, 2019 12:54 AM

    john's Avatar

    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. 3 Posted by denis.zaporozha... on 18 Feb, 2019 11:40 AM

    denis.zaporozhan's Avatar

    Hi John!
    Thank you very much your answer helped!
    Library registration helped!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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

Recent Discussions

18 Feb, 2019 11:40 AM
16 Feb, 2019 08:29 PM
12 Feb, 2019 05:17 AM
12 Feb, 2019 03:34 AM
10 Feb, 2019 12:31 PM

 

02 Feb, 2019 04:55 PM
19 Jan, 2019 07:11 PM
09 Jan, 2019 07:23 PM
02 Jan, 2019 12:03 AM
31 Dec, 2018 02:49 PM
30 Dec, 2018 07:20 AM