Wpis z mikrobloga

Ustawial ktos z Was skrypt #selenium jako #cron job ?
Ten sam skrypt dziala mi pieknie jak wywolam go z konsoli, a jak idzie z job'a to mam:

Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/common/service.py", line 74, in start
stdout=self.log_file, stderr=self.log_file)
File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'geckodriver'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "so_login.py", line 12, in setUp
self.driver = webdriver.Firefox()
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/firefox/webdriver.py", line 142, in __init__
self.service.start()
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/common/service.py", line 81, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.

Mialem ten sam error w konsoli, ale po zainstalowaniu geckodriver i skopiowaniu go do /usr/local/bin wszystko dziala pieknie juz, a w CRON nie chce...
  • 1