I want to handle google drive files in google collateral

Asked 1 years ago, Updated 1 years ago, 64 views

I'd like to use Google collaboration to handle Google drive files, but when I entered the id of the file I wanted to use Google drive, I got the following error

ModuleNotFoundError: No module named 'google.appengine'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File"/usr/local/lib/python 3.6/dist-packages/googleapiclient/discovery_cache/file_cache.py", line 33, in <module>
    from oauth2client.contrib.locked_file import LockedFile
ModuleNotFoundError: No module named 'oauth2client.contrib.locked_file'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File"/usr/local/lib/python 3.6/dist-packages/googleapiclient/discovery_cache/file_cache.py", line 37, in <module>
    from oauth2client.locked_file import LockedFile
ModuleNotFoundError: No module named 'oauth2client.locked_file'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File"/usr/local/lib/python 3.6/dist-packages/googleapiclient/discovery_cache/_init__.py", line 41, in autodetect
    from.import file_cache
  File"/usr/local/lib/python 3.6/dist-packages/googleapiclient/discovery_cache/file_cache.py", line 41, in <module>
    'file_cache is unavailable when using oauth2 client>=4.0.0 or google-auth')
ImportError: file_cache is unavailable when using oauth2 client>=4.0.0 or google-auth

python python3 google-colaboratory

2022-09-30 20:17

1 Answers


From the menu at the top of the Google Collaboration screen Insert → Press Code Snippet
From the list of snippets on the left side of the screen
"Open files from Google Drive"

Select to copy the code to the cell.
By running that cell (authentication required) Google Drive will be mounted, so you will be able to handle Google Drive files.


2022-09-30 20:17

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.