bzmatteo72 commented on issue #11765: URL: https://github.com/apache/incubator-superset/issues/11765#issuecomment-737872552
Hi! I have found this document (this is for Centos but i guess it shoul be even valid for Debian as well) i don't know if it might help to troubleshoot this issue: https://www.usessionbuddy.com/post/How-To-Install-Selenium-FireFox-On-Centos/ In this step (How To Use Selenium With Firefox) is saying to perform these steps: Invoke python from selenium import webdriver from selenium.webdriver.firefox.options import Options options = Options() options.headless = True driver = webdriver.Firefox(executable_path='/usr/local/bin/geckodriver',options=options) I did all the steps but the last one is failing with this error: (env4) matteo@mbalzarotti-NB:~/superset$ python Python 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from selenium import webdriver >>> from selenium.webdriver.firefox.options import Options >>> options = Options() >>> options.headless = True >>> driver = webdriver.Firefox(executable_path='/usr/local/bin/geckodriver',options=options) Traceback (most recent call last): File "/home/matteo/superset/env4/lib/python3.7/site-packages/selenium/webdriver/common/service.py", line 76, in start stdin=PIPE) File "/usr/lib/python3.7/subprocess.py", line 775, in __init__ restore_signals, start_new_session) File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/geckodriver': '/usr/local/bin/geckodriver' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/matteo/superset/env4/lib/python3.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 164, in __init__ self.service.start() File "/home/matteo/superset/env4/lib/python3.7/site-packages/selenium/webdriver/common/service.py", line 83, in start os.path.basename(self.path), self.start_error_message) selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH. Please notice that i have installed geckodriver in /usr/local/bin and this is my current PATH PATH="/home/matteo/superset/env4/bin:/home/matteo/superset/env3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/bin/geckodriver" Thanks ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
