Skip to content

Some Package Conflict and Solution  #11

@XuXinhangNTU

Description

@XuXinhangNTU

First Thanks to your amazing works!
So I find some package version conflict that may cause crush after following the installation guidance.

For successfully run the Synchronous Simulation, in json.py the line 132
need change the
if (rgba == [0.5, 0.5, 0.5, 1.0]).all(): -> if jp.array_equal(rgba, jp.array([0.5, 0.5, 0.5, 1.0])):

to avoid the error

Processing rollout for visualization
Traceback (most recent call last):
  File "/usr/local/bin/dial-mpc", line 33, in <module>
    sys.exit(load_entry_point('dial-mpc', 'console_scripts', 'dial-mpc')())
  File "/root/dial-mpc/dial_mpc/core/dial_core.py", line 290, in main
    webpage = html.render(
  File "/usr/local/lib/python3.10/dist-packages/brax/io/html.py", line 76, in render
    return render_from_json(json.dumps(sys, states), height, colab, base_url)
  File "/usr/local/lib/python3.10/dist-packages/brax/io/json.py", line 132, in dumps
    if (rgba == [0.5, 0.5, 0.5, 1.0]).all():
  File "/usr/local/lib/python3.10/dist-packages/jax/_src/numpy/array_methods.py", line 577, in deferring_binary_op
    raise TypeError(f"unsupported operand type(s) for {opchar}: "
TypeError: unsupported operand type(s) for ==: 'ArrayImpl' and 'list'

For successfully run the Asynchronous Simulation

The mojuco package should be <=3.2.4 because the mojuco.mjv_makeConnector is deprecated in version 3.2.5
Also the mujoco-mjx should change version to the corresponding mujuco package

To avoid

Traceback (most recent call last):
  File "/usr/local/bin/dial-mpc-sim", line 33, in <module>
    sys.exit(load_entry_point('dial-mpc', 'console_scripts', 'dial-mpc-sim')())
  File "/root/dial-mpc/dial_mpc/deploy/dial_sim.py", line 347, in main
    mujoco_env.main_loop()
  File "/root/dial-mpc/dial_mpc/deploy/dial_sim.py", line 192, in main_loop
    mujoco.mjv_makeConnector(
AttributeError: module 'mujoco' has no attribute 'mjv_makeConnector'. Did you mean: 'mjv_connector'?

And I also contribute a docker, feel free to play!

docker pull xuxinhang007/dialmpc:v1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions