Comments (8)
Hi, I see you are running it on a Windows machine, may I ask how are you installing the lib? could you try to install it from source? I just realized I didn't updated the latest lib version on PyPI (I'll do it with the next release - almost there), sorry about that.
from rex-gym.
I have installed it from source. Then tried using pypi on another environment . But both seem to give the same error.
from rex-gym.
Thanks for pointing this out, I'll test the library on a Windows machine.
from rex-gym.
Here the problem was 'policy_dir' was pointing to 'd:\anacondar\envs\rex\rex_gym/policies/galloping/balanced' but there was no folder named 'rex_gym' in 'd:\anaconda\envs\rex' . So I manually copied the rex_gym folder there and it solved my problem.
Will be glad to know if it's a environment problem or any step that i missed or anything else.
Also , thanks for sharing the amazing work .
from rex-gym.
Oh I see, thanks. weird. The setup.py should copy the lib data into the env.. I think there is also an issue with the path (\
while instead of /
). I'll fix this. Thanks!
from rex-gym.
This bug was fixed with 0.2.7
. Feel free to reopen this issue if doesn't work for you.
from rex-gym.
I comment this in case someone would have the same problem:
I am using Ubuntu 18.04, 'venv' to create the environment, and the version 0.2.7. And I had the same problem that @arcgolatkar, but to solve the problem I copied manually the 'rex_gym' folder into '/path-to-env/rex/lib/python3.7/dist-packages'. In case you don't have the 'dist-packages', then you can create it by yourself.
Anyways, if you are using another OS or Linux distro you can enter to the 'policy_player.py' file, located in 'playground' folder, and print the 'policy_dir' to see where you have to copy the 'rex_gym' folder. However, I think it should be a general solution for this.
Congrats @nicrusso7 for the project, it is an amazing tool and great papers :)
from rex-gym.
If anyone is still struggling with this issue:
Based on the previous answer I have something to add/ a slightly different way: I am using Ubuntu 20.04. and as well 'venv' to create the environment. Version 0.2.7 as well. I faced the same problem as previously mentioned. For me the solution was changing just an index in the 'policy_player.py' script, located in 'playground' folder. So in line 15 I changed the '-1' to '0'.
The problem was that site.getsitepackages() returns multiple paths and for me the wrong one was selected. The path selected was '/path-to-env/rex/lib/python3.7/dist-packages', but on the system I am running it has to be '/path-to-env/rex/lib/python3.7/site-packages'. This can be accomplished by just changing the index as mentioned. Hope this may help someone..
Thanks for publishing this great project! :)
from rex-gym.
Related Issues (20)
- Custom Object Detection Algorithm HOT 1
- Question about real robot and servos HOT 1
- how to learn a policy from scratch HOT 1
- General questions HOT 1
- Offscreen rendering made terrain disappear HOT 7
- Robot walking backwards in headless mode HOT 8
- issue with installing HOT 7
- Considerations for 'Learning Quadrupedal Locomotion over Challenging Terrain' Paper HOT 2
- Performance issue in the definition of append, rex_gym/agents/ppo/memory.py HOT 3
- Issue with multiple envs and determinism HOT 1
- change learning algorithm
- running error in windows
- how to judge a trained policy is good or bad?
- cannot run HOT 2
- Issue with running a pre-trained policy
- Modules dependencies error HOT 1
- about training use gpu or cpu HOT 4
- Not sure if my training is working. No window opens. HOT 6
- Training from command line example HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rex-gym.