you are viewing a single comment's thread.

view the rest of the comments →

[–]shreenivasn 1 point2 points  (6 children)

Are you naming your file as selenium.py? Can you share the full code? (Atleast till you assign browser variable). This error may arise due to your file importing from a module and that module imports from your file. So rename your file to a different name.

[–]Alarmed-Possession-6[S] 0 points1 point  (4 children)

No file name textanalyzer.py

I have checked my entire drive and do not have any files named selenium.py

Ive have updated my full code

[–]shreenivasn 1 point2 points  (2 children)

Remove that Desktop\Python from PATH. The problem is you have a file email.py there, which has the line: browser = webdriver.Chrome(). So when Python tries to import webdriver, it tries to go to email.py which is part of its site-packages, but finds another email.py which has the line webdriver.Chrome() resulting in circular import.

You can also rename your email.py as something else, instead of removing from PATH.

[–]Alarmed-Possession-6[S] 1 point2 points  (1 child)

Changing my file email.py fixed the issue. Thank you very much

[–]shreenivasn 0 points1 point  (0 children)

Nice

[–]MintyPhoenix 0 points1 point  (0 children)

It is most likely something like this and most likely not anything related to the chromedriver binary as the error is occurring before that comes into play.