santosderek / Imgur-To-Folder

Download Imgur albums and images to desired folder
Other
80 stars 9 forks source link

can't authenticate itf #25

Open AlanTuring42 opened 7 months ago

AlanTuring42 commented 7 months ago

Got this error after providing client_id client_secret path

Traceback (most recent call last):
  File "/usr/local/bin/itf", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.11/site-packages/imgurtofolder/__main__.py", line 142, in main
    config = fetch_configuration(args)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/imgurtofolder/__main__.py", line 218, in fetch_configuration
    config = Configuration(
             ^^^^^^^^^^^^^^
TypeError: Configuration.__init__() missing 2 required positional arguments: 'access_token' and 'refresh_token'

I tried it on macOS (with python 3.11.7 and pip 23.3.2) Besides also tried it on Colab (with python 3.10.12 and pip 23.1.2) and got the exact same error

vicky-cruz-8 commented 1 month ago

main.txt try to substitute this file with original main.py in the location given in your error. and remember to save it as .py also you can remove anything that is commented within the file.