Hi community,
I’m trying to run a python script to webscrape, and I’m using the Selenium library, but I’m getting a particular error message that says “cannot import name ‘webdriver’ from ‘selenium’”
Below is a more comprehensive version of the error message.
NOTE: I copied this error from my PC’s Event Viewer window.
Application: UiPath.Python.Host.exe CoreCLR Version: 6.0.3024.21525 .NET Version: 6.0.30 Description: The process was terminated due to an unhandled exception. Exception Info: Python.Runtime.PythonException: ImportError : cannot import name 'webdriver' from 'selenium' (C:\Python\Python37\lib\site-packages\selenium\__init__.py) [' File "none", line 4, in goto_github_and_download_file\n'] at Python.Runtime.PyObject.Invoke(PyObject[] args) at Python.Runtime.PyObject.InvokeMethod(String name, PyObject[] args)
However, the other python methods without the selenium dependency work perfectly. The error is just peculiar to the method that uses the selenium library.
Your help will be greatly appreciated in fixing this issue. I’m available to provide further details if required.