I am running a python script through cronjob. I have a virtual environment, and in cronjob I run it through this virtual environment. When I run the script, usually phantomJS starts as it should, but when I run it through the script in cronjob, I get this error. What is missing in cronjob to be able to run phantomjs?
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
source share