PySimpleGUI / PySimpleGUI-Widgets

Rainmeter-like Widgets for your desktop using the easy to use PySimpleGUI package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

COVID19_Distance throw Error tokenizing data

ryuherdianto opened this issue · comments

Hi, I got this error when try to run the COVID9 script. Please suggest, Thanks!
Traceback (most recent call last):
File "PSG_Widget_COVID19_Distance.py", line 189, in
main()
File "PSG_Widget_COVID19_Distance.py", line 170, in main
distances = distance_list(settings, window)
File "PSG_Widget_COVID19_Distance.py", line 106, in distance_list
df = pd.read_csv(file_url)
File "C:\Users\rizha\AppData\Local\Programs\Python\Python37\lib\site-packages
pandas\io\parsers.py", line 676, in parser_f
return _read(filepath_or_buffer, kwds)
File "C:\Users\rizha\AppData\Local\Programs\Python\Python37\lib\site-packages
pandas\io\parsers.py", line 454, in _read
data = parser.read(nrows)
File "C:\Users\rizha\AppData\Local\Programs\Python\Python37\lib\site-packages
pandas\io\parsers.py", line 1133, in read
ret = self._engine.read(nrows)
File "C:\Users\rizha\AppData\Local\Programs\Python\Python37\lib\site-packages
pandas\io\parsers.py", line 2037, in read
data = self._reader.read(nrows)
File "pandas_libs\parsers.pyx", line 860, in pandas._libs.parsers.TextReader.
read
File "pandas_libs\parsers.pyx", line 875, in pandas._libs.parsers.TextReader.
_read_low_memory
File "pandas_libs\parsers.pyx", line 929, in pandas._libs.parsers.TextReader.
_read_rows
File "pandas_libs\parsers.pyx", line 916, in pandas._libs.parsers.TextReader.
_tokenize_rows
File "pandas_libs\parsers.pyx", line 2071, in pandas._libs.parsers.raise_pars
er_error
pandas.errors.ParserError: Error tokenizing data. C error: Expected 1 fields in
line 33, saw 2

I'm getting 404 errors now. I believe they've depricated the datrafile that this program uses. The graphing program was moved to use a different data file a few weeks back. Will see if it can be used with the distance widget.

Not great news I'm afraid.

The time series data that the code was pulling from was removed.

There are other datasets that are popping up. Perhaps one of them could work for this code. I tried using the newer times series, but the detailed data has been removed.

The last I checked, the detailed data was available only in a daily report. There was no time series report available, however, one user had been running nightly scripts to generate a time series CSV file. I would rather not get data 2nd hand, or 3rd hand so I hoped to not use the generated files. Now there may be no choice. I'll add to the readme that there are problems. I'm too swamped right now to try and integrate a new dataset today.

noted and thanks!