PYTHONPATH env variable

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

PYTHONPATH env variable

This post was updated on .
Hello together,

I am very new to OpenRave. When I run the sample --example hanoi I get the following error.

koe@Test-VirtualBox:~$ --example hanoiopenravepy is not set into PYTHONPATH env variable, attempting to add
Traceback (most recent call last):
  File "/usr/local/bin/", line 49, in <module>
    import openravepy
  File "/usr/local/lib/python2.7/dist-packages/openravepy/", line 33, in <module>
    openravepy_currentversion = loadstable(__openravepy_version__)
  File "/usr/local/lib/python2.7/dist-packages/openravepy/", line 14, in loadstable
    return _loadversion('_openravepy_'+ver.replace('.', '_'))
  File "/usr/local/lib/python2.7/dist-packages/openravepy/", line 19, in _loadversion
    mainpackage = __import__("openravepy", globals(), locals(), [targetname])
  File "/usr/local/lib/python2.7/dist-packages/openravepy/_openravepy_0_9/", line 29, in <module>
    from openravepy_int import *
ImportError: No module named openravepy_int

Python is installed

openrave-config --python-dir

and exported to openrave:
export PYTHONPATH=$PYTHONPATH:`openrave-config --python-dir`

I installed it from source.

How could I solve this?