StanfordVL/iGibson

ROS Docker numpy error

jcarlosgm30 opened this issue · 0 comments

Good evening,

I've built and run the docker provided following these instructions. But the following error happens when I run roslaunch igibson-ros turtlebot_rgbd.launch:

RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xd . Check the section C-API incompatibility at the Troubleshooting ImportError section at https://numpy.org/devdocs/user/troubleshooting-importerror.html#c-api-incompatibility for indications on how to solve this problem .
Traceback (most recent call last):
  File "/opt/catkin_ws/src/igibson-ros/turtlebot_rgbd.py", line 19, in <module>
    from igibson.envs.igibson_env import iGibsonEnv
  File "/opt/iGibson/igibson/envs/igibson_env.py", line 9, in <module>
    import pybullet as p
ImportError: numpy.core.multiarray failed to import
[turtlebot_gibson_sim-4] process has died [pid 432, exit code 1, cmd /opt/catkin_ws/src/igibson-ros/turtlebot_rgbd.py /mobile_base/commands/velocity:=/cmd_vel __name:=turtlebot_gibson_sim __log:=/root/.ros/log/6e4bba5e-a32c-11ed-8327-0242ac110002/turtlebot_gibson_sim-4.log].
log file: /root/.ros/log/6e4bba5e-a32c-11ed-8327-0242ac110002/turtlebot_gibson_sim-4*.log

I guess it's related to the PYTHONPATH but I think the variable is set correctly:

root@0ec2b42dbfb0:/opt/iGibson/igibson/examples/ros/igibson-ros# echo $PYTHONPATH
/usr/lib/python3/dist-packages:/opt/ros/noetic/lib/python3/dist-packages:/miniconda/envs/igibson/lib/python3.8/site-packages/:/opt/iGibson/

I really appreciate any help you can provide.

BR,
Carlos