Автор: Сексуальный Фламинго, 2 лет назад, написана на языке Plain Text.
Встраивание на сайт
  1. ➜  python3 -m emilia                      
  2. 2022-11-16 09:00:09,317 - emilia - INFO - Not loading: ['translation', 'rss', 'sed', 'weather']
  3. 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']
  4. 2022-11-16 09:00:09,318 - emilia - INFO - Note: AntiSpam loaded!
  5. Traceback (most recent call last):
  6.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/base.py", line 1900, in _execute_context
  7.     self.dialect.do_execute(
  8.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/default.py", line 736, in do_execute
  9.     cursor.execute(statement, parameters)
  10. psycopg2.errors.NumericValueOutOfRange: integer out of range
  11.  
  12.  
  13. The above exception was the direct cause of the following exception:
  14.  
  15. Traceback (most recent call last):
  16.   File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
  17.     return _run_code(code, main_globals, None,
  18.   File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
  19.     exec(code, run_globals)
  20.   File "/opt/bot/who/emilia/__main__.py", line 22, in <module>
  21.     from emilia.modules.languages import tl
  22.   File "/opt/bot/who/emilia/modules/languages.py", line 11, in <module>
  23.     from emilia.modules.disable import DisableAbleCommandHandler
  24.   File "/opt/bot/who/emilia/modules/disable.py", line 11, in <module>
  25.     from emilia.modules.connection import connected
  26.   File "/opt/bot/who/emilia/modules/connection.py", line 15, in <module>
  27.     from emilia.modules.helper_funcs.extraction import extract_user, extract_user_and_text
  28.   File "/opt/bot/who/emilia/modules/helper_funcs/extraction.py", line 7, in <module>
  29.     from emilia.modules.users import get_user_id
  30.   File "/opt/bot/who/emilia/modules/users.py", line 11, in <module>
  31.     import emilia.modules.sql.users_sql as sql
  32.   File "/opt/bot/who/emilia/modules/sql/users_sql.py", line 172, in <module>
  33.     ensure_bot_in_db()
  34.   File "/opt/bot/who/emilia/modules/sql/users_sql.py", line 71, in ensure_bot_in_db
  35.     SESSION.commit()
  36.   File "<string>", line 2, in commit
  37.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/session.py", line 1451, in commit
  38.     self._transaction.commit(_to_root=self.future)
  39.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/session.py", line 829, in commit
  40.     self._prepare_impl()
  41.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/session.py", line 808, in _prepare_impl
  42.     self.session.flush()
  43.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/session.py", line 3444, in flush
  44.     self._flush(objects)
  45.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/session.py", line 3584, in _flush
  46.     transaction.rollback(_capture_exception=True)
  47.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
  48.     compat.raise_(
  49.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/util/compat.py", line 210, in raise_
  50.     raise exception
  51.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/session.py", line 3544, in _flush
  52.     flush_context.execute()
  53.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/unitofwork.py", line 456, in execute
  54.     rec.execute(self)
  55.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/unitofwork.py", line 630, in execute
  56.     util.preloaded.orm_persistence.save_obj(
  57.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/persistence.py", line 245, in save_obj
  58.     _emit_insert_statements(
  59.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/persistence.py", line 1097, in _emit_insert_statements
  60.     c = connection._execute_20(
  61.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/base.py", line 1705, in _execute_20
  62.     return meth(self, args_10style, kwargs_10style, execution_options)
  63.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/sql/elements.py", line 334, in _execute_on_connection
  64.     return connection._execute_clauseelement(
  65.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/base.py", line 1572, in _execute_clauseelement
  66.     ret = self._execute_context(
  67.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/base.py", line 1943, in _execute_context
  68.     self._handle_dbapi_exception(
  69.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/base.py", line 2124, in _handle_dbapi_exception
  70.     util.raise_(
  71.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/util/compat.py", line 210, in raise_
  72.     raise exception
  73.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/base.py", line 1900, in _execute_context
  74.     self.dialect.do_execute(
  75.   File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/default.py", line 736, in do_execute
  76.     cursor.execute(statement, parameters)
  77. sqlalchemy.exc.DataError: (psycopg2.errors.NumericValueOutOfRange) integer out of range
  78.  
  79. [SQL: INSERT INTO users (user_id, username) VALUES (%(user_id)s, %(username)s)]
  80. [parameters: {'user_id': XXXXX, 'username': 'XXXXX'}]
  81. (Background on this error at: https://sqlalche.me/e/14/9h9h)