# dagster-feedback

Jonathan Wears

01/27/2023, 1:39 PM
I just want to put a helpful note to everyone due to SqlAlchemy not being pinned on Dagster any new docker build will install sqlalchemy 2.0.0 which seems to be incompatible with dagster (well at least the version i'm using 1.1.7); my fix was explicitly tying my requirements.txt to sqlalchemy 1.4.5 which was the version running on the dagster daemon pod. I lost an afternoon to chasing down this issue. So I hope this message can help someone else from debugging this. For transparency and knowledge sharing this was the error I was receiving when trying to run
Copy code
Traceback (most recent call last):
  File "/usr/local/bin/dagster", line 8, in <module>
  File "/usr/local/lib/python3.10/site-packages/dagster/_cli/", line 48, in main
    cli(auto_envvar_prefix=ENV_PREFIX)  # pylint:disable=E1123
  File "/usr/local/lib/python3.10/site-packages/click/", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/click/", line 1055, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.10/site-packages/click/", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.10/site-packages/click/", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.10/site-packages/click/", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.10/site-packages/click/", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/dagster/_cli/", line 74, in execute_run_command
    return_code = _execute_run_command_body(
  File "/usr/local/lib/python3.10/site-packages/dagster/_cli/", line 100, in _execute_run_command_body
  File "/usr/local/lib/python3.10/site-packages/dagster/_utils/", line 670, in inner
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/dagster/_core/instance/", line 808, in get_run_by_id
    return cast(DagsterRun, self._run_storage.get_run_by_id(run_id))
  File "/usr/local/lib/python3.10/site-packages/dagster/_core/storage/runs/", line 460, in get_run_by_id
    query =[RunsTable.c.run_body, RunsTable.c.status]).where(
  File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/", line 493, in select
    return Select(*entities)
  File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/", line 5219, in __init__
    self._raw_columns = [
  File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/", line 5220, in <listcomp>
  File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/", line 413, in expect
    resolved = impl._literal_coercion(
  File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/", line 652, in _literal_coercion
    self._raise_for_expected(element, argname)
  File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/", line 1143, in _raise_for_expected
    return super()._raise_for_expected(
  File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/", line 711, in _raise_for_expected
  File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/", line 536, in _raise_for_expected
    raise exc.ArgumentError(msg, code=code) from err
sqlalchemy.exc.ArgumentError: Column expression, FROM clause, or other columns clause element expected, got [Column('run_body', Text(), table=<runs>), Column('status', String(length=63), table=<runs>)]. Did you mean to say select(Column('run_body', Text(), table=<runs>), Column('status', String(length=63), table=<runs>))?
which to me is indicative of breaking changes in sqlalchemy to that of 1.4.5. I see this has been fixed in so perhaps the simple solution is to upgrading your dagster release in your deployments and helm chart


01/27/2023, 4:54 PM
Thanks Jonathan. We’re putting together a release right now to address this.

Solaris Wang

01/30/2023, 6:56 PM
@prha if we have a package in our requirements that overlaps and is a later version than what you have in your newly implemented caps on dagster reqs, how is that handled? does ours get downgraded to your max capped version?


01/31/2023, 6:14 PM
I think it depends on the pip resolver and the order of dep resolution (, In general, this would cause a resolution error when you try to run
pip install
and you’d have to manually resolve somehow.