robotology / gym-ignition

Framework for developing OpenAI Gym robotics environments simulated with Ignition Gazebo
https://robotology.github.io/gym-ignition
GNU Lesser General Public License v3.0
227 stars 26 forks source link

Failed to find Ignition Gazebo `~=6.0.0.dev` #423

Open dnovischi opened 2 years ago

dnovischi commented 2 years ago

Description:

Running the example for ScenarIO form the docs in [1] fails:

Traceback (most recent call last):
  File "/home/dan/workspace/mrsrl_ws/test/main.py", line 3, in <module>
    from scenario import gazebo as scenario_gazebo
  File "/home/dan/anaconda3/envs/mrsrl/lib/python3.8/site-packages/scenario/__init__.py", line 227, in <module>
    check_gazebo_installation()
  File "/home/dan/anaconda3/envs/mrsrl/lib/python3.8/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.1.0')>, <Version('5.2.0')>, <Version('4.12.0')>, <Version('3.12.0')>])

[1]https://robotology.github.io/gym-ignition/master/getting_started/scenario.html#python

Steps to reproduce

  1. sudo apt install ignition-*
  2. pip install gym-ignition
  3. python example.py

Environment

diegoferigo commented 2 years ago

Hi @dnovischi, we are aware that master only supports the 6.0 version, while the last Ignition Gazebo release is 6.1^1.

Waiting for a new release, you can install the project from its Nightly channel.

diegoferigo commented 2 years ago

I noted that you used conda to install the dependencies. We are in the process to package this project in conda-forge, if you're interested you can follow https://github.com/conda-forge/staged-recipes/pull/16582.

dnovischi commented 2 years ago

Thanks.

diegoferigo commented 2 years ago

I'll keep this issue open so that it has visibility in case other users try to install the Stable channel with the most recent Ignition Gazebo. I'll close it as soon as a new release will be rolled out.

dnovischi commented 2 years ago

That's probably for the best until migration. I can confirm that it works with nightly.

psh9002 commented 2 years ago

When I tried to install with the Nightly version, there was TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases which is started from gym_ignition_environments.

How can I fix it?