TypeError: urlopen() got multiple values for keyword argument 'body' while executing tests through Selenium and Python on Kubuntu 14.04 TypeError: urlopen() got multiple values for keyword argument 'body' while executing tests through Selenium and Python on Kubuntu 14.04 selenium selenium

TypeError: urlopen() got multiple values for keyword argument 'body' while executing tests through Selenium and Python on Kubuntu 14.04


You can update your urllib3 using

pip install --upgrade --ignore-installed urllib3


This error message...

TypeError: urlopen() got multiple values for keyword argument 'body'

...implies that the Python Client faced an error while invoking urlopen() internally.

This error is usually caused by an older version of pip that is installed by your systems package manager and can be replaced with a newer version of pip.


Solution

Upgrading pip to the latest version (atleast v18.0) will solve your problem.

C:\Users\myUser>python -m pip install --upgrade pipCollecting pip  Downloading https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl (1.3MB)    100% |¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 1.3MB 544kB/sInstalling collected packages: pip  Found existing installation: pip 10.0.1    Uninstalling pip-10.0.1:      Successfully uninstalled pip-10.0.1Successfully installed pip-18.0

References