Git Product home page Git Product logo

Comments (8)

nicrusso7 avatar nicrusso7 commented on May 23, 2024

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.

arcgolatkar avatar arcgolatkar commented on May 23, 2024

I have installed it from source. Then tried using pypi on another environment . But both seem to give the same error.

from rex-gym.

nicrusso7 avatar nicrusso7 commented on May 23, 2024

Thanks for pointing this out, I'll test the library on a Windows machine.

from rex-gym.

arcgolatkar avatar arcgolatkar commented on May 23, 2024

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.

nicrusso7 avatar nicrusso7 commented on May 23, 2024

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.

nicrusso7 avatar nicrusso7 commented on May 23, 2024

This bug was fixed with 0.2.7. Feel free to reopen this issue if doesn't work for you.

from rex-gym.

DPR00 avatar DPR00 commented on May 23, 2024

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.

datamomo avatar datamomo commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.