Pydrive.files.apirequesterror: cannot download file






















Thanks - I've tried just a regular filename in that parameter as a string and get the same effect. It turns out that regular files upload fine e. However, the file I'm trying to work with is a Gdoc - do these have a different mimeType and therefore upload function? A google doc is not the same as a. The list of google file mimeType is found here. Also, it doesn't like the fact if a file is empty - could this be a bug?

Show 1 more comment. Active Oldest Votes. Sorry, something went wrong. I have a similar problem with a file not found message but using InsertPermission with a file on a shared drive it works fine on my drive. PyDrive2 doesn't appear to change this and I am struggling to see what the issue might be I have confirmed the file ID is correct as well. Do additional 'supportsTeamDrives' entries need to be added to the permission functions as well? It appears as though that is the issue, I added the supportsTeamDrives parameter to InsertPermission at line of files.

Skip to content. One of the ways Windows Defender keeps your computer safe from internet evils is by employing its SmartScreen tool to keep you from downloading potentially harmful files or visiting malicious sites. On some occasions, however, you may find SmartScreen overstepping its bounds and blocking you from downloading a file you know to be safe.

I don't recommend turning SmartScreen off completely because it is helpful in preventing you from downloading a malicious file or app, but you can disable it in Microsoft's Edge browser if you want to override its protection and go ahead and download a file it doesn't recognize. This code will create a new file with title Hello. You can see and open this file from Google Drive if you want. For more details, take a look at documentation: File management made easy. PyDrive handles paginations and parses response as list of GoogleDriveFile.

In order to figure out what happened, can you please elaborate a little bit more? Did you get any error messages? How many images were downloaded overall?

The script takes a while to run, so in case you were running it on a remote server, did your connection time out by any chance? Thank you for replying, royorel You are right!

But, if you have any considerations, I will be glad to discuss it with you. Please, let me know if this helps. I decreased the number of threads from 32 to 8. However, the following message is presented.

Authentication successful. Downloading JSON metadata BytesIO self. I gave another try and this is the result. Downloading files



0コメント

  • 1000 / 1000