joschu / trajopt

Trajectory Optimization
http://rll.berkeley.edu/trajopt
Other
367 stars 159 forks source link

from ctrajoptpy import * ImportError: No module named ctrajoptpy #24

Closed lakshmip001 closed 5 years ago

lakshmip001 commented 5 years ago

I installed trajoptpy, but when I try to run the program it results in the above error. File "/home/lakshmi/git/trajopt/trajoptpy/init.py", line 1, in from ctrajoptpy import * ImportError: No module named ctrajoptpy

lakshmip001 commented 5 years ago

sourcing the build directory in bash solved this problem.

WHGang commented 4 years ago

I have the same problem as you. How did you do it? Which command to use?

daphnechen commented 4 years ago

From the documentation:

"You need to set your PYTHONPATH to call trajopt from python. Add the following two paths to your PYTHONPATH"