stepjam / PyRep

A toolkit for robot learning research.
MIT License
687 stars 163 forks source link

Build Failure #190

Closed CharlesJQuarra closed 4 years ago

CharlesJQuarra commented 4 years ago

I'm getting a cryptic build error, no idea what could be missing. python3-dev is already installed

Requirement already satisfied: numpy in /opt/conda/envs/work-env/lib/python3.6/site-packages (from -r requirements.txt (line 1)) (1.18.5)
Collecting cffi==1.11.5
  Downloading cffi-1.11.5-cp36-cp36m-manylinux1_x86_64.whl (421 kB)
Requirement already satisfied: pycparser in /opt/conda/envs/work-env/lib/python3.6/site-packages (from cffi==1.11.5->-r requirements.txt (line 2)) (2.20)
Installing collected packages: cffi
  Attempting uninstall: cffi
    Found existing installation: cffi 1.14.0
    Uninstalling cffi-1.14.0:
      Successfully uninstalled cffi-1.14.0
Successfully installed cffi-1.11.5
creating symlink: /opt/cs/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/libcoppeliaSim.so.1 -> /opt/cs/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/libcoppeliaSim.so
copying lua file: pyrep/backend -> /opt/cs/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/
generating build/pyrep/backend/pyrep/backend/_sim_cffi.c
running install
running build
running build_py
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/pyrep
copying pyrep/const.py -> build/lib.linux-x86_64-3.6/pyrep
copying pyrep/__init__.py -> build/lib.linux-x86_64-3.6/pyrep
copying pyrep/pyrep.py -> build/lib.linux-x86_64-3.6/pyrep
copying pyrep/errors.py -> build/lib.linux-x86_64-3.6/pyrep
creating build/lib.linux-x86_64-3.6/pyrep/backend
copying pyrep/backend/sim.py -> build/lib.linux-x86_64-3.6/pyrep/backend
copying pyrep/backend/__init__.py -> build/lib.linux-x86_64-3.6/pyrep/backend
copying pyrep/backend/utils.py -> build/lib.linux-x86_64-3.6/pyrep/backend
copying pyrep/backend/simConst.py -> build/lib.linux-x86_64-3.6/pyrep/backend
creating build/lib.linux-x86_64-3.6/pyrep/objects
copying pyrep/objects/shape.py -> build/lib.linux-x86_64-3.6/pyrep/objects
copying pyrep/objects/vision_sensor.py -> build/lib.linux-x86_64-3.6/pyrep/objects
copying pyrep/objects/force_sensor.py -> build/lib.linux-x86_64-3.6/pyrep/objects
copying pyrep/objects/object.py -> build/lib.linux-x86_64-3.6/pyrep/objects
copying pyrep/objects/joint.py -> build/lib.linux-x86_64-3.6/pyrep/objects
copying pyrep/objects/camera.py -> build/lib.linux-x86_64-3.6/pyrep/objects
copying pyrep/objects/__init__.py -> build/lib.linux-x86_64-3.6/pyrep/objects
copying pyrep/objects/proximity_sensor.py -> build/lib.linux-x86_64-3.6/pyrep/objects
copying pyrep/objects/cartesian_path.py -> build/lib.linux-x86_64-3.6/pyrep/objects
copying pyrep/objects/dummy.py -> build/lib.linux-x86_64-3.6/pyrep/objects
copying pyrep/objects/octree.py -> build/lib.linux-x86_64-3.6/pyrep/objects
creating build/lib.linux-x86_64-3.6/pyrep/sensors
copying pyrep/sensors/accelerometer.py -> build/lib.linux-x86_64-3.6/pyrep/sensors
copying pyrep/sensors/spherical_vision_sensor.py -> build/lib.linux-x86_64-3.6/pyrep/sensors
copying pyrep/sensors/__init__.py -> build/lib.linux-x86_64-3.6/pyrep/sensors
copying pyrep/sensors/gyroscope.py -> build/lib.linux-x86_64-3.6/pyrep/sensors
creating build/lib.linux-x86_64-3.6/pyrep/robots
copying pyrep/robots/robot_component.py -> build/lib.linux-x86_64-3.6/pyrep/robots
copying pyrep/robots/__init__.py -> build/lib.linux-x86_64-3.6/pyrep/robots
creating build/lib.linux-x86_64-3.6/pyrep/robots/arms
copying pyrep/robots/arms/mico.py -> build/lib.linux-x86_64-3.6/pyrep/robots/arms
copying pyrep/robots/arms/arm.py -> build/lib.linux-x86_64-3.6/pyrep/robots/arms
copying pyrep/robots/arms/ur3.py -> build/lib.linux-x86_64-3.6/pyrep/robots/arms
copying pyrep/robots/arms/locobot_arm.py -> build/lib.linux-x86_64-3.6/pyrep/robots/arms
copying pyrep/robots/arms/panda.py -> build/lib.linux-x86_64-3.6/pyrep/robots/arms
copying pyrep/robots/arms/jaco.py -> build/lib.linux-x86_64-3.6/pyrep/robots/arms
copying pyrep/robots/arms/ur10.py -> build/lib.linux-x86_64-3.6/pyrep/robots/arms
copying pyrep/robots/arms/__init__.py -> build/lib.linux-x86_64-3.6/pyrep/robots/arms
copying pyrep/robots/arms/lbr_iiwa_14_r820.py -> build/lib.linux-x86_64-3.6/pyrep/robots/arms
copying pyrep/robots/arms/baxter.py -> build/lib.linux-x86_64-3.6/pyrep/robots/arms
copying pyrep/robots/arms/ur5.py -> build/lib.linux-x86_64-3.6/pyrep/robots/arms
copying pyrep/robots/arms/sawyer.py -> build/lib.linux-x86_64-3.6/pyrep/robots/arms
copying pyrep/robots/arms/dobot.py -> build/lib.linux-x86_64-3.6/pyrep/robots/arms
copying pyrep/robots/arms/lbr_iiwa_7_r800.py -> build/lib.linux-x86_64-3.6/pyrep/robots/arms
copying pyrep/robots/arms/youBot.py -> build/lib.linux-x86_64-3.6/pyrep/robots/arms
creating build/lib.linux-x86_64-3.6/pyrep/robots/end_effectors
copying pyrep/robots/end_effectors/dobot_suction_cup.py -> build/lib.linux-x86_64-3.6/pyrep/robots/end_effectors
copying pyrep/robots/end_effectors/locobot_gripper.py -> build/lib.linux-x86_64-3.6/pyrep/robots/end_effectors
copying pyrep/robots/end_effectors/suction_cup.py -> build/lib.linux-x86_64-3.6/pyrep/robots/end_effectors
copying pyrep/robots/end_effectors/mico_gripper.py -> build/lib.linux-x86_64-3.6/pyrep/robots/end_effectors
copying pyrep/robots/end_effectors/baxter_gripper.py -> build/lib.linux-x86_64-3.6/pyrep/robots/end_effectors
copying pyrep/robots/end_effectors/baxter_suction_cup.py -> build/lib.linux-x86_64-3.6/pyrep/robots/end_effectors
copying pyrep/robots/end_effectors/jaco_gripper.py -> build/lib.linux-x86_64-3.6/pyrep/robots/end_effectors
copying pyrep/robots/end_effectors/panda_gripper.py -> build/lib.linux-x86_64-3.6/pyrep/robots/end_effectors
copying pyrep/robots/end_effectors/__init__.py -> build/lib.linux-x86_64-3.6/pyrep/robots/end_effectors
copying pyrep/robots/end_effectors/gripper.py -> build/lib.linux-x86_64-3.6/pyrep/robots/end_effectors
regenerated: 'build/pyrep/backend/pyrep/backend/_sim_cffi.c'
package init file 'pyrep/robots/mobiles/__init__.py' not found (or not a regular file)
creating build/lib.linux-x86_64-3.6/pyrep/robots/mobiles
copying pyrep/robots/mobiles/youbot.py -> build/lib.linux-x86_64-3.6/pyrep/robots/mobiles
copying pyrep/robots/mobiles/holonomic_base.py -> build/lib.linux-x86_64-3.6/pyrep/robots/mobiles
copying pyrep/robots/mobiles/turtlebot.py -> build/lib.linux-x86_64-3.6/pyrep/robots/mobiles
copying pyrep/robots/mobiles/line_tracer.py -> build/lib.linux-x86_64-3.6/pyrep/robots/mobiles
copying pyrep/robots/mobiles/mobile_base.py -> build/lib.linux-x86_64-3.6/pyrep/robots/mobiles
copying pyrep/robots/mobiles/nonholonomic_base.py -> build/lib.linux-x86_64-3.6/pyrep/robots/mobiles
copying pyrep/robots/mobiles/locobot.py -> build/lib.linux-x86_64-3.6/pyrep/robots/mobiles
creating build/lib.linux-x86_64-3.6/pyrep/robots/configuration_paths
copying pyrep/robots/configuration_paths/mobile_configuration_path.py -> build/lib.linux-x86_64-3.6/pyrep/robots/configuration_paths
copying pyrep/robots/configuration_paths/arm_configuration_path.py -> build/lib.linux-x86_64-3.6/pyrep/robots/configuration_paths
copying pyrep/robots/configuration_paths/nonholonomic_configuration_path.py -> build/lib.linux-x86_64-3.6/pyrep/robots/configuration_paths
copying pyrep/robots/configuration_paths/configuration_path.py -> build/lib.linux-x86_64-3.6/pyrep/robots/configuration_paths
copying pyrep/robots/configuration_paths/__init__.py -> build/lib.linux-x86_64-3.6/pyrep/robots/configuration_paths
copying pyrep/robots/configuration_paths/holonomic_configuration_path.py -> build/lib.linux-x86_64-3.6/pyrep/robots/configuration_paths
creating build/lib.linux-x86_64-3.6/pyrep/textures
copying pyrep/textures/__init__.py -> build/lib.linux-x86_64-3.6/pyrep/textures
copying pyrep/textures/texture.py -> build/lib.linux-x86_64-3.6/pyrep/textures
creating build/lib.linux-x86_64-3.6/pyrep/misc
copying pyrep/misc/distance.py -> build/lib.linux-x86_64-3.6/pyrep/misc
copying pyrep/misc/__init__.py -> build/lib.linux-x86_64-3.6/pyrep/misc
copying pyrep/misc/signals.py -> build/lib.linux-x86_64-3.6/pyrep/misc
package init file 'pyrep/robots/mobiles/__init__.py' not found (or not a regular file)
running build_ext
building 'pyrep.backend._sim_cffi' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/build
creating build/temp.linux-x86_64-3.6/build/pyrep
creating build/temp.linux-x86_64-3.6/build/pyrep/backend
creating build/temp.linux-x86_64-3.6/build/pyrep/backend/pyrep
creating build/temp.linux-x86_64-3.6/build/pyrep/backend/pyrep/backend
gcc -pthread -B /opt/conda/envs/work-env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/PyRep/cffi_build -I/opt/conda/envs/work-env/include/python3.6m -c build/pyrep/backend/pyrep/backend/_sim_cffi.c -o build/temp.linux-x86_64-3.6/build/pyrep/backend/pyrep/backend/_sim_cffi.o
error: command 'gcc' failed with exit status 1
stepjam commented 4 years ago

Hi, Looks like you are using conda; I know people have had trouble with this before. (e.g. #76). Try and install without conda and see if that works