[sqlalchemy] ArgumentError: Only one Column may be marked autoincrement=True, found both id and id

2020-08-21 Thread Vitaly Kruglikov
Dear all, I am using: sqlalchemy==1.3.18 psycopg2==2.8.4 connection url schema: "postgresql+psycopg2://..." postgres 10.x when I define an explicit AutomapBase-derived model for 'sqa_global_context' table with only the primary key, I expected that running

[sqlalchemy] declared_attr not working with Postgres HSTORE

2020-08-21 Thread Saakshaat Singh
Hi, I'm working with SQLAlchemy and Postgres and I have a polymorphic model whose subclasses have a field with the same name. To allow this field to co-exist with the others and not cause any name conflicts, I'm using the `declare_attr` decorator from SQLAlchemy. This solution works well for

Re: [sqlalchemy] Download documentation as pdf

2020-08-21 Thread Mike Bayer
it's not, as PDF generation is very problematic and we are not able to provide this file. The sphinx documentation can be built as LaTeX that can then be converted to pdf but you'd find it's a very error prone process, and the resulting PDF doesn't look very good either. On Fri, Aug 21, 2020,

[sqlalchemy] Download documentation as pdf

2020-08-21 Thread Amey Joshi
I am curious, is 1.3 documentation available as pdf format ? I can see it is available as zip file as a bundle of html files https://docs.sqlalchemy.org/en/13/index.html. Amey -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example

[sqlalchemy] Re: AttributeError: 'NoneType' object has no attribute 'pop'

2020-08-21 Thread ling...@gmail.com
AttributeError means that there was an Error that had to do with an Attribute request. In general, when you write x.y, y is the purported attribute of x. NoneType means that instead of an instance of whatever Class or Object you think you're working with, you've actually got None