ImportError: No module named 'httplib'
Marcee last edited by
I have recently updated selenium Webdriver to 2.38.1 and I am writing scripts using python. When I run the test case I have I get the following error Traceback (most recent call last): File "C:/Users/xrankum/PycharmProjects/Automation Practice/Create Prepaid Data Susbcription.py", line 4, in <module> from selenium import webdriver File "C:\Python33\lib\site-packages\selenium\webdriver_init_.py", line 18, in <module> from .firefox.webdriver import WebDriver as Firefox File "C:\Python33\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 26, in <module> from selenium.webdriver.firefox.extension_connection import ExtensionConnection File "C:\Python33\lib\site-packages\selenium\webdriver\firefox\extension_connection.py", line 22, in <module> from selenium.webdriver.remote.remote_connection import RemoteConnection File "C:\Python33\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 21, in <module> import httplib ImportError: No module named 'httplib' My tests were running perfectly until I updated to the new version of selenium. Can anyone help me how to resolve this.
I'm pretty sure it is supported. I had the same error using python3, selenium 2.38.1, and ubuntu 13.10. Here is how I fixed it. While investigating selenium suddenly not working after I upgraded it, I noticed that calling pip3 list showed an error as well. You can see a similar error as to what I had here: https://github.com/pypa/pip/issues/1093 So I uninstalled selenium sudo pip3 uninstall selenium Ran sudo pip3 install -U distribute Confirmed that pip3 list worked. Installed selenium again sudo pip3 install selenium Now my test works. Hope that helps.