tud-airlab / mppi-isaac

Model Predictive Path Integral Control using isaacgym for rollouts, gpu-accelerated
178 stars 21 forks source link

"Poetry install --with dev" fails by filling up all my RAM #17

Closed eliatrevisan closed 1 year ago

eliatrevisan commented 1 year ago

Using:

After having cloned the repository and copied isaacgym into the thirdparty folder, I run: pyenv local 3.8.10 poetry install --with dev This returns:

The currently activated Python version 3.10.6 is not supported by the project (^3.8,<3.9). Trying to find and use a compatible version. Using python3 (3.8.10) Installing dependencies from lock file

Without progressing while slowly eating up 64gb of ram. Running poetry install -vvv --with devgives:

The currently activated Python version 3.10.6 is not supported by the project (^3.8,<3.9). Trying to find and use a compatible version. Trying python3 Using python3 (3.8.10) Virtualenv mppiisaac-WV9Whl4j-py3.8 already exists. Using virtualenv: /home/elia/.cache/pypoetry/virtualenvs/mppiisaac-WV9Whl4j-py3.8 Installing dependencies from lock file

Finding the necessary packages for the current system

with the same result.

maxspahn commented 1 year ago

Could you try to do a fresh install after deleting the virtual environment using poetry env remove python3? And then, tell poetry precisely which python to use using poetry env use /path/to/pyenv/python/version.

And make sure you load poetry after pyenv so

export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv > /dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"

before

export PATH="$HOME/.poetry/bin:$PATH"
maxspahn commented 1 year ago

https://github.com/python-poetry/poetry/issues/651

eliatrevisan commented 1 year ago

I tried removing the virtual environment, setting the local python version with pyenv, then specifying to poetry which python to use.

poetry env remove python3
pyenv local 3.8.10
poetry env use $(which python3)

It seemed to work but then poetry install failed to install importlib-metadata.

The working solution was to reinstall poetry. Apparently, poetry has to be installed after pyenv to work properly.