Bir cronjob aracılığıyla bir python betiği çalıştırıyorum. Sanal bir ortamım var ve cronjob'de bu sanal ortamda çalışıyorum. Ben betiği normal olarak çalıştırdığımda phantomJS gerektiği gibi başlar, ancak bir cronjob içinde bir betik üzerinden çalıştırdığımda bu hatayı alırım. Phantomjs başlatmak için cronjob içinde eksik nedir?Bir cronjob içinde bir komut dosyasından phantomJS başlatılıyor
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
Neden bu kod sadece işi cevap vermez: Benim için hile yaptı – ppperry