Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

Alaska Data source is failing #319

Open
themonk911 opened this issue Nov 18, 2020 · 0 comments
Open

Alaska Data source is failing #319

themonk911 opened this issue Nov 18, 2020 · 0 comments

Comments

@themonk911
Copy link
Collaborator

"{"logname": "AlaskaDataSource", "timestamp": "2020-11-18T11:00:53.2333", "classname": "AlaskaDataSource", "loglevel": "error", "source_name": "AlaskaDataSource", "config": {"name": "pipelines.epidemiology.us_ak_authority.AlaskaDataSource", "fetch": [{"url": "https://www.arcgis.com/sharing/rest/content/items/867f802ce1624b46b40d2bd281490078/data", "opts": {"ext": "xlsx"}}], "parse": {"key": "US_AK", "sheet_name": "Table 1"}, "test": {"skip": true, "location_key_match": "^US_AK$"}, "automation": {"job_group": "all", "deferred": true}}, "traceback": "Traceback (most recent call last):\n File "/opt/open-covid/src/lib/pipeline.py", line 163, in _run_wrapper\n return data_source.run(output_folder, cache, aux, **source_opts)\n File "/opt/open-covid/src/lib/data_source.py", line 230, in run\n data = self.parse(data, {name: df.copy() for name, df in aux.items()}, **parse_opts)\n File "/opt/open-covid/src/pipelines/epidemiology/us_ak_authority.py", line 52, in parse\n data = read_file(sources[0], sheet_name=parse_opts.get("sheet_name"))\n File "/opt/open-covid/src/lib/io.py", line 103, in read_file\n return pandas.read_excel(path, **{**default_read_opts, **read_opts})\n File "/usr/local/lib/python3.8/dist-packages/pandas/util/_decorators.py", line 296, in wrapper\n return func(*args, **kwargs)\n File "/usr/local/lib/python3.8/dist-packages/pandas/io/excel/_base.py", line 304, in read_excel\n io = ExcelFile(io, engine=engine)\n File "/usr/local/lib/python3.8/dist-packages/pandas/io/excel/_base.py", line 867, in init\n self._reader = self._enginesengine\n File "/usr/local/lib/python3.8/dist-packages/pandas/io/excel/_xlrd.py", line 22, in init\n super().init(filepath_or_buffer)\n File "/usr/local/lib/python3.8/dist-packages/pandas/io/excel/_base.py", line 353, in init\n self.book = self.load_workbook(filepath_or_buffer)\n File "/usr/local/lib/python3.8/dist-packages/pandas/io/excel/_xlrd.py", line 37, in load_workbook\n return open_workbook(filepath_or_buffer)\n File "/usr/local/lib/python3.8/dist-packages/xlrd/init.py", line 130, in open_workbook\n bk = xlsx.open_workbook_2007_xml(\n File "/usr/local/lib/python3.8/dist-packages/xlrd/xlsx.py", line 841, in open_workbook_2007_xml\n x12sheet.process_stream(zflo, heading)\n File "/usr/local/lib/python3.8/dist-packages/xlrd/xlsx.py", line 548, in own_process_stream\n for event, elem in ET.iterparse(stream):\n File "/usr/lib/python3.8/xml/etree/ElementTree.py", line 1229, in iterator\n data = source.read(16 * 1024)\n File "/usr/lib/python3.8/zipfile.py", line 940, in read\n data = self._read1(n)\n File "/usr/lib/python3.8/zipfile.py", line 1008, in _read1\n data += self._read2(n - len(data))\n File "/usr/lib/python3.8/zipfile.py", line 1043, in _read2\n raise EOFError\nEOFError\n", "message": "Error running data source."}"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant