Improbable-AI / walk-these-ways

Sim-to-real RL training and deployment tools for the Unitree Go1 robot.
https://gmargo11.github.io/walk-these-ways/
Other
492 stars 129 forks source link

ImportError: cannot import name 'PrefixProto' from 'params_proto' #3

Closed manipulability closed 1 year ago

manipulability commented 1 year ago

Thank you for sharing your awesome code!

After installing the isaac gym and go1_gym, the ml-dash worked fine. However, when I ran python scripts/test.py, I have error messages like this:

File "/home/walk-these-ways/go1_gym/envs/base/legged_robot_config.py", line 3, in <module>
    from params_proto import PrefixProto, ParamsProto
ImportError: cannot import name 'PrefixProto' from 'params_proto' (/home/venv/walk-these-ways/lib/python3.8/site-packages/params_proto/__init__.py)

After that, I updated params_proto via pip install params-proto==2.10.0, and then I confirmed that python scripts/test.py works well,, but I have other error messages as below when I ran `python -m ml_dash.app'

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/venv/walk-these-ways/lib/python3.8/site-packages/ml_dash/app.py", line 5, in <module>
    from params_proto import cli_parse, Proto
ImportError: cannot import name 'cli_parse' from 'params_proto' (/home/venv/walk-these-ways/lib/python3.8/site-packages/params_proto/__init__.py)

Have you ever experienced such these issues?

I ran your code on Ubuntu 22.04, python3.8.

manipulability commented 1 year ago

Oh, I jush solve my issue.

I confirmed ml-dash works well, after updating pip install ml-dash==0.3.25

developermastermind07 commented 1 year ago

@manipulability I am also facing same problem. Can you help me out. Following are the details: OS: Ubunut 18.04 params_proto 2.10.5 ml-dash-app 0.3.20 after installing ml-dash-ap 0.30.25 I am getting following error ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. go1-gym 1.0.0 requires ml_dash==0.3.20, but you have ml-dash 0.3.25 which is incompatible.

Works for me after installting ml-dash 0.3.25 but pip install giving above error