This problem occurs when using python-midgard with sqlite.
When object is updated/created somewhere else (example some other process), using Midgard.mgdschema.schema(int(id)) to fetch object later causes this call to hangup totally. Application must be then terminated by force. Using o = Midgard.mgdschema.schema() o.get_by_id(int(id)) wont work either. Only when the other process is closed first, this won't happen.
NOTE: Using midgard query builder to fetch the object works fine.
(copied from http://trac.midgard-project.org/ticket/1759)