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

Uploading a folder to Google Drive

I am trying to upload a folder to Google Drive but after reading and doing some research it seems it is not so straight as I thought. I tried to check pydrive, but this gives only the opportunity to create a file, or to upload an existing file. What…
robsanna
  • 433
  • 1
  • 7
  • 16
0
votes
0 answers

About listup all the files byusing pydrive

Sorry for my poor english and i am a beginner of pydrive user. now i am trying to get all the files names from my google drive. here is my drive.py: from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive gauth =…
chw
  • 41
  • 4
0
votes
1 answer

77Giga data load in Google.colab

I have a tar.gz file that contains 77 gigabyte of data and i am trying to load it into my Google.colab. But i get "Runtime died" error and then it automaticly restarts. Please can anyone help?
0
votes
1 answer

How to read files inside a folder in Drive inside a notebook

I want to read the dataset from drive inside Google Colab Notbook. how can I do that? I did something like this but it's not working. train_data_dir = "data/train/" validation_data_dir = "data/validation/" The data folder is like this: data/ …
Oussama
  • 603
  • 6
  • 10
  • 18
0
votes
1 answer

How to upload hdf5 files of huge size into google colab?

I have a hdf5 file (image dataset) of size 17GB which I need to upload and use in the Google Colab and train my model on this dataset. But however when I use the following code to upload from my drive the run time automatically gets disconnected…
0
votes
1 answer

How to use io module and tornado.write at the same time

There is a huge binary file uploaded to Google Drive. I am developing a tornado-based HTTP proxy server which provides a binary stream of the same huge file. It is natural to let the huge file to be proxied in multiple chunks (Download the contents…
Izumi Kawashima
  • 1,197
  • 11
  • 25
0
votes
1 answer

PyDrive copy file This file cannot be copied by the authenticated user(Python)

Sorry for my english. I try copy files to another folder. But i have error: googleapiclient.errors.HttpError: https://www.googleapis.com/drive/v2/files/1yH7LZ54uaiOl4T0J5UoJ9zb30cVKtW19/copy?alt=json returned "This file cannot be copied by the…
0
votes
0 answers

Python PyDrive No downloadLink/exportLinks

I'm using pyDrive library, and now I need to get xmls file and read it but I have an error pydrive.files.FileNotDownloadableError: No downloadLink/exportLinks for mimetype found in metadata white_list_xmls - my xmls file My code: tmp_name =…
r1299597
  • 609
  • 3
  • 10
  • 20
0
votes
1 answer

open pdf using Pydrive

I was wondering if I could open a pdf from my google drive to a certain page on a browser tab using Pydrive. I saw threads where uploading and downloading files was possible so I assumed that simply opening files would be possible.
R S
  • 33
  • 1
  • 6
0
votes
2 answers

Python : download a file from drive in another format using apidrive

First point : i have a question please , is there the possibility to download a pdf file from my drive as doc or any other format using Google Drive API? just as we can do manualy on drive : open a pdf file as google documents and download it…
Elroum
  • 327
  • 1
  • 3
  • 18
0
votes
1 answer

Download File Content PyDrive v3 Version

I am trying to download a file from Google Drive using the PyDrive V3 Version. I am really confused about the functions get_media() and export() which are to download the files. What is the difference? The get_media() function works with excel…
Gayatri
  • 2,197
  • 4
  • 23
  • 35
0
votes
1 answer

Python : connection failed after authentication success using PyDrive

I am using python version 3 with PyDrive to connect Google spreadsheet. I succeeded to open browser and do authentication. However, after that I got an error and program does not continue. this is an error message Authentication…
ruth
  • 109
  • 2
  • 11
0
votes
2 answers

PyDrive on Google App engine. Can't set the content of a GoogleDrive object from a StringIO object

File creation is forbidden in Google App Engine standard applications. Even tempfile is disabled, except for TemporaryFile which is aliased to StringIO. So I need to set content of drive file with a StringIO object. The only suitable method I found…
enf644
  • 584
  • 5
  • 14
0
votes
1 answer

Use PyDrive on Heroku

I'm trying to use PyDrive on Heroku. My code is as follows. from pydrive.auth import GoogleAuth GoogleAuth.DEFAULT_SETTINGS['client_config_file'] = os.path.join(os.path.dirname(__file__), 'client_secrets.json') However, the heroku console returned…
Daisuke SHIBATO
  • 983
  • 2
  • 11
  • 23
0
votes
1 answer

dailyLimitExceededUnreg when trying to download a file using pydrive

Workround: Since I only need access to spreadsheets , I used gspread instead , oauth2 is much simpler with it Im trying to download a file using pydrive (python google drive api) My code worked for me ,I didn't change anything but now it wont…
1 2 3
17
18