Questions tagged [pydrive]

PyDrive is a wrapper library of google-api-python-client that simplifies many common Google Drive API tasks.

PyDrive is a wrapper library of google-api-python-client that simplifies many common Google Drive API tasks.

269 questions
0
votes
0 answers

refresh Google drive API authentication credentials "GoogleAuth().Refresh()", how to refresh token?

well the issue that there's a grant issue occur while refresh method tries to run "GoogleAuth().Refersh()". any idea how can I get a permanent refresh token ? or how to accomplish refresh correctly ? was trying to refresh grant access on…
0
votes
1 answer

How do I delete a file from a 'shared' folder on my shared Google drive using pydrive?

I'm trying to delete an existing excel file so that I can upload the newest version. The file is in a shared folder and thus the struggle, I could not really find anything on the deleting of a file in a shared folder. Below is the piece of code that…
BrianTM
  • 11
  • 1
0
votes
0 answers

How to resolve PyDrive authentication permanantly

I had one more problem with my app on stremalit. I am using PyDrive library to connect with google drive where I am uploading photos for educational purposes. The problem is that every week the app is throwing authentication error. The app is on the…
0
votes
0 answers

Pydrive can only see files created by itself

I am working with pydrive to list files in a directory using the following loop file_list = drive.ListFile({'q': 'trashed=false'}).GetList() for file1 in file_list: print('title: %s, id: %s' % (file1['title'], file1['id'])) I adjusted the…
0
votes
0 answers

google 0Auth screen authentication not appearing after deploying my django web aplication in pythonanywhere

google 0Auth screen I already finished my django web app for my capstone project. This application use google drive API, my google drive will serves as the storage for the files that will be uploaded by the users. It is working fine on my local…
0
votes
0 answers

AttributeError: 'GoogleDrive' object has no attribute 'files'

I was running a program where, the code sends a Folder ID, a folder name, an Image name and an Image to a function. The folder ID is the ID of Parent folder. The Folder name is the name of Child folder. The save_image`` code will check if there…
0
votes
0 answers

Python: Get list of files including their folder location within google drive

I have this google script which enables us to list of files within google our drive, including the name, the location and it's url. I have been looking quite a while to find a python equivalent to do the same task but no avail. Is there any way, we…
0
votes
1 answer

Getting 'Invalid query' error when doing name='test' to Google Drive API

I am using PyDrive to fetch list of file names from a Google Drive folder from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive GoogleAuth.DEFAULT_SETTINGS['client_config_file'] = r"client_secrets.json" gauth =…
Umair Ayub
  • 19,358
  • 14
  • 72
  • 146
0
votes
0 answers

Import error of from pydrive.auth import GoogleAuth

I am trying to authenticate google drive into google colab normally i use ` from pydrive.auth import GoogleAuth ` but now it's show ImportError: cannot import name 'mtls' from 'google.auth.transport'…
Titan
  • 13
  • 2
0
votes
1 answer

Pydrive upload error: pydrive.files.ApiRequestError

I am creating a flask application in python that needs to move local files to google drive using the Pydrive library and Google Drive API. All goes well until I upload the file and then I get the following error: pydrive.files.ApiRequestError:…
0
votes
0 answers

Pydrive Authentication Issue

I have a python script that I'm trying to push excel files to google sheets. The code I made works great when running from the source code, but when I try to run it from a compiled exe file it fail when trying to authenticate. It sometimes fails at…
0
votes
1 answer

Attach/reattach subtitles to video in Google Drive

I have a directory of video files in my Google Drive that I would like to attach subtitles to, and keep the subtitles updated regularly. I am aware that this can be achieved through the in-browser Google Drive interface, by manually right-clicking…
Isaac B
  • 160
  • 8
0
votes
1 answer

Kivy for mobile and use drive files

Y want to access googel drive file from my mobile, in apk made in kivy. in PC is workink perfectly,but not in mobile,when is loading...crash. tihs is my code: from pydrive2.auth import GoogleAuth from pydrive2.drive import GoogleDrive gauth =…
txema
  • 1
  • 1
0
votes
0 answers

Read files in Python using PyDrive

I am trying to read files (specifically ,txt, .py, and .nii.gz type files) in Python using PyDrive. So far, I am able to get a list of file names and file ids (https://stackoverflow.com/a/47764444) but not sure how to proceed reading the files in…
0
votes
1 answer

Update CSV file on Google Drive to be used on Data Studio with PyDrive

I need to update a CSV file located on my Drive because I use it on a dashboard in Google Data Studio. Until now, I was using this code : previous_GDS_df = pd.read_excel(path_to_GDS_file) pd.concat(objs=[previous_GDS_df,…
PaulFaguet
  • 13
  • 3