Używam skryptu Pythona przez cronjob. Mam wirtualne środowisko iw cronjobie używam tego wirtualnego środowiska. Kiedy uruchamiam skrypt normalnie phantomJS uruchamia się tak, jak powinien, ale uruchamiając go przez skrypt w cronjob dostaję ten błąd. Czego brakuje w cronjob, aby móc uruchomić phantomjs?Uruchamianie phantomJS ze skryptu w cronjob
Message: 'Unable to start phantomjs with ghostdriver.' ; Screenshot: available via screen
Traceback (most recent call last):
File "/home/scraper/superfish-extension/chrome_3day.py", line 96, in <module>
main()
File "/home/scraper/superfish-extension/chrome_3day.py", line 73, in main
browser = use_phantomjs()
File "/home/scraper/superfish-extension/chrome.py", line 81, in use_phantomjs
browser = webdriver.PhantomJS()
File "/home/scraper/.virtualenvs/superfish/lib/python2.6/site-packages/selenium/webdriver/phantomjs/webdriver.py", line 50, in __init__
self.service.start()
File "/home/scraper/.virtualenvs/superfish/lib/python2.6/site-packages/selenium/webdriver/phantomjs/service.py", line 69, in start
raise WebDriverException("Unable to start phantomjs with ghostdriver.", e)
WebDriverException: Message: 'Unable to start phantomjs with ghostdriver.' ; Screenshot: available via screen
Dlaczego tylko kodu Ta odpowiedź pracę? Potrzebne wyjaśnienie – ppperry