I have written a small script in Python and executing it on Windows is fine. I got no errors. In Windows my Python version is 3.5.
I have tried to execute the same program on Ubuntu, Python 3.4 but, but I am getting the following error:
Traceback (most recent call last):
File "urlscript.py", line 356, in <module>
postcheck[dc]()
File "urlscript.py", line 17, in DC8Prod
pmlogin(url,payload)
File "urlscript.py", line 254, in pmlogin
mainpage=requests.get(url,payload)
TypeError: get() takes 1 positional argument but 2 were given
requestsis installed on Ubuntu, what version on Windows? Ifpayloadis a dictionary with query parameters,query=payloadinstead of a positional argument.pip3 freezewill show you the versions of all your packages installed.