Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading a URDF fail if LD_DEBUG=libs is set in the env variable #52

Closed
traversaro opened this issue Nov 25, 2024 · 1 comment · Fixed by #53
Closed

Loading a URDF fail if LD_DEBUG=libs is set in the env variable #52

traversaro opened this issue Nov 25, 2024 · 1 comment · Fixed by #53
Assignees

Comments

@traversaro
Copy link
Collaborator

If I set LD_DEBUG=libs is set, the loading of URDF file is failing with error:

ImportError while loading conftest '/home/straversaro-iit.local/jaxsim/tests/conftest.py'.
tests/conftest.py:6: in <module>
    import rod
.pixi/envs/tasks-gpu/lib/python3.12/site-packages/rod/__init__.py:136: in <module>
    check_compatible_sdformat(specification_version="1.10")
.pixi/envs/tasks-gpu/lib/python3.12/site-packages/rod/__init__.py:123: in check_compatible_sdformat
    xmltodict.parse(
.pixi/envs/tasks-gpu/lib/python3.12/site-packages/xmltodict.py:359: in parse
    parser.Parse(xml_input, True)
E   xml.parsers.expat.ExpatError: junk after document element: line 2, column 3

This is a problem of using an external program instead of a proper library (see #30). It may be possible to mitigate/solve the problem by only considering the stdout output instead of the stderr, but I did not checked.

@flferretti
Copy link
Collaborator

Thanks @traversaro for reporting this! Can you try if the modifications of #53 fix that issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants