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

No module named random

3 replies Last reply

  1. Mac os X Yosemite

    Hi there,
    I try to connect a Textpath node to a scatter node like in this video :
    https://vimeo.com/54523012
    But, each time I activate the scatter node i've got this message : "No module named random"
    Could you help me please ?
    Thx

    Copy link
  2. Which version are you using? Can you post your file?

    Copy link
  3. I use the version 3.0.43 for Mac
    I join the file.

    The error message is :
    Traceback (most recent call last):
    File "/Applications/NodeBox.app/Contents/Java/libraries/corevector/pyvector.py", line 2, in <module>
    from random import seed as _seed, uniform
    ImportError: No module named random

    at org.python.core.Py.ImportError(Py.java:296)
    at org.python.core.imp.import_first(imp.java:774)
    at org.python.core.imp.import_module_level(imp.java:856)
    at org.python.core.imp.importName(imp.java:936)
    at org.python.core.ImportFunction.__call__(__builtin__.java:1278)
    at org.python.core.PyObject.__call__(PyObject.java:373)
    at org.python.core.__builtin__.__import__(__builtin__.java:1231)
    at org.python.core.imp.importFromAs(imp.java:1030)
    at org.python.core.imp.importFrom(imp.java:1006)
    at org.python.pycode._pyx0.f$0(/Applications/NodeBox.app/Contents/Java/libraries/corevector/pyvector.py:1111)
    at org.python.pycode._pyx0.call_function(/Applications/NodeBox.app/Contents/Java/libraries/corevector/pyvector.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:165)
    at org.python.core.PyCode.call(PyCode.java:18)
    at org.python.core.Py.runCode(Py.java:1302)
    at org.python.core.__builtin__.execfile_flags(__builtin__.java:518)
    at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:225)
    at nodebox.function.PythonLibrary$1.call(Unknown Source)
    at nodebox.function.PythonLibrary$1.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.lang.Thread.run(Thread.java:745)
    
    Copy link
  4. NodeBox team

    That's weird -- the file has no issues here. Do you have a special version of Python installed by any chance?

    Copy link

Know something that helps?

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

Sign in to reply