I’m using Python3 and was following http://crossbar.io/docs/Database-Programming-with-PostgreSQL, but it looks like txpostgres does not work with Python3.
I’ve tried aiopg, but it looks like it only works correctly with asyncio. I’ve tried to substitute autobahn.twisted.wamp.ApplicationSession for autobahn.asyncio.wamp.ApplicationSession but that results in the error “builtins.AttributeError: ‘Deferred’ object has no attribute ‘set_result’”. Am I correct that an asyncio session can only be run from another host process and not directly from “crossbar start”?
What would be the best route to take here? Just use a separate autobahn.asyncio.wamp.ApplicationRunner to spawn the asyncio components, or am I missing something?