JorgePe / pyb00st

Python for LEGO BOOST
MIT License
143 stars 21 forks source link

No module named 'pyb00st' #9

Closed maflden closed 6 years ago

maflden commented 6 years ago

I tried to run examples but sometime I cannot run the pyb00st because of below import error. How can I solve this?

pi@raspberrypi:~/pyb00st/pyb00st-master $ ./examples/demo_motor.py Traceback (most recent call last): File "./examples/demo_motor.py", line 3, in from pyb00st.movehub import MoveHub ImportError: No module named 'pyb00st'

maflden commented 6 years ago

Solved. When I wrote like below, I can run python script without import error message. I think I have to write this command every restart the terminal.

pi@raspberrypi:~/pyb00st/pyb00st-master $ export PYTHONPATH=.