bmander/gtfs — Issue #16: No longer working with SQLAlchemy 0.7.5
Author: monocoder
Created: 2012-03-03 13:03:06+00:00
State: open

I've tried to run the test.py script with SQLAlchemy 0.7.5 and ActivePython 2.7.2.5 without any success.
I get the following errors several times:
"ArgumentError: Column-based expression object expected for argument 'order_by'; got: 'stop_sequence', type "
and
"InvalidRequestError: One or more mappers failed to initialize - can't proceed with initialization of other mappers. Original exception was: Column-based expression object expected for argument 'order_by'; got: 'stop_sequence', type "

Maybe the order of arguments changed somewhere in the SQL Alchemy API.

Also if I try to create a database from the zippped transit using:
import gtfs
sched = gtfs.load("google_transit.zip", "transit.db")

I get the following error:
sqlalchemy.exc.ArgumentError: Column-based expression object expected for argument 'order_by'; got: 'stop_sequence', type