-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
blockerissue that must be resolved asap as it is preventing things from workingissue that must be resolved asap as it is preventing things from workingbugSomething isn't workingSomething isn't workingormregressionsomething worked and was broken by a changesomething worked and was broken by a change
Milestone
Description
While upgrading sqlalchemy from 1.3.13 to 1.3.14 I get this error:
...
/opt/c2cgeoportal/geoportal/c2cgeoportal_geoportal/lib/__init__.py:275: in get_role_id
return DBSession.query(main.Role.id).filter(main.Role.name == name).all()[0]
/usr/local/lib/python3.7/dist-packages/sqlalchemy/orm/query.py:3236: in all
return list(self)
/usr/local/lib/python3.7/dist-packages/sqlalchemy/orm/query.py:3394: in __iter__
self.session._autoflush()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sqlalchemy.orm.session.Session object at 0x7fec23e0e590>
def _autoflush(self):
if self.autoflush and not self._flushing:
try:
self.flush()
except sa_exc.StatementError as e:
# note we are reraising StatementError as opposed to
# raising FlushError with "chaining" to remain compatible
# with code that catches StatementError, IntegrityError,
# etc.
e.add_detail(
"raised as a result of Query-invoked autoflush; "
"consider using a session.no_autoflush block if this "
"flush is occurring prematurely"
)
> util.raise_(e, with_traceback=sys.exc_info[2])
E TypeError: 'builtin_function_or_method' object is not subscriptable
/usr/local/lib/python3.7/dist-packages/sqlalchemy/orm/session.py:1602: TypeErrorFor me, it looks to be a regression, what do you think?
Full log: https://github.com/camptocamp/c2cgeoportal/pull/5964/checks?check_run_id=498945019
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
blockerissue that must be resolved asap as it is preventing things from workingissue that must be resolved asap as it is preventing things from workingbugSomething isn't workingSomething isn't workingormregressionsomething worked and was broken by a changesomething worked and was broken by a change