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: eos2r5a predict did not produce an output #341

Closed mamabear25 closed 1 year ago

mamabear25 commented 1 year ago

Describe the bug.

incomplete fetch: end of ouput with an error

Error message:

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

Γ— Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.

more error messages

Something went wrong with Ersilia... EmptyOutputError

Error message: Model API eos2r5a:predict did not produce an output

Describe the steps to reproduce the behavior

1) ersilia fetch -v eos2r5a

Expected behavior.

fetch model succesfully

Screenshots.

Screenshot 2022-10-14 at 19 38 31 Screenshot 2022-10-14 at 19 38 39

Operating environment

macOs Monterey Version 12.5.1

Additional context

No response

Zainab-ik commented 1 year ago

@mamabear25 kindly add your log file for easy debugging.

GemmaTuron commented 1 year ago

Hi @mamabear25 as Zainab just pointed out I would need to see the full log error file for helping you

Thanks!

mamabear25 commented 1 year ago

Here's my log my.log

GemmaTuron commented 1 year ago

Hi @mamabear25

It seems that the issue is on git - lfs:

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

Make sure it is installed and recognized, sometimes after git lfs install you need to restart the system.

Chigoziee commented 1 year ago

This was helpful, installing git - lfs solved the issue.

mamabear25 commented 1 year ago

I installed git-lfs but I'm still having the same issue. did you install it with pip or conda? @Chigoziee

GemmaTuron commented 1 year ago

I'd suggest conda-forge, and re-start the whole system. Then check if it is recoginsed inside the ersilia conda environment

conda install git-lfs -c conda-forge git-lfs install

mamabear25 commented 1 year ago

On it!!!

mamabear25 commented 1 year ago

still doesn’t work, I've fetched other models successfully and even tried models assigned to other people and it was successful.

GemmaTuron commented 1 year ago

mmm I also see this worrying line on your initial screenshot about failing with XGBoost when using pip (line 110)

mamabear25 commented 1 year ago

I was using the command pip install git-lfs instead of git-lfs install to initialize Git LFS

Solution:

  1. installed xgboost again (Not sure if it had any effect)

  2. conda install git-lfs -c conda-forge

  3. git-lfs install

  4. ersilia -v fetch eos2r5a

response:

πŸ‘ Model eos2r5a fetched successfully!

Thanks so much @GemmaTuron

GemmaTuron commented 1 year ago

yay there we go!

Im closing this issue then!