Skip to content

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

@jwu56

Description

@jwu56

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions