withings-sync icon indicating copy to clipboard operation
withings-sync copied to clipboard

Can't input token when running in docker

Open JeanMichelDeveloper opened this issue 7 months ago • 3 comments

When running the script fo the first time in docker, the run is exited with an error when I need to enter the token.

The error is the following :

2024-06-29 19:08:22 Traceback (most recent call last): 2024-06-29 19:08:22 File "/usr/local/bin/withings-sync", line 33, in 2024-06-29 19:08:22 sys.exit(load_entry_point('withings-sync==4.2.4', 'console_scripts', 'withings-sync')()) 2024-06-29 19:08:22 File "/usr/local/lib/python3.10/site-packages/withings_sync-4.2.4-py3.10.egg/withings_sync/sync.py", line 510, in main 2024-06-29 19:08:22 sync() 2024-06-29 19:08:22 File "/usr/local/lib/python3.10/site-packages/withings_sync-4.2.4-py3.10.egg/withings_sync/sync.py", line 415, in sync 2024-06-29 19:08:22 withings = WithingsAccount() 2024-06-29 19:08:22 File "/usr/local/lib/python3.10/site-packages/withings_sync-4.2.4-py3.10.egg/withings_sync/withings2.py", line 197, in init 2024-06-29 19:08:22 self.withings = WithingsOAuth2() 2024-06-29 19:08:22 File "/usr/local/lib/python3.10/site-packages/withings_sync-4.2.4-py3.10.egg/withings_sync/withings2.py", line 69, in init 2024-06-29 19:08:22 ] = self.get_authenticationcode() 2024-06-29 19:08:22 File "/usr/local/lib/python3.10/site-packages/withings_sync-4.2.4-py3.10.egg/withings_sync/withings2.py", line 118, in get_authenticationcode 2024-06-29 19:08:22 authentification_code = input("Token : ") 2024-06-29 19:08:22 EOFError: EOF when reading a line 2024-06-29 19:08:22 Token :

I have the "Token : " input but I can't give it the token because the run is finished with the error.

Any idea why ?

Let me know if you need more information

JeanMichelDeveloper avatar Jun 29 '24 17:06 JeanMichelDeveloper