What is this ~Error when running the command to visualize transit flow in chicago (the tuto on GitHub)

I’m new to Processing. I was trying to get the code working based on the following link:

[https://github.com/transitland/transitland-processing-animation]

I’m using Windows 10. The following are the steps to install Processing based on the above link.

1: Download Processing 3.
2: Download Unfolding Maps version 0.9.9 for Processing 3.
3: Navigate to ~/Documents/Processing/libraries on your machine.
4: Drag and drop the unzipped Unfolding Maps folder into ~/Documents/Processing/libraries.
5: Open Processing, navigate to Sketch > Import Library > Add Libary. Search for “Video Export” and click Install.
6: Quit and re-open Processing.

After some research, I found where was the folder libraries and I unzipped Unfolding Maps in here, I also install Video Export, so far so good, at least I think.

I downloaded the repository and did :

pip install -r requirements.txt Most of those packages was already installed in my computer but nevermind.

and cd transitflow

And, I run this line :

python transitflow.py --name=chicago --bbox=-87.992249,41.605175,-87.302856,42.126747 --clip_to_bbox --exclude=o-9-amtrak,o-9-amtrakcharteredvehicle

Everythings seems to worked but in the end I got this error and I cannot figure it out :

success!
5 operators successfully downloaded.
0 operators failed.
Concatenating individual operator outputs.
Calculating trip segment bearings.
Traceback (most recent call last):
  File "C:\Users\Evan\Anaconda3\lib\site-packages\pandas\core\indexes\base.py", line 2891, in get_loc
    return self._engine.get_loc(casted_key)
  File "pandas\_libs\index.pyx", line 70, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\index.pyx", line 101, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\hashtable_class_helper.pxi", line 1675, in pandas._libs.hashtable.PyObjectHashTable.get_item
  File "pandas\_libs\hashtable_class_helper.pxi", line 1683, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'bearing'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\Evan\Anaconda3\lib\site-packages\pandas\core\generic.py", line 3571, in _set_item
    loc = self._info_axis.get_loc(key)
  File "C:\Users\Evan\Anaconda3\lib\site-packages\pandas\core\indexes\base.py", line 2893, in get_loc
    raise KeyError(key) from err
KeyError: 'bearing'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "transitflow.py", line 406, in <module>
    df['bearing'] = df.apply(lambda row: calc_bearing_between_points(row['start_lat'], row['start_lon'], row['end_lat'], row['end_lon']), axis=1)
  File "C:\Users\Evan\Anaconda3\lib\site-packages\pandas\core\frame.py", line 3040, in __setitem__
    self._set_item(key, value)
  File "C:\Users\Evan\Anaconda3\lib\site-packages\pandas\core\frame.py", line 3117, in _set_item
    NDFrame._set_item(self, key, value)
  File "C:\Users\Evan\Anaconda3\lib\site-packages\pandas\core\generic.py", line 3574, in _set_item
    self._mgr.insert(len(self._info_axis), key, value)
  File "C:\Users\Evan\Anaconda3\lib\site-packages\pandas\core\internals\managers.py", line 1189, in insert
    block = make_block(values=value, ndim=self.ndim, placement=slice(loc, loc + 1))
  File "C:\Users\Evan\Anaconda3\lib\site-packages\pandas\core\internals\blocks.py", line 2719, in make_block
    return klass(values, ndim=ndim, placement=placement)
  File "C:\Users\Evan\Anaconda3\lib\site-packages\pandas\core\internals\blocks.py", line 2375, in __init__
    super().__init__(values, ndim=ndim, placement=placement)
  File "C:\Users\Evan\Anaconda3\lib\site-packages\pandas\core\internals\blocks.py", line 130, in __init__
    f"Wrong number of items passed {len(self.values)}, "
ValueError: Wrong number of items passed 8, placement implies 1

The output code is way longer but everything before seems to running so I didn’t want to saturate my post, but to resume it’s mainly :

success!
b'o-dp3-chicagotransitauthority' n / 5

Any ideas ? I’m stuck.

Just in case, the data come from this site : https://transit.land/feed-registry/

I looked into transitflow.py and I retrieved the line of code who’s getting me this error (I think) :

df['bearing'] = df.apply(lambda row: calc_bearing_between_points(row['start_lat'], row['start_lon'], row['end_lat'], row['end_lon']), axis=1)