In my case this error was due to incompatibility of dependencies versions. I was using selenium 3.141.0
and I had to specify the version 1.26.16
for the urllib dependency:
selenium==3.141.0
urllib3==1.26.16
So, I recommend to check out the versions compatibility of your dependencies.