-
Notifications
You must be signed in to change notification settings - Fork 488
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
Unable to open file ".../meshes_unplug" #184
Comments
I'm facing the same issue. It seems the path is limited to 128 chars? I'm using macOS Mojave and I installed |
I got exactly the same error with Anaconda, Mac OS Mojave 10.14.5, and # Versions
$ python --version
Python 3.7.3
$ conda --version
conda 4.6.14
$ pip list | grep roboschool
roboschool 1.0.48
# Reproduce the result
$ python
Python 3.7.3 (default, Mar 27 2019, 16:54:48)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import gym, roboschool
>>> env = gym.make("RoboschoolAtlasForwardWalk-v1")
>>> env.reset()
array([-5.0000000e-01, 2.1938172e-07, 1.0000000e+00, 0.0000000e+00,
0.0000000e+00, 0.0000000e+00, 0.0000000e+00, -0.0000000e+00,
-1.0129737e-01, 0.0000000e+00, -2.7300680e-01, 0.0000000e+00,
-2.2963487e-02, 0.0000000e+00, 3.8692439e-01, 0.0000000e+00,
2.7873237e-02, 0.0000000e+00, -9.6822846e-01, 0.0000000e+00,
-9.2063069e-01, 0.0000000e+00, -1.0073267e+00, 0.0000000e+00,
2.6331929e-02, 0.0000000e+00, -5.0000000e+00, 0.0000000e+00,
-2.5171056e-01, 0.0000000e+00, -3.0473593e-01, 0.0000000e+00,
-5.6794822e-02, 0.0000000e+00, -1.0301926e+00, 0.0000000e+00,
1.0308630e+00, 0.0000000e+00, -1.0177650e+00, 0.0000000e+00,
-2.0845551e-02, 0.0000000e+00, 5.0000000e+00, 0.0000000e+00,
-6.0120189e-01, 0.0000000e+00, 4.7180455e-02, 0.0000000e+00,
4.6646124e-01, 0.0000000e+00, -1.0220735e+00, 0.0000000e+00,
2.9406804e-01, 0.0000000e+00, -9.1966977e-03, 0.0000000e+00,
4.9638817e-01, 0.0000000e+00, 2.7587848e-02, 0.0000000e+00,
4.2250580e-01, 0.0000000e+00, -9.1844368e-01, 0.0000000e+00,
1.5770590e-01, 0.0000000e+00, -6.2665530e-02, 0.0000000e+00,
0.0000000e+00, 0.0000000e+00], dtype=float32)
>>> env.render()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/keiohta/anaconda3/envs/tf2/lib/python3.7/site-packages/gym/core.py", line 230, in render
return self.env.render(mode, **kwargs)
File "/Users/keiohta/anaconda3/envs/tf2/lib/python3.7/site-packages/roboschool/gym_urdf_robot_env.py", line 90, in render
return self.scene.cpp_world.test_window()
RuntimeError: cannot load '/Users/keiohta/anaconda3/envs/tf2/lib/python3.7/site-packages/roboschool/models_robot/atlas_description/meshes_unplugged/pelvis': Unable to open file "/Users/keiohta/anaconda3/envs/tf2/lib/python3.7/site-packages/roboschool/models_robot/atlas_description/meshes_unplugged/pelvis".
# Check if `pelvis` exists
$ ls /Users/keiohta/anaconda3/envs/tf2/lib/python3.7/site-packages/roboschool/models_robot/atlas_description/meshes_unplugged/
l_foot.dae l_lleg.dae l_uglut.dae ltorso.dae pelvis.dae r_foot.dae r_lleg.dae r_talus.dae r_uglut.dae utorso.dae
l_lglut.dae l_talus.dae l_uleg.dae mtorso.dae r_clav.dae r_lglut.dae r_scap.dae r_uarm.dae r_uleg.dae |
macOS Mojave 10.14.5 Step 1
Step 2In my case command fast way
You need to add the first 2 lines of code each time before import roboschool. Always!
long wayFind the site.py somewhere in your Anaconda/envs/env/python directory. In my case I have found it here: /Users/khakimov/Anaconda/anaconda3/envs/atlas/lib/python3.5/site.py. Open site.py and read comments. It gives your intuition what is going on.
P.S. more details are here and manipulations with PYTHONPATH didn't help me. |
I'm trying to run a simple gym program using the RoboschoolAtlasForwardWalk-v1 environment. Here's my code:
But I'm getting the following error:
Both the gym and roboschool packages were installed into an Anaconda package environment, and there doesn't seem to be any problem with importing the packages themselves. I've inspected the relevant directory where the issue is (
/atlas_description
) and I found that it contains a folder calledmeshes_unplugged
but nomeshes_unplug
file or folder. I've played around with my setup and browsed the roboschool issues list for a solution, but haven't found one. Any idea on whether this is a bug with the roboschool library or more likely an issue on my end?OS is MacOS.
The text was updated successfully, but these errors were encountered: