The new NodeBox forum is live! Everything from support.nodebox.net moved here: sign in with the same email to pick up your old posts. Something not working? Write to forum-support@nodebox.net.

NodeBox 3From the old forum

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

No replies yet

  1. 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

    Copy link

Know something that helps?

Sign in with your email address to reply. No password needed.

Sign in to reply