Closed stephen-carew closed 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
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
Unlucky I guess? :P
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.
I'll give it a shot
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
son of a gun. Im running python 2.7 XD
No worries, it's common to have path/env vars set to the correct version of pip but incorrect version of Python :)
Yep. if I run the command using python3 downloader.py it works perfectly fine! Thanks so much!!
Heyy! nice.
I can't seem to run any of the scripts. I get an error.