$ make scrape
venv/bin/python src/metadata_scraper.py
Traceback (most recent call last):
File "/home/dsmall/va_voter_data_map/venv/lib/python3.5/site-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: 'include/phantomjs/phantomjs'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "src/metadata_scraper.py", line 124, in
driver = webdriver.PhantomJS(DRIVER_PATH)
File "/home/dsmall/va_voter_data_map/venv/lib/python3.5/site-packages/selenium/webdriver/phantomjs/webdriver.py", line 52, in init
self.service.start()
File "/home/dsmall/va_voter_data_map/venv/lib/python3.5/site-packages/selenium/webdriver/common/service.py", line 81, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'phantomjs' executable needs to be in PATH.
Makefile:7: recipe for target 'scrape' failed
make: *** [scrape] Error 1
$ make scrape
venv/bin/python src/metadata_scraper.py
Traceback (most recent call last):
File "/home/dsmall/va_voter_data_map/venv/lib/python3.5/site-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: 'include/phantomjs/phantomjs'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "src/metadata_scraper.py", line 124, in
driver = webdriver.PhantomJS(DRIVER_PATH)
File "/home/dsmall/va_voter_data_map/venv/lib/python3.5/site-packages/selenium/webdriver/phantomjs/webdriver.py", line 52, in init
self.service.start()
File "/home/dsmall/va_voter_data_map/venv/lib/python3.5/site-packages/selenium/webdriver/common/service.py", line 81, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'phantomjs' executable needs to be in PATH.
Makefile:7: recipe for target 'scrape' failed
make: *** [scrape] Error 1