Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import error: No module named trajoptpy #16

Open
mudasserzahid opened this issue Jul 28, 2016 · 5 comments
Open

import error: No module named trajoptpy #16

mudasserzahid opened this issue Jul 28, 2016 · 5 comments

Comments

@mudasserzahid
Copy link

mudasserzahid commented Jul 28, 2016

'em running a python code, but in python code 'em facing problem with these lines of code

import trajoptpy
import trajoptpy.kin_utils as ku
from trajoptpy.check_traj import traj_is_safe, traj_collisions
import trajoptpy.math_utils as mu

actually the main error is importing trajopt as
ImportError: No module named trajoptpy

I have downloaded the github package of trajopt but after compiling I don't know PYTHONPATH is making problem or other dependency in my PC I have set the path as

mudasser@mudasser-PC:~$ export PYTHONPATH=$PYTHONPATH:/home/mudasser/trajopt
mudasser@mudasser-PC:~$ export PYTHONPATH=$PYTHONPATH:/home/mudasser/trajopt/build/lib

now while ctest and running the python code it is making problem for me. ctest error is given as

Test project /home/mudasser/trajopt/build
      Start  1: arm_to_joint_target.py
 1/10 Test  #1: arm_to_joint_target.py .............   Passed    5.10 sec
      Start  2: arm_to_cart_target.py
 2/10 Test  #2: arm_to_cart_target.py ..............***Failed    2.46 sec
      Start  3: fullbody_plan.py
 3/10 Test  #3: fullbody_plan.py ...................***Failed    2.44 sec
      Start  4: position_base.py
 4/10 Test  #4: position_base.py ...................***Failed    0.03 sec
      Start  5: this_side_up.py
 5/10 Test  #5: this_side_up.py ....................***Failed    2.25 sec
      Start  6: arm_to_cart_target_position_only
 6/10 Test  #6: arm_to_cart_target_position_only ...***Failed    2.99 sec
      Start  7: sco-unit
 7/10 Test  #7: sco-unit ...........................   Passed    0.08 sec
      Start  8: collision-checker-unit
 8/10 Test  #8: collision-checker-unit .............***Failed    0.00 sec
      Start  9: planning-unit
 9/10 Test  #9: planning-unit ......................***Failed    0.00 sec
      Start 10: cast-cost-unit
10/10 Test #10: cast-cost-unit .....................***Failed    0.00 sec

20% tests passed, 8 tests failed out of 10

Total Test time (real) =  15.36 sec

The following tests FAILED:
      2 - arm_to_cart_target.py (Failed)
      3 - fullbody_plan.py (Failed)
      4 - position_base.py (Failed)
      5 - this_side_up.py (Failed)
      6 - arm_to_cart_target_position_only (Failed)
      8 - collision-checker-unit (Failed)
      9 - planning-unit (Failed)
     10 - cast-cost-unit (Failed)
Errors while running CTest

can someone help me to fix trajopt problem?

@EdsterG
Copy link
Collaborator

EdsterG commented Sep 15, 2017

It would be easier to help if you pasted the verbose output of ctest. Next time run 'ctest --verbose' and paste the output.

@k-maheshkumar
Copy link

trajopt.txt
I am facing the same issue. I had run ctest -V and attached its result as a file.

@EdsterG
Copy link
Collaborator

EdsterG commented Feb 9, 2018

Check PYTHONPATH and make sure you've added the source folder and the lib folder to PYTHONPATH.

@k-maheshkumar
Copy link

yes, I did. Thank you. Now it's working, but still few tests didn't pass through.
Here is the log file for the same,
trajopt1.txt

@EdsterG
Copy link
Collaborator

EdsterG commented Feb 13, 2018

What version of SymPy do you have installed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants