Closed cnlg-lanl closed 1 year ago
@cnlg-lanl That external contributor's PR may have used something other than declarative_base
because of the intent of the SQLA authors. Again, maybe we can not worry about it for now, since you've found the original function, and we can just see if it creates any problems.
I think the other change made by the external user may have been to address the items()
error we're seeing. Want me to make it, or are you ok to?
I'll let you make it and see if that fixes it...doing some research on it as this could be a separate issue. Looking here
From the change_log:
Deprecated all schema-level ``.copy()`` methods and renamed to
``_copy()``. These are not standard Python "copy()" methods as they
typically rely upon being instantiated within particular contexts
which are passed to the method as optional keyword arguments. The
:meth:`_schema.Table.tometadata` method is the public API that provides
copying for :class:`_schema.Table` objects.
Working on this now, making the suggested change
welp, same problem
Closes #38 .
Done
Thanks again, @cnlg-lanl. Huzzah!
This also takes care of issue #44
Updated location of _declarative_constructor now located in sqlalchemy.orm.decl_base.py . Tried to leave exception for sqlalchemy 1.3.4 users