Greetings all,
I’ve exhausted my “Google-fu” options and thought that someone here could help me understand whats happening:
I’m running the Ex23.py script on a Raspberry Pi with a Kali image on it and getting the following error:
Traceback (most recent call last):
File “ex23.py”, line 21, in
languages = open(“languages.txt”, encoding=“utf-8”)
TypeError: ‘encoding’ is an invalid keyword argument for this function
Now the way I’m interpreting that is that Python is saying that the “encoding” keyword isn’t a valid argument for the “open” function.
Pydoc says it should work and when I ran the same script on another Linux mint box, it worked so, I’m just wondering why it worked on one vs the other.
Any thought’s or insights would are greatly appreciated.
Thx!
Ryan