PYTHONPATH env variable

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

PYTHONPATH env variable

Goof
This post was updated on .
Hello together,

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

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

Python is installed

openrave-config --python-dir
/usr/local/lib/python2.7/dist-packages


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

I installed it from source.

How could I solve this?

Thanks

Goof