when using from selenium import webdriver Python -
i new python, , stuck. searched hours solution not figure out.
it working stoped suddenly. have both selenium , webdriver installed.
i trying to:
from selenium import webdriver
and getting that:
traceback (most recent call last): file "/library/frameworks/python.framework/versions/3.6/lib/python3.6/site-packages/selenium/webdriver/firefox/webdriver.py", line 19, in <module> import http.client http_client file "/library/frameworks/python.framework/versions/3.6/lib/python3.6/http/client.py", line 71, in <module> import email.parser file "/users/macmaison/documents/email.py", line 1, in <module> import smtplib file "/library/frameworks/python.framework/versions/3.6/lib/python3.6/smtplib.py", line 47, in <module> import email.utils modulenotfounderror: no module named 'email.utils'; 'email' not package
during handling of above exception, exception occurred:
traceback (most recent call last): file "<pyshell#3>", line 1, in <module> selenium import webdriver file "/library/frameworks/python.framework/versions/3.6/lib/python3.6/site-packages/selenium/webdriver/__init__.py", line 18, in <module> .firefox.webdriver import webdriver firefox # noqa file "/library/frameworks/python.framework/versions/3.6/lib/python3.6/site-packages/selenium/webdriver/firefox/webdriver.py", line 21, in <module> import httplib http_client modulenotfounderror: no module named 'httplib'
i using: macos sierra python 3.6.2
here part of code:
import os selenium import webdriver chromedriver = "/users/macmaison/downloads/chromedriver" os.environ["webdriver.chrome.driver"] = chromedriver driver = webdriver.chrome(chromedriver)
it stops in second line.
thanks in advance.
i solved it, after 10 hours searching. problem had created file named email.py, had rename file, rookie mistake, hope can useful someone.
Comments
Post a Comment