tag:support.nodebox.net,2012-11-01:/discussions/nodebox-2-3/5426-nodebox-import-error-unable-to-find-module-random-line-2-of-pyvectorpyNodeBox: Discussion 2015-03-18T15:53:51Ztag:support.nodebox.net,2012-11-01:Comment/363127812015-03-18T13:21:29Z2015-03-18T13:21:30ZNodeBox Import error unable to find module random (line 2 of pyvector.py)<div><p>Hi everybody,</p>
<p>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 .</p>
<p>Now I know this is an UGLY hack, but I found a work around:<br>
I unzipped the python.zip in Java.lib<br>
I added the following 2 lines to pyvector.py at the very beginning
of the file:<br>
import sys<br>
sys.path.append('path/to/NodeBox.app/Contents/Java/lib/python')</p>
<p>Now I am able to use polygons.</p>
<p>Enjoy Noding,</p>
<p>Martin</p></div>martin