Problem with SQLAlchemy 1.4.0
See original GitHub issueHello,
New version of SQLAlchemy (1.4.0) was released 15.03.2020 and since then I got following error:
File "/layers/google.python.pip/pip/lib/python3.8/site-packages/promise/promise.py", line 489, in _resolve_from_executor
executor(resolve, reject)
File "/layers/google.python.pip/pip/lib/python3.8/site-packages/promise/promise.py", line 756, in executor
return resolve(f(*args, **kwargs))
File "/layers/google.python.pip/pip/lib/python3.8/site-packages/graphql/execution/middleware.py", line 75, in make_it_promise
return next(*args, **kwargs)
File "/layers/google.python.pip/pip/lib/python3.8/site-packages/graphene_sqlalchemy/fields.py", line 78, in connection_resolver
return on_resolve(resolved)
File "src/adtrender_api/connections.py", line 52, in resolve_connection
return super().resolve_connection(connection_type, model, info, args, resolved)
File "/layers/google.python.pip/pip/lib/python3.8/site-packages/graphene_sqlalchemy/fields.py", line 53, in resolve_connection
_len = resolved.count()
File "/layers/google.python.pip/pip/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3009, in count
return self._from_self(col).scalar()
File "/layers/google.python.pip/pip/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 2753, in scalar
ret = self.one()
File "/layers/google.python.pip/pip/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 2730, in one
return self._iter().one()
File "/layers/google.python.pip/pip/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 2768, in _iter
result = self.session.execute(
File "/layers/google.python.pip/pip/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 1653, in execute
result = conn._execute_20(statement, params or {}, execution_options)
File "/layers/google.python.pip/pip/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1520, in _execute_20
return meth(self, args_10style, kwargs_10style, execution_options)
File "/layers/google.python.pip/pip/lib/python3.8/site-packages/sqlalchemy/sql/elements.py", line 313, in _execute_on_connection
return connection._execute_clauseelement(
File "/layers/google.python.pip/pip/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1381, in _execute_clauseelement
compiled_sql, extracted_params, cache_hit = elem._compile_w_cache(
File "/layers/google.python.pip/pip/lib/python3.8/site-packages/sqlalchemy/sql/elements.py", line 533, in _compile_w_cache
compiled_sql = self._compiler(
File "/layers/google.python.pip/pip/lib/python3.8/site-packages/sqlalchemy/sql/elements.py", line 566, in _compiler
return dialect.statement_compiler(dialect, self, **kw)
File "/layers/google.python.pip/pip/lib/python3.8/site-packages/pybigquery/sqlalchemy_bigquery.py", line 137, in __init__
super(BigQueryCompiler, self).__init__(dialect, statement, column_keys, inline, **kwargs)
TypeError: __init__() got multiple values for argument 'cache_key'"
I rolled back to SQLAlchemy==1.3.20 and it works fine.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:15 (10 by maintainers)
Top Results From Across the Web
Error Messages - SQLAlchemy 1.4 Documentation
Exception raised when the database encounters an internal error, e.g. the cursor is not valid anymore, the transaction is out of sync, etc....
Read more >Import broken by sqlalchemy 1.4.0 · Issue #505 - GitHub
* Issue caused by kvesteri/sqlalchemy-utils#505. * Issue caused by an imcompatibility between sqlalchemy-utils and latest SQLAlchemy 1.4 (see more here ...
Read more >SQLalchemy making errors after being updated to 1.4.0
Closed last year. (Not a question). I've experienced some crashes with sqlalchy_utils after updating from sqlalchemy 1.3.21 to 1.4 ...
Read more >'NullType' object is not callable in one of my write in SF jobs ...
snowflake-sqlalchemy 1.4.0 is causing trouble in terms of generating ... /databricks/python/lib/python3.8/site-packages/pandas/io/sql.py in ...
Read more >Developers - Problem with SQLAlchemy 1.4.0 - - Bountysource
Coming soon: A brand new website interface for an even better experience!
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jimfulton Started a PR, couldn’t find the time to finish it until now,
Did you see it? Willing to help finish if needed
Release 0.8.0 supports SQLAlchemy 1.4.