Orbit does not work with Isaac Sim 2022.2.1

When running the following command:

./orbit.sh --install # or ./orbit.sh -i

There is the following error:

span=span,
wheel.vendored.packaging._tokenizer.ParserSyntaxError: Expected end or semicolon (after version specifier)
opencv-python>=3.
~~~^

  The above exception was the direct cause of the following exception:
  
  Traceback (most recent call last):
    File "<string>", line 36, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-install-_93c5gmz/gym_9860fbf9c86e495d82f73d9207d39391/setup.py", line 74, in <module>
      "Programming Language :: Python :: 3.9",
    File "/home/per/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/extscore/omni.kit.pip_archive/pip_prebundle/setuptools/__init__.py", line 87, in setup
      return distutils.core.setup(**attrs)
    File "/home/per/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/extscore/omni.kit.pip_archive/pip_prebundle/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
    File "/home/per/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/extscore/omni.kit.pip_archive/pip_prebundle/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/home/per/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/extscore/omni.kit.pip_archive/pip_prebundle/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/home/per/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/extscore/omni.kit.pip_archive/pip_prebundle/setuptools/dist.py", line 1217, in run_command
      super().run_command(command)
    File "/home/per/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/extscore/omni.kit.pip_archive/pip_prebundle/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/per/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/python/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 395, in run
      self.egg2dist(self.egginfo_dir, distinfo_dir)
    File "/home/per/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/python/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 534, in egg2dist
      pkg_info = pkginfo_to_metadata(egginfo_path, pkginfo_path)
    File "/home/per/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/python/lib/python3.7/site-packages/wheel/metadata.py", line 160, in pkginfo_to_metadata
      for key, value in generate_requirements({extra: reqs}):
    File "/home/per/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/python/lib/python3.7/site-packages/wheel/metadata.py", line 138, in generate_requirements
      for new_req in convert_requirements(depends):
    File "/home/per/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/python/lib/python3.7/site-packages/wheel/metadata.py", line 103, in convert_requirements
      parsed_requirement = Requirement(req)
    File "/home/per/.local/share/ov/pkg/isaac_sim-2022.2.1/kit/python/lib/python3.7/site-packages/wheel/vendored/packaging/requirements.py", line 37, in __init__
      raise InvalidRequirement(str(e)) from e
  wheel.vendored.packaging.requirements.InvalidRequirement: Expected end or semicolon (after version specifier)
      opencv-python>=3.
                   ~~~^
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for gym
Running setup.py clean for gym
Building wheel for robomimic (setup.py) … done
Created wheel for robomimic: filename=robomimic-0.2.0-py3-none-any.whl size=223648 sha256=f5ce3917bbe8c9ad7b28ef1359b6f0e9aa1ccfc9ca8fd7d76c48fbdecd5638f1
Stored in directory: /tmp/pip-ephem-wheel-cache-qkd8ty9u/wheels/8a/4a/f3/675f3c3b67bdc1d7bb0d436bcf9a116f50dbe4015b50d429d4
Building wheel for rsl_rl (setup.py) … done
Created wheel for rsl_rl: filename=rsl_rl-1.0.2-py3-none-any.whl size=26098 sha256=b5fdb636c04f7c0b7f9853a2c2c54074dc84e123e38ab98fde8e63e38b459bce
Stored in directory: /tmp/pip-ephem-wheel-cache-qkd8ty9u/wheels/16/fc/a1/59b1f619615ed04a15f093dfd1f5d185f63cdf98de6f6b6e78
Building wheel for egl_probe (setup.py) … done
Created wheel for egl_probe: filename=egl_probe-1.0.2-cp37-cp37m-linux_x86_64.whl size=469974 sha256=37eca78501ce33c7b188e33dd5d2d3733c35083c30590e30bbddd0ea53b6e200
Stored in directory: /home/per/.cache/pip/wheels/b4/7a/9e/53a718766653a0fcffe7a7651621d7c2fdfd1e96c6c8e0d389
Successfully built robomimic rsl_rl egl_probe
Failed to build gym

This error does not happen with 2022.2.0, I know Orbit recommends to use 2022.2.0, but if your 2022.2.1 updates notes, you added updates for orbit, so I thought I would let you know.

Best

Per

1 Like

Hi @pfrivik - Someone from our team will review and get back to you.

Hi!

We have been using Orbit with 2022.2.1 release and our team did not encounter this issue. But very likely this is happening because some dependencies (SB3) moved to a new version. Let me try a fresh install and get back to you later today.

Feel free to open a GitHub issue on the Orbit repo to track the PR that looks into the fix.

GitHub - NVIDIA-Omniverse/Orbit: Unified framework for robot learning built on NVIDIA Isaac Sim

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.