cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aikip...@gmail.com (Юрий Пухальский)
Subject Re: AttributeError python exception when using Models
Date Tue, 08 Dec 2015 06:28:16 GMT
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.holmberg@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

Mime
View raw message