Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Input/output error while using google colab with google drive

When I use google colab I get this error more than once and randomly Sometimes it works and sometimes not

OSError: [Errno 5] Input/output error

is this error occur when I interface with google drive ? any solutions for this bug

like image 961
Omar Sharawy Avatar asked Mar 03 '19 20:03

Omar Sharawy


People also ask

What are the restrictions for Google Colab?

Colab Pro limits RAM to 32 GB while Pro+ limits RAM to 52 GB. Colab Pro and Pro+ limit sessions to 24 hours. Colab Pro does not provide background execution, while Pro+ does. Colab Pro and Pro+ do not offer a full version of JupyterLab.

Why my Google colab is not working?

an internet connection problem: so check your internet connection first, or try opening other sites. the notebook you are trying to open is corrupted: try to open a new notebook from colab.


1 Answers

From the FAQ --

Google Drive operations can time out when the number of files or subfolders in a folder grows too large. If thousands of items are directly contained in the top-level "My Drive" folder then mounting the drive will likely time out. Repeated attempts may eventually succeed as failed attempts cache partial state locally before timing out. If you encounter this problem, try moving files and folders directly contained in "My Drive" into sub-folders. A similar problem can occur when reading from other folders after a successfuldrive.mount(). Accessing items in any folder containing many items can cause errors like OSError: [Errno 5] Input/output error (python 3) or IOError: [Errno 5] Input/output error (python 2). Again, you can fix this problem by moving directly contained items into sub-folders.

like image 84
Bob Smith Avatar answered Sep 18 '22 11:09

Bob Smith