NodeBox Import error unable to find module random (line 2 of pyvector.py)

martin's Avatar

martin

18 Mar, 2015 01:21 PM

Hi everybody,

on a clean download of NodeBox, every time I add a new polygon to my network, NodeBox application returns an error: unable to import random for the file pyvector.py at line 2 : from random import seed as _seed , uniform .

Now I know this is an UGLY hack, but I found a work around:
I unzipped the python.zip in Java.lib
I added the following 2 lines to pyvector.py at the very beginning of the file:
import sys
sys.path.append('path/to/NodeBox.app/Contents/Java/lib/python')

Now I am able to use polygons.

Enjoy Noding,

Martin

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

26 Jul, 2026 05:43 PM
24 Jul, 2026 12:33 PM
19 Jul, 2026 10:58 PM
19 Jul, 2026 10:15 PM
18 Jul, 2026 09:52 AM

 

28 Jun, 2026 09:51 AM
24 May, 2026 08:01 AM
19 Apr, 2026 11:02 AM
06 Apr, 2026 08:40 PM
12 Mar, 2026 01:15 AM
10 Mar, 2026 03:15 AM