Thank you, Adam! For some reason I missed that part, thought that the created session will automatically be used, silly me:) But indeed, the error handling might have been better.
Adam Holmberg <adam.holmb...@datastax.com> writes: > This is a good question for the Python driver mailing list. (changing > recipients on this message) > > To answer your question: this is happening because there is no > connection setup for the cqlengine mapper. When using cqlengine, you > must setup the connection before querying or using management > functions: > http://datastax.github.io/python-driver/object_mapper.html# > getting-started > http://datastax.github.io/python-driver/api/cassandra/cqlengine/ > connection.html > > That said, this condition could be handled better. I've created a > ticket to improve the error message in these circumstances: > https://datastax-oss.atlassian.net/browse/PYTHON-451 > > Regards, > Adam Holmberg