ersilia-os / ersilia

The Ersilia Model Hub, a repository of AI/ML models for infectious and neglected disease research.
https://ersilia.io
GNU General Public License v3.0
203 stars 131 forks source link

🐛 Bug: Error with the git lfs command, it does not install. git: 'lfs' is not a git command. See 'git --help'. #376

Closed carcablop closed 1 year ago

carcablop commented 1 year ago

Describe the bug.

When I fetch the model, despite having followed the steps and installed git lfs correctly, as we see below:

`(base) carcablop@carcablop-VirtualBox:~$ conda install git-lfs -c conda-forge
Collecting package metadata (current_repodata.json): done
Solving environment: done

# All requested packages already installed.

Retrieving notices: ...working... done
(base) carcablop@carcablop-VirtualBox:~$ git-lfs install
Git LFS initialized.

In the fetch log the problem that it has not been installed continues to appear. Despite being with the active environment, and installing it with the ersilia conda environment, the same problem continues, as indicated below in the log:

(ersilia) carcablop@carcablop-VirtualBox:~$ git-lfs install
Git LFS initialized.
(ersilia) carcablop@carcablop-VirtualBox:~$ git-lfs --version
git-lfs/3.2.0 (GitHub; linux amd64; go 1.18.2)

eos526j_fetch_5.log

After installing ersilia again following the steps in the Ersilia book, and doing git lfs --version to verify that it is installed and active, the result is that this command is not recognized as if it had not been installed.

Describe the steps to reproduce the behavior

  1. ersilia -v fetch eos526j > eos526j_fetch_5.log 2>&1 this command is executed with the ersilia conda environment

Expected behavior.

git: 'lfs' is not a git command. See 'git --help'.

Screenshots.

No response

Operating environment

Ubuntu 20.04.3 LTS

Additional context

No response

carcablop commented 1 year ago

To fix the problem, the following steps are necessary:

Activate the ersilia environment. Use the following commands to install git-lfs. sudo apt install git-lfs

This helped me to definitively install the git -lfs and the problem did not appear again, since with the command of the guide when I did fetch it did not recognize it as a command. In the following log you can see how the problem no longer appears: eos526j_fetch_6.log