Re: AttributeError python exception when using Models

2015-12-07 Thread Юрий Пухальский
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 writes: > This is a good question for the Python driver mailing list.

Re: AttributeError python exception when using Models

2015-12-07 Thread Adam Holmberg
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

AttributeError python exception when using Models

2015-12-06 Thread Юрий Пухальский
Good day, everyone! I'm using 2.7.2 python driver from gentoo portage. When I use traditional inserts and selects within my program, it works ok. But when I try to use models, the program fails with an exception. Here's the minimal program (I'm very new to cassandra, so maybe I'm missing