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: Ersilia Setup problem #334

Closed Dorothy2020 closed 1 year ago

Dorothy2020 commented 1 year ago

Describe the bug.

Ersilia serve models cannot be fetched

Describe the steps to reproduce the behavior

https://www.oreilly.com/library/view/ssh-the-secure/0596008953/ch07s03.html Click on the link to solve the error in verbose mode

Expected behavior.

EmptyOutputError

Screenshots.

Screenshot from 2022-10-14 07-39-43

Operating environment

Ubuntu 20.04

Additional context

https://www.oreilly.com/library/view/ssh-the-secure/0596008953/ch07s03.html

Femme-js commented 1 year ago

HI @Dorothy2020

Have you fetched the model first?

Usually, You create the conda environment first, install all the requirements, and then fetch the model. After fetching you can serve the models.

From the error I can see, you might not have installed it. (pip install -e .)

Dorothy2020 commented 1 year ago

Hello @Femme-js , yes I did fetch the model and it worked perfectly , so when I write ersilia serve command that's when I get the error

GemmaTuron commented 1 year ago

Hi @Dorothy2020

We need to see the log of the error in order to provide guidance. Please add the -v flag and save the error log. Also, I see you jumped directly to testing this model but I haven't seen you comment on the first steps, which are testing that the CLI works and testing a simple model, eos3b5e. Please follow the steps as some models are quite complex and before using them you must make sure ersilia is properly installed

Dorothy2020 commented 1 year ago

Thank you @GemmaTuron

GemmaTuron commented 1 year ago

Hi @Dorothy2020

I am just following on the thread, can you confirm if ersilia works? Try: conda activate ersilia ersilia --help If this works fine, then try to fetch the model and store the log file.

Dorothy2020 commented 1 year ago

@GemmaTuron I was able to install the ersilia successfully following ersilia-book: https://ersilia.gitbook.io/ersilia-book:

1.Activated ersilia using conda activate ersilia.

  1. Checked on the help using command ersilia --help
  2. Check on the log using command ersilia catalog

Screenshot for the successful installation of ersilia: Screenshot from 2022-10-20 20-03-11

Tested a few models using the following commands:

  1. Activated ersilia using conda activate ersilia
  2. Fetched the models using ersilia -v fetch model eos6oli
  3. Serve the model using command ersilia server eos6oli
  4. Run the predictions using command ersilia api -i 'CCCOCCC'

Screenshot for model fetching of ersilia: Screenshot from 2022-10-23 15-31-53

Operating system: Ubuntu 20.04.5 Python version: Python 3.7.13 conda version :conda 22.9.0

Dorothy2020 commented 1 year ago

@GemmaTuron can I now close the issue