Bazel + pypi installation of mujoco
fails because of whitespace in name MuJoCo (mjpython).app
#2118
Closed
2 tasks done
Labels
bug
Something isn't working
Intro
Hi!
I am a MuJoCo user working on manipulation.
My setup
MuJoCo:
(built from dba32e8)
$ python -c "import mujoco; print(mujoco.__version__)" 3.2.3
API:
Python
OS:
What's happening? What did you expect?
Installing
mujoco
pypi package using Bazel'srules_python
fails because Bazel doesn't support whitespaces in filenames andmujoco
's wheel containsMuJoCo (mjpython).app
with whitespace in its name.This can be worked around at least a couple of different way. One way is to explicitly exclude
MuJoCo (mjpython).app
from the installation like done here: https://github.com/hartikainen/mjx-bazel-test/blob/d93ae5f8a005323fb248f600d5e6d5a94deb315a/MODULE.bazel#L18-L22. This is not ideal as someone might actually need theMuJoCo (mjpython).app
. I've verified that his works, though. Alternatively, bazelbuild/bazel#4327 suggests that--experimental_inprocess_symlink_creation
might fix the problem although I haven't verified this. The requirement for experimental flag seems unideal, however.Perhaps a better solution would be to replace the whitespace with an underscore and rename
MuJoCo (mjpython).app
toMuJoCo_(mjpython).app
to makemujoco
's Bazel installation a bit smoother?Steps for reproduction
Clone there repository here and run
bazel run //:mjx_test
from the project root.Minimal model for reproduction
N/A
Code required for reproduction
See above.
Confirmations
The text was updated successfully, but these errors were encountered: