Hello.
I have a script that does some operations and then creates a report to be sent.
This script works with OAuth, at any time I need to renew the access token through authorization code.
I can't get python input to work in the console.
Any ideas on how to fix this?
Hi @Andres,
Can you post a snippet of your script where you think problems are occurring? It would be difficult to help you if nobody can see where the issue lies.
AuthorizationAcquire() is a function of a class, which generates an access request, to obtain an access token and a refresh token, for the first time.
This function contains this line:
response = self.tokenaccess(input('AUTHENTICATION CODE: '))
The problem occurs in: input('AUTHENTICATION CODE: ')
The error returned is: RuntimeError: input(): lost sys.stdin
I found a working alternative to sys.input.
Thanks anyway
can you share the alternative you used? i am running into the same issue