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: Google Colab Runntime needs to be refreshed #378

Closed GemmaTuron closed 1 year ago

GemmaTuron commented 1 year ago

Describe the bug.

It has been reported in several issues that running Ersilia on Google Colab crashes sometimes. I am listing here a few of the issues where this has been reported

372

366

347

The common error message in all of them seems to be with tqdm though I am not sure this is the source cause:

import tqdm as _tqdm
ModuleNotFoundError: No module named 'tqdm'

It is known that ipywidgets (needed by tqdm) was not supported by Googlecolab, but in principle it is now, but this might be related.

The temporal bugfix is to delete and disconnect runtime everytime and this solves the error

Describe the steps to reproduce the behavior

I can't consistenly reproduce the steps, as the same code will run sometimes ok and others not

Expected behavior.

No response

Screenshots.

No response

Operating environment

Google Colab

Additional context

No response

mamabear25 commented 1 year ago

I deleted and disconnected runtime using this command !kill -9 -1 from within a cell but i'm still getting a traceback error

Malikbadmus commented 1 year ago

@mamabear25 , use this instead. from google.colab import runtime runtime.unassign()

mamabear25 commented 1 year ago

@malikbadmus I just tried it, same output.... my collab

Zainab-ik commented 1 year ago

389 I got this error and try the temporal fixing but it didn't work.

GemmaTuron commented 1 year ago

I will close this issue since the latest template versions do not give problems.