>>> schema.SpotType("test") Traceback (most recent call last): File "", line 1, in File "", line 4, in __init__ File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/state.py", line 94, in initialize_instance fn(self, instance, args, kwargs) File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/mapper.py", line 2388, in _event_on_init instrumenting_mapper.compile() File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/mapper.py", line 795, in compile mapper._compile_failed) sqlalchemy.exc.InvalidRequestError: One or more mappers failed to compile. Exception was probably suppressed within a hasattr() call. Message was: __init__() takes at least 3 arguments (1 given)