Git Product home page Git Product logo

Comments (7)

lapp0 avatar lapp0 commented on August 22, 2024

Another thread tracking this issue https://forums.developer.nvidia.com/t/wsl2-and-isaac-gym-problem/192069/10

from isaacgymenvs.

kiwi-sherbet avatar kiwi-sherbet commented on August 22, 2024

I am using pyenv-virtualenv and having the same issues. Have you solved the issue?

from isaacgymenvs.

tsbertalan avatar tsbertalan commented on August 22, 2024

I haven't--I've moved to looking at other simulation platforms for my needs for now, and will revisit this if there's action from the authors towards better packaging.

from isaacgymenvs.

kiwi-sherbet avatar kiwi-sherbet commented on August 22, 2024

I figured out how to solve it.
The following installation commands resolved the issue.

ISAAC_VENV_NAME='Isaac_gym_env'
ISAACGYM_PATH='./isaacgym'
GYM_EXAMP_PATH='./IsaacGymEnvs'

CONFIGURE_OPTS=--enable-shared pyenv install 3.7.10
pyenv virtualenv 3.7.10 $ISAAC_VENV_NAME
pyenv activate $ISAAC_VENV_NAME

pip3 install -r ./requirements.txt # Install dependencies. 
pip3 install -e "$ISAACGYM_PATH/python"
pip3 install -e "$GYM_EXAMP_PATH"

from isaacgymenvs.

tsbertalan avatar tsbertalan commented on August 22, 2024

@kiwi-sherbet Do you have a CUDA GPU in that machine? It's not clear to me whether this thing is supposed to be able to run CPU-only or not.

from isaacgymenvs.

kiwi-sherbet avatar kiwi-sherbet commented on August 22, 2024

Yes, I am using CUDA 11.2. I have not tried running it with CPU only.

from isaacgymenvs.

tsbertalan avatar tsbertalan commented on August 22, 2024

I think that does it, though I won't really know until later; see below. The directory $PROJECT_DIR referenced below contains isaacgym and IsaacGymEnvs.

I ran the following on our lab's Ubuntu 18.04 server with an RTX 2080ti and driver 455.45.01 with CUDA 11.1 per nvidia-smi:

git clone https://github.com/pyenv/pyenv.git ~/.pyenv
cd ~/.pyenv && src/configure && make -C src
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.profile
echo 'eval "$(pyenv init -)"' >> ~/.profile
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
cd "$PROJECT_DIR"
ISAAC_VENV_NAME='Isaac_gym_env'
ISAACGYM_PATH='./isaacgym'
GYM_EXAMP_PATH='./IsaacGymEnvs'
sudo apt-get install libffi-dev  # Actually, first I did the next 3 commands without this, and the first pip install failed on pycollada==0.6. So, I had to
#   pyenv deactivate
#   pyenv uninstall 3.7.10/envs/Isaac_gym_env 
#   pyenv uninstall 3.7.10
# and then redo the pyenv install 3.7.10
CONFIGURE_OPTS=--enable-shared pyenv install 3.7.10
pyenv virtualenv 3.7.10 $ISAAC_VENV_NAME
pyenv activate $ISAAC_VENV_NAME

Activating the env here failed; it instructed me to restart the terminal.

pip3 install -r ./requirements.txt # This is my own file, but whatever.
pip3 install -e "$ISAACGYM_PATH/python"

Finally, I did the test script, as python isaacgym/python/examples/joint_monkey.py. This time, it failed due to OOM on the GPU, which is to be expected because we have a visitor using all the GPU RAM as he usually does. I'll ask him nicely to get off and then try again later. But it's probably fixed now?

from isaacgymenvs.

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.