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: IndexError encountered 'ersilia -v api predict -i "eml_canonical.csv" -o "eos8d8a.csv" > my.log 2>&1' #330

Closed icey57 closed 1 year ago

icey57 commented 1 year ago

Describe the bug.

When I tried to ran the model 'eos8d8a' to predict, the 'fetch', 'card', 'serve' commands ran correctly, but an error occurred at the API 'predict' command. Here is the error log file. my.log

Describe the steps to reproduce the behavior

No response

Expected behavior.

It should have created a new csv file named 'eos8d8a.csv', but in fact the terminal reminded an IndexError:list index out of range.

Screenshots.

image

Operating environment

Ubuntu-22.04.1

Additional context

No response

GemmaTuron commented 1 year ago

Hi @ICEY57

Quick question: did you specify python 3.7 when creating ersilia's conda environment? I see in your commands python 3.9

UChisom commented 1 year ago

Hi @GemmaTuron , I'm curious.

Is Ersilia only compatible with Python 3.7 for now?

Referring to the installation guide in the Gitbook, pre requisite 2: python and conda states that: We have tested our tools on Python 3.7 and above

I used version 3.7 though

Femme-js commented 1 year ago

@UChisom you can try recreating the conda environment with Python 3.7 version, if you hadn't done this before.

conda create -n ersilia python=3.7

UChisom commented 1 year ago

@Femme-js mine works fine, thanks.

I'm asking for curiousity :)

icey57 commented 1 year ago

Problems solved. It seems that recreate the python 3.7 version environment helps. @GemmaTuron @Femme-js thanks for help

icey57 commented 1 year ago

I guess maybe Ersilia only compatible with Python 3.7 for now @UChisom