Comments (4)
@GePlusE the problem here is that we don't know how to reproduce this - it works for me :(
have you seen this response - https://stackoverflow.com/questions/63955197/pydrive-2-0-authenticationerror-no-code-found-in-redirect ?
how do you run your code? could you create a completely empty virtualenv and run this code from the Python repl?
from pydrive2.
@shcheklein thanks for the quick reply. I've seen this, but I am not sure what LucSpan did differently to make it work.
Am I right that all he did was putting it inside a function?
I run my code via VS Code and I already tried a clean environment but with VS Code.
from pydrive2.
I don't know if this is helpful but I tried it again (without any changes since my last unsuccessful try yesterday) and now the authentication flow was successful and a file was uploaded to my Google Drive. I didn't even need to click or allow anything.
Then I tried it with another file but the same error appeared again. The only change I made was the name of the file I tried to upload (yes, the file exists and is in the same directory ;) )
Could it be possible that the authentication can only be done once in a specific period?
I made changes according to this StackOverflow Solution by Dano. Maybe the save and load of mycreds.txt
will help to solve this issue - I will post the result after a next try tomorrow because at the moment I still get the described error.
from pydrive2.
I had some other issues but the solution I found was the key to this issue.
from pydrive2.
Related Issues (20)
- Cannot install PyDrive2 (Raspberry PI3A+)
- error: from pydrive2.auth import GoogleAuth HOT 7
- How to distinguish between same-named files and directories in Google Drive
- How to distinguish between same-named files and directories in Google Drive HOT 1
- A simple way of initializing a pydrive.GoogleDrive object fails when pydrive is replaced by pydrive2 HOT 1
- Cant copy the file... using service account HOT 3
- Fail to authenticate with pydrive2 to google drive HOT 4
- Access blocked: This application request is invalid HOT 1
- Is there a Google Drive file sharing feature? HOT 3
- Unable to list files with service account auth for GDriveFilesystem HOT 3
- How do I write to specific tab? HOT 1
- fetch a specific folder id by folder name HOT 4
- Missing 1.17.1 release? HOT 1
- auth: LocalWebserverAuth: fail if in non-interactive mode
- ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2427) HOT 2
- Review and fix issues with find
- Create Succesfull Authentication using Google OAuth client ID for a remote server accessible via SSH in a local machine HOT 1
- AssertionError on using fsspec with service account HOT 1
- [Q]Set Disable Download HOT 1
- Would you be interested to add type hints?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pydrive2.