{"action":"created","issue":{"url":"https://api.github.com/repos/usc-isi-i2/datamart/issues/78","repository_url":"https://api.github.com/repos/usc-isi-i2/datamart","labels_url":"https://api.github.com/repos/usc-isi-i2/datamart/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/usc-isi-i2/datamart/issues/78/comments","events_url":"https://api.github.com/repos/usc-isi-i2/datamart/issues/78/events","html_url":"https://github.com/usc-isi-i2/datamart/issues/78","id":388795150,"node_id":"MDU6SXNzdWUzODg3OTUxNTA=","number":78,"title":"wikitable dependencies/env ","user":{"login":"Lituta","id":19687431,"node_id":"MDQ6VXNlcjE5Njg3NDMx","avatar_url":"https://avatars1.githubusercontent.com/u/19687431?v=4","gravatar_id":"","url":"https://api.github.com/users/Lituta","html_url":"https://github.com/Lituta","followers_url":"https://api.github.com/users/Lituta/followers","following_url":"https://api.github.com/users/Lituta/following{/other_user}","gists_url":"https://api.github.com/users/Lituta/gists{/gist_id}","starred_url":"https://api.github.com/users/Lituta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lituta/subscriptions","organizations_url":"https://api.github.com/users/Lituta/orgs","repos_url":"https://api.github.com/users/Lituta/repos","events_url":"https://api.github.com/users/Lituta/events{/privacy}","received_events_url":"https://api.github.com/users/Lituta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"juancroldan","id":9042837,"node_id":"MDQ6VXNlcjkwNDI4Mzc=","avatar_url":"https://avatars2.githubusercontent.com/u/9042837?v=4","gravatar_id":"","url":"https://api.github.com/users/juancroldan","html_url":"https://github.com/juancroldan","followers_url":"https://api.github.com/users/juancroldan/followers","following_url":"https://api.github.com/users/juancroldan/following{/other_user}","gists_url":"https://api.github.com/users/juancroldan/gists{/gist_id}","starred_url":"https://api.github.com/users/juancroldan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juancroldan/subscriptions","organizations_url":"https://api.github.com/users/juancroldan/orgs","repos_url":"https://api.github.com/users/juancroldan/repos","events_url":"https://api.github.com/users/juancroldan/events{/privacy}","received_events_url":"https://api.github.com/users/juancroldan/received_events","type":"User","site_admin":false},"assignees":[{"login":"juancroldan","id":9042837,"node_id":"MDQ6VXNlcjkwNDI4Mzc=","avatar_url":"https://avatars2.githubusercontent.com/u/9042837?v=4","gravatar_id":"","url":"https://api.github.com/users/juancroldan","html_url":"https://github.com/juancroldan","followers_url":"https://api.github.com/users/juancroldan/followers","following_url":"https://api.github.com/users/juancroldan/following{/other_user}","gists_url":"https://api.github.com/users/juancroldan/gists{/gist_id}","starred_url":"https://api.github.com/users/juancroldan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juancroldan/subscriptions","organizations_url":"https://api.github.com/users/juancroldan/orgs","repos_url":"https://api.github.com/users/juancroldan/repos","events_url":"https://api.github.com/users/juancroldan/events{/privacy}","received_events_url":"https://api.github.com/users/juancroldan/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-12-07T20:03:09Z","updated_at":"2018-12-07T20:14:41Z","closed_at":null,"author_association":"COLLABORATOR","body":"When running unittest I met the following error\r\n```\r\nERROR: test_get (datamart.unit_tests.test_wikitables_materializer.TestWikitablesMaterializer)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/nas/home/dongyul/miniconda3/envs/datamart_env/lib/python3.6/site-packages/selenium/webdriver/common/service.py\", line 76, in start\r\n    stdin=PIPE)\r\n  File \"/nas/home/dongyul/miniconda3/envs/datamart_env/lib/python3.6/subprocess.py\", line 709, in __init__\r\n    restore_signals, start_new_session)\r\n  File \"/nas/home/dongyul/miniconda3/envs/datamart_env/lib/python3.6/subprocess.py\", line 1344, in _execute_child\r\n    raise child_exception_type(errno_num, err_msg, err_filename)\r\nFileNotFoundError: [Errno 2] No such file or directory: 'geckodriver': 'geckodriver'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/nas/home/dongyul/datamart_work/datamart/datamart/utilities/utils.py\", line 156, in __decorator\r\n    func(self)\r\n  File \"/nas/home/dongyul/datamart_work/datamart/datamart/unit_tests/test_wikitables_materializer.py\", line 25, in test_get\r\n    result = self.wikitables_materializer.get(metadata=mock_metadata).to_dict(orient=\"records\")\r\n  File \"/nas/home/dongyul/datamart_work/datamart/datamart/materializers/wikitables_materializer.py\", line 31, in get\r\n    tab = tables(article=args['url'], lang=lang, store_result=False, xpath=args['xpath'])\r\n  File \"/nas/home/dongyul/datamart_work/datamart/datamart/materializers/wikitables_downloader/wikitables.py\", line 43, in tables\r\n    document = cache(get_with_render, (url, SELECTOR_ROOT), identifier=url)\r\n  File \"/nas/home/dongyul/datamart_work/datamart/datamart/materializers/wikitables_downloader/utils.py\", line 163, in cache\r\n    res = target(*args)\r\n  File \"/nas/home/dongyul/datamart_work/datamart/datamart/materializers/wikitables_downloader/utils.py\", line 219, in get_with_render\r\n    driver = get_driver(headless, disable_images, open_links_same_tab)\r\n  File \"/nas/home/dongyul/datamart_work/datamart/datamart/materializers/wikitables_downloader/utils.py\", line 204, in get_driver\r\n    _driver = Firefox(options=opts)\r\n  File \"/nas/home/dongyul/miniconda3/envs/datamart_env/lib/python3.6/site-packages/selenium/webdriver/firefox/webdriver.py\", line 164, in __init__\r\n    self.service.start()\r\n  File \"/nas/home/dongyul/miniconda3/envs/datamart_env/lib/python3.6/site-packages/selenium/webdriver/common/service.py\", line 83, in start\r\n    os.path.basename(self.path), self.start_error_message)\r\nselenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.\r\n```\r\n\r\nafter manually download `geckodriver` and specify the path, I met:\r\n```\r\nERROR: test_get (datamart.unit_tests.test_wikitables_materializer.TestWikitablesMaterializer)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/nas/home/dongyul/datamart_work/datamart/datamart/utilities/utils.py\", line 156, in __decorator\r\n    func(self)\r\n  File \"/nas/home/dongyul/datamart_work/datamart/datamart/unit_tests/test_wikitables_materializer.py\", line 25, in test_get\r\n    result = self.wikitables_materializer.get(metadata=mock_metadata).to_dict(orient=\"records\")\r\n  File \"/nas/home/dongyul/datamart_work/datamart/datamart/materializers/wikitables_materializer.py\", line 31, in get\r\n    tab = tables(article=args['url'], lang=lang, store_result=False, xpath=args['xpath'])\r\n  File \"/nas/home/dongyul/datamart_work/datamart/datamart/materializers/wikitables_downloader/wikitables.py\", line 43, in tables\r\n    document = cache(get_with_render, (url, SELECTOR_ROOT), identifier=url)\r\n  File \"/nas/home/dongyul/datamart_work/datamart/datamart/materializers/wikitables_downloader/utils.py\", line 163, in cache\r\n    res = target(*args)\r\n  File \"/nas/home/dongyul/datamart_work/datamart/datamart/materializers/wikitables_downloader/utils.py\", line 219, in get_with_render\r\n    driver = get_driver(headless, disable_images, open_links_same_tab)\r\n  File \"/nas/home/dongyul/datamart_work/datamart/datamart/materializers/wikitables_downloader/utils.py\", line 204, in get_driver\r\n    _driver = Firefox(options=opts)\r\n  File \"/nas/home/dongyul/miniconda3/envs/datamart_env/lib/python3.6/site-packages/selenium/webdriver/firefox/webdriver.py\", line 174, in __init__\r\n    keep_alive=True)\r\n  File \"/nas/home/dongyul/miniconda3/envs/datamart_env/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py\", line 157, in __init__\r\n    self.start_session(capabilities, browser_profile)\r\n  File \"/nas/home/dongyul/miniconda3/envs/datamart_env/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py\", line 252, in start_session\r\n    response = self.execute(Command.NEW_SESSION, parameters)\r\n  File \"/nas/home/dongyul/miniconda3/envs/datamart_env/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py\", line 321, in execute\r\n    self.error_handler.check_response(response)\r\n  File \"/nas/home/dongyul/miniconda3/envs/datamart_env/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py\", line 242, in check_response\r\n    raise exception_class(message, screen, stacktrace)\r\nselenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities\r\n```\r\n\r\nBoth on Mac OS and CentOS 7"},"comment":{"url":"https://api.github.com/repos/usc-isi-i2/datamart/issues/comments/445352327","html_url":"https://github.com/usc-isi-i2/datamart/issues/78#issuecomment-445352327","issue_url":"https://api.github.com/repos/usc-isi-i2/datamart/issues/78","id":445352327,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTM1MjMyNw==","user":{"login":"Lituta","id":19687431,"node_id":"MDQ6VXNlcjE5Njg3NDMx","avatar_url":"https://avatars1.githubusercontent.com/u/19687431?v=4","gravatar_id":"","url":"https://api.github.com/users/Lituta","html_url":"https://github.com/Lituta","followers_url":"https://api.github.com/users/Lituta/followers","following_url":"https://api.github.com/users/Lituta/following{/other_user}","gists_url":"https://api.github.com/users/Lituta/gists{/gist_id}","starred_url":"https://api.github.com/users/Lituta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lituta/subscriptions","organizations_url":"https://api.github.com/users/Lituta/orgs","repos_url":"https://api.github.com/users/Lituta/repos","events_url":"https://api.github.com/users/Lituta/events{/privacy}","received_events_url":"https://api.github.com/users/Lituta/received_events","type":"User","site_admin":false},"created_at":"2018-12-07T20:14:41Z","updated_at":"2018-12-07T20:14:41Z","author_association":"COLLABORATOR","body":"Solved after `yum install firefox` on CentOS. is there a way to do the things automatically?"}}
{"actor":{"display_login":"Lituta"}}