KorigamiK / ultimate-batch-anime-downloader

The new and improved version of batch anime downloader. Made a tleast 10x more efficient from the older version.
69 stars 6 forks source link

Trouble Running the scripts #10

Closed stephen-carew closed 4 years ago

stephen-carew commented 4 years ago

Screenshot 2020-11-05 at 2 57 06 AM

I can't seem to run any of the scripts. I get an error.

KorigamiK commented 4 years ago

Hmm, seems odd try to run this on the terminal pip install typing or try to use the version from the releases section at here

stephen-carew commented 4 years ago

Tried the pip install typing, it installed with no problems then proceeded to attempt running the scripts.. didn't work.. downloaded the experimental version and tried running also.. didn't work too.. hahaha.. they both keep giving the same error. I thought maybe it just needs a reboot.. still nothing XD Screenshot 2020-11-05 at 3 13 30 AM

Unlucky I guess? :P

EL-S commented 4 years ago

I'm not completely sure but I believe type hinting only works in Python 3.5+(Although I see you tried 3.9?). Honestly, the code doesn't need them to run, so perhaps you can get away with removing the type hinting from the lines.

stephen-carew commented 4 years ago

I'll give it a shot

EL-S commented 4 years ago

This is possibly related but, type hinting on variables (not just parameters) was implemented in Python 3.6. Also, you should check the version of Python you are running the script with. Try something like Python -V

https://stackoverflow.com/questions/42002596/python-3-5-typed-namedtuple-syntax-produces-syntaxerror

stephen-carew commented 4 years ago

son of a gun. Im running python 2.7 XD

EL-S commented 4 years ago

No worries, it's common to have path/env vars set to the correct version of pip but incorrect version of Python :)

stephen-carew commented 4 years ago

Yep. if I run the command using python3 downloader.py it works perfectly fine! Thanks so much!!

KorigamiK commented 4 years ago

Heyy! nice.