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: EmptyOutputError: Model API eos46ev : predict did not produce an output. #322

Closed alaminumar closed 1 year ago

alaminumar commented 1 year ago

Describe the bug.

when i try to fetch eos46ev from the CLI it gives me an EmptyOutput Error.

Describe the steps to reproduce the behavior

1 activate ersilia 2 run ersilia -v fetch eos46ev

Expected behavior.

fetch the model

Screenshots.

Screenshot (85)

Operating environment

Ubuntu 20.04 LTS

Additional context

No response

GemmaTuron commented 1 year ago

Hi @alaminumar Let me explain a bit about this error. At fetching time, Ersilia tests 3 molecules to be sure the model works (you can see them printed in your screen as key and input). The result you should get there is: 19:00:45 | DEBUG | [{'input': {'key': 'LUHMMHZLDLBAKX-UHFFFAOYSA-N', 'input': 'CC1C2C(CC3(C=CC(=O)C(=C3C2OC1=O)C)C)O', 'text': 'CC1C2C(CC3(C=CC(=O)C(=C3C2OC1=O)C)C)O'}, 'output': {'probability': 0.20360326385165065}}, {'input': {'key': 'QRXWMOHMRWLFEY-UHFFFAOYSA-N', 'input': 'C1=CN=CC=C1C(=O)NN', 'text': 'C1=CN=CC=C1C(=O)NN'}, 'output': {'probability': 0.8622619164180295}}]

(I just ran it). You can see how I get a numeric probability instead of a None. I see two reasons why this is happening:

I am tagging @miquelduranfrigola here to see if he can provide some more guidance

ZakiaYahya commented 1 year ago

@GemmaTuron @alaminumar i'm getting the same error while fetching ersilia model eos526j. Model_eos56j_Error

and @GemmaTuron i don't think this is due to "ersilia not properly installed" because i fetch and predicted assigned ersilia model eos2v11 successfully, if the ersilia is not installed properly then other models and the dummy model also through this error while fetching

alaminumar commented 1 year ago

@ZakiaYahya have you solved the issue ? I tried doing it with a different model , it ran for 2 and a half hours only to give me the same error

GemmaTuron commented 1 year ago

Hi @alaminumar and @ZakiaYahya are you sure you have Git-LFS installed? this is a common error :)

Zainab-ik commented 1 year ago

I happened to have same error with model eos4tcc, I got the key and input results also. @ZakiaYahya @alaminumar , have you been able to resolve it?

@GemmaTuron , I have git LFS installed

alaminumar commented 1 year ago

@Zainab-ik unfortunately not yet

Malikbadmus commented 1 year ago

Hi @Zainab-ik and @alaminumar, I also encountered this error while i was fetching model eos157v. see issue #295 on how we resolve this.

ZakiaYahya commented 1 year ago

Hi @alaminumar and @ZakiaYahya are you sure you have Git-LFS installed? this is a common error :)

Yes when i saw the log, it has error refering gif-lfs, although i had installed it while installing ersilia model hub but still the conda environment didn't recognize it somehow. so, i reinstalled the git-lfs again in conda environment using conda install git-lfs -c conda-forge git-lfs install and rerun the model again and it runs successfully. @alaminumar @Zainab-ik go through your log history and see if your error occurs due to git-lfs, reinstall it again, close the terminal, open it again and rerun the model.

Zainab-ik commented 1 year ago

@ZakiaYahya I've gone through the process of reinstalling all my packages in the ersilia environment and I still can't resolve it.

FileNotFoundError: [Errno 2] No such file or directory this is the new error message

GemmaTuron commented 1 year ago

Hi @ZakiaYahya thanks, very helpful. Git-lfs is sometimes tricky to install.

@Zainab-ik and @alaminumar please share the FULL logs of the error so I can provide guidance. (use the flag > my.log 2>&1 at the end of your CLI)

Zainab-ik commented 1 year ago

Hi @ZakiaYahya thanks, very helpful. Git-lfs is sometimes tricky to install.

@Zainab-ik and @alaminumar please share the FULL logs of the error so I can provide guidance. (use the flag > my.log 2>&1 at the end of your CLI)

@GemmaTuron model eos4tcc, https://drive.google.com/file/d/1slnDmcMm4oo3Nj1JcCf8wi5Eee0KoTyk/view?usp=sharing this is my log file

Zainab-ik commented 1 year ago

I think i should open a new issue since it's different model but similar error

Zainab-ik commented 1 year ago

I think i should open a new issue since it's different model but similar error

I'm getting a new error eos4tcc.log

NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f43a46ed910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

not the error above again.

miquelduranfrigola commented 1 year ago

@GemmaTuron is this solved?