- Traceback (most recent call last):
- File "C:\Users\zacha\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1204, in _execute_context
- context = constructor(dialect, self, conn, *args)
- File "C:\Users\zacha\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\default.py", line 793, in _init_compiled
- compiled._result_columns,
- AttributeError: 'SQLiteDDLCompiler' object has no attribute '_result_columns'
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "C:\Users\zacha\AppData\Roaming\JetBrains\PyCharm2022.1\scratches\scratch_5.py", line 5, in <module>
- test.setUp()
- File "C:\Users\zacha\PycharmProjects\LiSE\LiSE\LiSE\allegedb\tests\test_all.py", line 24, in setUp
- self.engine = ORM('sqlite:///:memory:')
- File "C:\Users\zacha\PycharmProjects\LiSE\LiSE\LiSE\allegedb\__init__.py", line 795, in __init__
- self.query.initdb()
- File "C:\Users\zacha\PycharmProjects\LiSE\LiSE\LiSE\allegedb\query.py", line 803, in initdb
- raise ret
- File "C:\Users\zacha\PycharmProjects\LiSE\LiSE\LiSE\allegedb\query.py", line 226, in initdb
- ret = self.init_table(table)
- File "C:\Users\zacha\PycharmProjects\LiSE\LiSE\LiSE\allegedb\query.py", line 101, in init_table
- return self.sql('create_{}'.format(tbl))
- File "C:\Users\zacha\PycharmProjects\LiSE\LiSE\LiSE\allegedb\query.py", line 113, in sql
- return getattr(self.alchemist, stringname)(*args, **kwargs)
- File "C:\Users\zacha\PycharmProjects\LiSE\LiSE\LiSE\allegedb\alchemy.py", line 442, in caller
- return self.conn.execute(statement)
- File "C:\Users\zacha\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1011, in execute
- return meth(self, multiparams, params)
- File "C:\Users\zacha\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\sql\compiler.py", line 337, in _execute_on_connection
- return connection._execute_compiled(self, multiparams, params)
- File "C:\Users\zacha\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1147, in _execute_compiled
- ret = self._execute_context(
- File "C:\Users\zacha\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1206, in _execute_context
- self._handle_dbapi_exception(
- File "C:\Users\zacha\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1510, in _handle_dbapi_exception
- util.raise_(
- File "C:\Users\zacha\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\compat.py", line 182, in raise_
- raise exception
- File "C:\Users\zacha\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1204, in _execute_context
- context = constructor(dialect, self, conn, *args)
- File "C:\Users\zacha\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\default.py", line 793, in _init_compiled
- compiled._result_columns,
- sqlalchemy.exc.StatementError: (builtins.AttributeError) 'SQLiteDDLCompiler' object has no attribute '_result_columns'
- [SQL:
- CREATE TABLE branches (
- branch TEXT NOT NULL,
- parent TEXT,
- parent_turn INTEGER NOT NULL,
- parent_tick INTEGER NOT NULL,
- end_turn INTEGER NOT NULL,
- end_tick INTEGER NOT NULL,
- PRIMARY KEY (branch),
- CHECK (branch<>parent),
- FOREIGN KEY(branch) REFERENCES branches (parent)
- )
- WITHOUT ROWID
- ]
no result columns
By: clayot | Date: Apr 30 2022 20:08 | Format: None | Expires: never | Size: 3.45 KB | Hits: 303
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago