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

Unable to run ScenarIO Example #431

Open
3 of 4 tasks
Vincenzo-Saffioti opened this issue Jun 15, 2023 · 1 comment
Open
3 of 4 tasks

Unable to run ScenarIO Example #431

Vincenzo-Saffioti opened this issue Jun 15, 2023 · 1 comment

Comments

@Vincenzo-Saffioti
Copy link

Description:

I have tried to install gym-ignition but cannot use the library as when I try to run the example code (https://robotology.github.io/gym-ignition/master/getting_started/scenario.html) I get an error from python.

Steps to reproduce

  1. conda env create -n gym-ignition python=3.9
  2. pip install gym-ignition
  3. create example.py (https://robotology.github.io/gym-ignition/master/getting_started/scenario.html)
  4. python3 example.py

The terminal returns:

python3 example.py 

Traceback (most recent call last):
  File "/home/robolab/Desktop/example.py", line 3, in <module>
    from scenario import gazebo as scenario_gazebo
  File "/home/robolab/miniconda3/envs/gym-ignitionv2/lib/python3.9/site-packages/scenario/__init__.py", line 227, in <module>
    check_gazebo_installation()
  File "/home/robolab/miniconda3/envs/gym-ignitionv2/lib/python3.9/site-packages/scenario/__init__.py", line 175, in check_gazebo_installation
    raise RuntimeError(msg)
RuntimeError: Failed to find Ignition Gazebo ~=6.0.0.dev (found incompatible version(s): [<Version('6.14.0')>])

I also tried to build gym-ignition 1.3.1 source code (idyntree latest version) but i had a compilation error when i execute cmake .. command. This is the error:

CMake Error at /home/robolab/miniconda3/envs/gym-ignition/lib/cmake/iDynTree/iDynTreeTargets.cmake:107 (set_property):
  INTERFACE_LIBRARY targets may only have whitelisted properties.  The
  property "DEPRECATION" is not allowed.
Call Stack (most recent call first):
  /home/robolab/miniconda3/envs/gym-ignition/lib/cmake/iDynTree/iDynTreeConfig.cmake:21 (include)
  scenario/src/controllers/CMakeLists.txt:5 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/robolab/gym-ignition-1.3.1/build/CMakeFiles/CMakeOutput.log".
See also "/home/robolab/gym-ignition-1.3.1/build/CMakeFiles/CMakeError.log".

Environment

  • OS: Ubuntu 20.04
  • GPU: Intel integrated
  • Python: 3.9 from conda
  • Version: gym-ignition 1.3.1
  • Channel:
    • Stable
    • Nightly
  • Installation type:
    • User
    • Developer
@traversaro
Copy link
Contributor

Hello @Vincenzo-Saffioti, unfortunately the project does not work with the latest ignition gazebo, see #430 for more info.

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

No branches or pull requests

2 participants