- ➜ python3 -m emilia
- 2022-11-16 09:00:09,317 - emilia - INFO - Not loading: ['translation', 'rss', 'sed', 'weather']
- 2022-11-16 09:00:09,318 - emilia - INFO - Modules to load: ['admin', 'afk', 'antiflood', 'backups', 'bans', 'blacklist', 'blstickers', 'cleaner', 'connection', 'cust_filters', 'devs', 'disable', 'feds', 'global_bans', 'languages', 'locks', 'log_channel', 'misc', 'msg_deleting', 'muting', 'notes', 'reporting', 'rules', 'special', 'userinfo', 'users', 'warns', 'welcome']
- 2022-11-16 09:00:09,318 - emilia - INFO - Note: AntiSpam loaded!
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/base.py", line 1900, in _execute_context
- self.dialect.do_execute(
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/default.py", line 736, in do_execute
- cursor.execute(statement, parameters)
- psycopg2.errors.NumericValueOutOfRange: integer out of range
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
- return _run_code(code, main_globals, None,
- File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
- exec(code, run_globals)
- File "/opt/bot/who/emilia/__main__.py", line 22, in <module>
- from emilia.modules.languages import tl
- File "/opt/bot/who/emilia/modules/languages.py", line 11, in <module>
- from emilia.modules.disable import DisableAbleCommandHandler
- File "/opt/bot/who/emilia/modules/disable.py", line 11, in <module>
- from emilia.modules.connection import connected
- File "/opt/bot/who/emilia/modules/connection.py", line 15, in <module>
- from emilia.modules.helper_funcs.extraction import extract_user, extract_user_and_text
- File "/opt/bot/who/emilia/modules/helper_funcs/extraction.py", line 7, in <module>
- from emilia.modules.users import get_user_id
- File "/opt/bot/who/emilia/modules/users.py", line 11, in <module>
- import emilia.modules.sql.users_sql as sql
- File "/opt/bot/who/emilia/modules/sql/users_sql.py", line 172, in <module>
- ensure_bot_in_db()
- File "/opt/bot/who/emilia/modules/sql/users_sql.py", line 71, in ensure_bot_in_db
- SESSION.commit()
- File "<string>", line 2, in commit
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/session.py", line 1451, in commit
- self._transaction.commit(_to_root=self.future)
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/session.py", line 829, in commit
- self._prepare_impl()
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/session.py", line 808, in _prepare_impl
- self.session.flush()
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/session.py", line 3444, in flush
- self._flush(objects)
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/session.py", line 3584, in _flush
- transaction.rollback(_capture_exception=True)
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
- compat.raise_(
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/util/compat.py", line 210, in raise_
- raise exception
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/session.py", line 3544, in _flush
- flush_context.execute()
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/unitofwork.py", line 456, in execute
- rec.execute(self)
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/unitofwork.py", line 630, in execute
- util.preloaded.orm_persistence.save_obj(
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/persistence.py", line 245, in save_obj
- _emit_insert_statements(
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/persistence.py", line 1097, in _emit_insert_statements
- c = connection._execute_20(
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/base.py", line 1705, in _execute_20
- return meth(self, args_10style, kwargs_10style, execution_options)
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/sql/elements.py", line 334, in _execute_on_connection
- return connection._execute_clauseelement(
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/base.py", line 1572, in _execute_clauseelement
- ret = self._execute_context(
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/base.py", line 1943, in _execute_context
- self._handle_dbapi_exception(
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/base.py", line 2124, in _handle_dbapi_exception
- util.raise_(
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/util/compat.py", line 210, in raise_
- raise exception
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/base.py", line 1900, in _execute_context
- self.dialect.do_execute(
- File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/default.py", line 736, in do_execute
- cursor.execute(statement, parameters)
- sqlalchemy.exc.DataError: (psycopg2.errors.NumericValueOutOfRange) integer out of range
- [SQL: INSERT INTO users (user_id, username) VALUES (%(user_id)s, %(username)s)]
- [parameters: {'user_id': XXXXX, 'username': 'XXXXX'}]
- (Background on this error at: https://sqlalche.me/e/14/9h9h)