Skip to content

mypy: merging flixbus and blablacar #17

Description

@ue71603

python /tool_scripts/script_swiss_couches.txt mylog.log all

(a) downloads flixbus
(b) downloads blablacar
(c) merges the two

problem in the merge block:



2025-03-20 11:57:01,668 - script_runner - INFO - merge_fernbusse - step: 4: conv.epip_db_to_db C:/Users/ue71603/Downloads/merge_fernbusse/03-gtfs.lmdb C:/Users/ue71603/Downloads/merge_fernbusse/04-epip.lmdb
2025-03-20 11:57:01,784 - script_runner - INFO - Copy all tables as-is 
Database Direction does not exist, creating it.
Database DataSource does not exist, creating it.
Database Operator does not exist, creating it.
Database ScheduledStopPoint does not exist, creating it.
2025-03-20 11:57:16,699 - script_runner - INFO - Copy lines, in EPIP style 
epip_line_memory
Database Line does not exist, creating it.
2025-03-20 11:57:18,015 - script_runner - INFO - Fix Quay / StopPlace locations 
2025-03-20 11:57:18,747 - script_runner - INFO - Investigate this site frame step 
epip_site_frame_memory
Database PassengerStopAssignment does not exist, creating it.
Database StopPlace does not exist, creating it.
2025-03-20 11:57:20,455 - script_runner - INFO - Service journeys 
epip_service_journey_generator
2025-03-20 11:57:20,455 - script_runner - INFO - Indexing RoutePoint to ScheduledStopPoint 
2025-03-20 11:57:20,522 - script_runner - INFO - Service journeys for now 
Database ServiceJourney does not exist, creating it.
Database ServiceJourneyPattern does not exist, creating it.
2025-03-20 11:58:08,040 - script_runner - INFO - Calendars 
2025-03-20 11:58:08,040 - script_runner - INFO - Calendar creation...
2025-03-20 11:58:09,344 - script_runner - ERROR - list index out of range Traceback (most recent call last):
  File "C:\Users\ue71603\MG_Daten\github\badger\tools\script_runner.py", line 481, in <module>
    main(
    ~~~~^
        args.script_file,
        ^^^^^^^^^^^^^^^^^
    ...<5 lines>...
        this_step=args.this_step,
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "C:\Users\ue71603\MG_Daten\github\badger\tools\script_runner.py", line 417, in main
    result = load_and_run(script_name, script_args)
  File "C:\Users\ue71603\MG_Daten\github\badger\tools\script_runner.py", line 111, in load_and_run
    result = main_function(*args1)
  File "C:\Users\ue71603\MG_Daten\github\badger\conv\epip_db_to_db.py", line 106, in main
    epip_service_calendar(source_db, target_db, generator_defaults)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ue71603\MG_Daten\github\badger\transformers\epip.py", line 756, in epip_service_calendar
    + load_local(db_read, DayType, embedding=True)
      ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ue71603\MG_Daten\github\badger\netexio\dbaccess.py", line 99, in load_local
    return list(
        load_generator(db, clazz, limit, filter_id, embedding, embedded_parent, cache)
    )
  File "C:\Users\ue71603\MG_Daten\github\badger\netexio\dbaccess.py", line 477, in load_generator
    yield from load_embedded_transparent_generator(
        db, clazz, limit, filter_id, parent, cache
    )
  File "C:\Users\ue71603\MG_Daten\github\badger\netexio\dbaccess.py", line 530, in load_embedded_transparent_generator
    yield resolve_attr(obj, split)
          ~~~~~~~~~~~~^^^^^^^^^^^^
  File "C:\Users\ue71603\MG_Daten\github\badger\netexio\attributes.py", line 9, in resolve_attr
    obj = obj[name]
          ~~~^^^^^^
IndexError: list index out of range


Process finished with exit code 0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions