Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't input token when running in docker #172

Open
JeanMichelDeveloper opened this issue Jun 29, 2024 · 3 comments
Open

Can't input token when running in docker #172

JeanMichelDeveloper opened this issue Jun 29, 2024 · 3 comments
Labels
question Further information is requested

Comments

@JeanMichelDeveloper
Copy link

JeanMichelDeveloper commented Jun 29, 2024

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

@longstone
Copy link
Collaborator

Please provide the full command. Do you have startet the container with docker run -it...?

@longstone longstone added the in triage not quite clear whats the issue label Jul 1, 2024
@JeanMichelDeveloper
Copy link
Author

I do not use a command line.
This happens when I un the image I downloaded in Docker desktop as shown below:
image
The next screen when running is the console with the logs provided

@longstone
Copy link
Collaborator

You have to go in interactive mode.

@longstone longstone added question Further information is requested and removed in triage not quite clear whats the issue labels Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants