Search code examples
linuxpython-3.xpygletnodebox

use nodebox as a module for python 3.5


I'm trying to import everything from nodebox.graphics into my python 3.5 code but I get errors:

  • ImportError: No module named 'bezier'

To mention, this module exists in nodebox/graphics. As I searched in python documentations, I have to add the nodebox and pyglet folders into the directory of my code but that did not work.

I also didn't succeed in adding them to system directories.

How can I solve the problem and run my code properly?

P.S. I'm currently using ubuntu 16.04 if it matters.


Solution

  • I had the same error. Placing all the .py files except (and this is important) the __init__.py file in the main libraries folder fixed it for me. The final path should look like ~/lib/python3.5/site-packages/bezier.py