pytr-org / pytr

Use TradeRepublic in terminal and mass download all documents
https://pypi.org/project/pytr/
MIT License
391 stars 71 forks source link

Error on login #15

Closed gegokess closed 2 years ago

gegokess commented 2 years ago

Description of the bug

Traceback (most recent call last):
  File "/opt/homebrew/bin/pytr", line 8, in <module>
    sys.exit(main())
  File "/opt/homebrew/lib/python3.9/site-packages/pytr/main.py", line 129, in main
    dl = DL(login(web=weblogin), args.output, args.format, since_timestamp=since_timestamp)
  File "/opt/homebrew/lib/python3.9/site-packages/pytr/account.py", line 77, in login
    for remaining in range(countdown):
TypeError: 'float' object cannot be interpreted as an integer

I receive the error message above while trying to log in. I am entering nothing as "code" since I didn't receive a notification on my mobile device. Older versions used to work.

pytr login

Environment

C0D3D3V commented 2 years ago

If web login does not work for you, you can also use the old login that simulates the app, with the option --applogin.

gegokess commented 2 years ago

Thanks for your reponse. The issue was solved by updating the app to the latest version. But maybe others encounter the same problem.