Public paste
Undefined
By: Guest | Date: Feb 13 2023 05:15 | Format: None | Expires: never | Size: 2.3 KB | Hits: 156

  1. Exception in thread Thread-1 (run):
  2. Traceback (most recent call last):
  3.   File "C:\Python\Lib\threading.py", line 1038, in _bootstrap_inner
  4.     self.run()
  5.   File "C:\Python\Lib\threading.py", line 975, in run
  6.     self._target(*self._args, **self._kwargs)
  7.   File "C:\Dev\LiSE\LiSE\LiSE\allegedb\query.py", line 126, in run
  8.     self.sql = gather_sql(self.meta)
  9.                ^^^^^^^^^^^^^^^^^^^^^
  10.   File "C:\Dev\LiSE\LiSE\LiSE\query.py", line 872, in gather
  11.     return gather_sql(meta)
  12.            ^^^^^^^^^^^^^^^^
  13.   File "C:\Dev\LiSE\LiSE\LiSE\alchemy.py", line 449, in gather_sql
  14.     query = queries(table)
  15.             ^^^^^^^^^^^^^^
  16.   File "C:\Dev\LiSE\LiSE\LiSE\alchemy.py", line 356, in queries
  17.     r = alchemy.queries_for_table_dict(table)
  18.         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  19.   File "C:\Dev\LiSE\LiSE\LiSE\allegedb\alchemy.py", line 216, in queries_for_table_dict
  20.     select([table['global'].c.value
  21.   File "C:\Python\Lib\site-packages\sqlalchemy\sql\_selectable_constructors.py", line 493, in select
  22.     return Select(*entities)
  23.            ^^^^^^^^^^^^^^^^^
  24.   File "C:\Python\Lib\site-packages\sqlalchemy\sql\selectable.py", line 5160, in __init__
  25.     self._raw_columns = [
  26.                         ^
  27.   File "C:\Python\Lib\site-packages\sqlalchemy\sql\selectable.py", line 5161, in <listcomp>
  28.     coercions.expect(
  29.   File "C:\Python\Lib\site-packages\sqlalchemy\sql\coercions.py", line 413, in expect
  30.     resolved = impl._literal_coercion(
  31.                ^^^^^^^^^^^^^^^^^^^^^^^
  32.   File "C:\Python\Lib\site-packages\sqlalchemy\sql\coercions.py", line 652, in _literal_coercion
  33.     self._raise_for_expected(element, argname)
  34.   File "C:\Python\Lib\site-packages\sqlalchemy\sql\coercions.py", line 1143, in _raise_for_expected
  35.     return super()._raise_for_expected(
  36.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  37.   File "C:\Python\Lib\site-packages\sqlalchemy\sql\coercions.py", line 711, in _raise_for_expected
  38.     super()._raise_for_expected(
  39.   File "C:\Python\Lib\site-packages\sqlalchemy\sql\coercions.py", line 536, in _raise_for_expected
  40.     raise exc.ArgumentError(msg, code=code) from err
  41. sqlalchemy.exc.ArgumentError: Column expression, FROM clause, or other columns clause element expected, got [Column('value', TEXT(), table=<global>)]. Did you mean to say select(Column('value', TEXT(), table=<global>))?