Intro
Hi!
I am developing a converter at NVIDIA that converts MuJoCo's XML files to OpenUSD format.
My setup
- MuJoCo 3.5.0
- Python 3.11.13
- Windows 11
What's happening? What did you expect?
Cannot open XML files with UTF-8 characters in their directory names using "bin/simulate.exe".
I am getting the error "ParseXML: Error opening file".
I have confirmed that this also fails with the following mujoco.MjSpec.from_file in Python.
spec = mujoco.MjSpec.from_file(path.as_posix())
Note: This only occurs in Windows environments. I have confirmed that it does not occur on Linux (Ubuntu 22.04).
Steps for reproduction
- Create a directory named "C:/temp/UTF-8のディレクトリ".
Please create directory names using multibyte character sets such as Japanese or Chinese.
- Copy the "model/cube" directory from the MuJoCo repository to this directory.
The directory structure will be as follows.
C:
[temp]
[UTF-8のディレクトリ]
[cube]
[assets]
blue.png
...
cube_3x3x3.xml
README.md
- Launch MuJoCo's "bin/simulate.exe" and drag and drop the xml file from this directory.
- The following error is displayed, and loading fails.
ParseXML: Error opening file 'C:\temp\UTF-8のディレクトリ\cube\cube_3x3x3.xml'
Minimal model for reproduction
No response
Code required for reproduction
No response
Confirmations
Intro
Hi!
I am developing a converter at NVIDIA that converts MuJoCo's XML files to OpenUSD format.
My setup
What's happening? What did you expect?
Cannot open XML files with UTF-8 characters in their directory names using "bin/simulate.exe".
I am getting the error "ParseXML: Error opening file".
I have confirmed that this also fails with the following
mujoco.MjSpec.from_filein Python.Note: This only occurs in Windows environments. I have confirmed that it does not occur on Linux (Ubuntu 22.04).
Steps for reproduction
Please create directory names using multibyte character sets such as Japanese or Chinese.
The directory structure will be as follows.
Minimal model for reproduction
No response
Code required for reproduction
No response
Confirmations