Sep-22-2019, 09:34 PM
Hi, All!
I am using this code:
But, I am getting the following error:
I have installed PYCharm Community 2019.2.2. It is Python 3.7. I am using Debian 10 (Buster). I have changed the permission from the / with rmx to all users, directories and files, in case, "geckodriver". Also, I have inserted "geckodriver" and its PATH on the enviromnent PATH, and, also, to the "Interpreter Paths".
But it keeps giving this error.
Has Anyone any ideia what I can do?
I am using this code:
Quote:from selenium import webdriver
nav = webdriver.Firefox()
But, I am getting the following error:
Quote:/home/martinelli/PycharmProjects/ESAB/venv/bin/python /home/martinelli/PycharmProjects/ESAB/LogaSGE.py
Traceback (most recent call last):
File "/home/martinelli/PycharmProjects/ESAB/venv/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: 'geckodriver': 'geckodriver'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/martinelli/PycharmProjects/ESAB/LogaSGE.py", line 5, in <module>
nav = webdriver.Firefox()
File "/home/martinelli/PycharmProjects/ESAB/venv/lib/python3.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 164, in __init__
self.service.start()
File "/home/martinelli/PycharmProjects/ESAB/venv/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.
Process finished with exit code 1
I have installed PYCharm Community 2019.2.2. It is Python 3.7. I am using Debian 10 (Buster). I have changed the permission from the / with rmx to all users, directories and files, in case, "geckodriver". Also, I have inserted "geckodriver" and its PATH on the enviromnent PATH, and, also, to the "Interpreter Paths".
But it keeps giving this error.
Has Anyone any ideia what I can do?