transitland-processing-animation icon indicating copy to clipboard operation
transitland-processing-animation copied to clipboard

TransLink feed does not download (ValueError: No objects to concatenate)

Open jwu56 opened this issue 5 years ago • 0 comments

Hi,

I have been playing around with this transit software and have tried many different ways to download the data from my local service operator, Translink and convert it into a map. The examples work fine, however, the operator in my area operates two feeds which ends up being a couple of trillion entries. I assume that it is a server error but sometimes the downloading just stops and I get this error message:

failed operators: [b'o-r-translink']
Concatenating individual operator outputs.
Traceback (most recent call last):
  File "transitflow.py", line 404, in <module>
    df = concatenate_csvs("sketches/{}/{}/data/indiv_operators".format(OUTPUT_NAME, DATE))
  File "transitflow.py", line 184, in concatenate_csvs
    concatenated_df   = pd.concat(df_from_each_file, ignore_index=True)
  File "C:\Program Files\Python37\lib\site-packages\pandas\core\reshape\concat.py", line 255, in concat
    sort=sort,
  File "C:\Program Files\Python37\lib\site-packages\pandas\core\reshape\concat.py", line 304, in __init__
    raise ValueError("No objects to concatenate")
ValueError: No objects to concatenate

I have also tried to change the amount of entries per page, and even setting it to 1 and leaving it on the whole night still returned a similar error message.

jwu56 avatar Oct 18 '19 06:10 jwu56