Web appOpen in Telegram
PPeewee (Python ORM)

Peewee (Python ORM)

@PeeweeChat · group · Tech · indexed since 2026-07-04
37members
1 406messages in the index
P
During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/parakt/.local/lib/python3.8/site-packages/telethon/client/updates.py", line 467, in _dispatch_update await callback(event) File "/home/parakt/penwin7/penwin/business/mailman.py", line 261, in handlerMessage await task File "/home/parakt/penwin7/penwin/business/mailman.py", line 32, in filter_signal await update_signal(inc_chat_id, chat_conf, message, event) File "/home/parakt/penwin7/penwin/business/mailman.py", line 60, in update_signal return File "/home/parakt/.local/lib/python3.8/site-packages/peewee.py", line 4158, in exit return self._helper.__exit__(exc_type, exc_val, exc_tb) File "/home/parakt/.local/lib/python3.8/site-packages/peewee.py", line 4227, in exit self.rollback() File "/home/parakt/.local/lib/python3.8/site-packages/peewee.py", line 4214, in rollback self.db.execute_sql('ROLLBACK TO SAVEPOINT %s;' % self.quoted_sid) File "/home/parakt/.local/lib/python3.8/site-packages/peewee.py", line 3136, in execute_sql self.commit() File "/home/parakt/.local/lib/python3.8/site-packages/peewee.py", line 2902, in exit reraise(new_type, new_type(exc_value, *exc_args), traceback) File "/home/parakt/.local/lib/python3.8/site-packages/peewee.py", line 185, in reraise raise value.with_traceback(tb) File "/home/parakt/.local/lib/python3.8/site-packages/peewee.py", line 3129, in execute_sql cursor.execute(sql, params or ()) peewee.OperationalError: no such savepoint: s0981e1ec26f44688bcc610a16b201030
P
I can't find anything about it on the internet
J
No such savepoint? What the heck are savepoints 🤔
P
I don't know but it's a peewee error...😞
V
Hi, trying ti undesta d the several communyties of Python orm, which isbthe strengs oh pewee va others?
S
hey, I am making a kodi addon where I wanted to use peewee. My Kodi build uses python3.7. I packaged peewee and managed to run it. Everything is working fine until I try to close a specific database
S
while it works fine on my PC with a python interpreter, in kodi the close call blocks forever
S
I tried passing thread_safe=False to the SqliteDatabase instance, but didn't seem to make any difference
D
Guys I'm just getting started with peewee in general and I have a question. According to the documentation, I need to specify the database connection in the "Meta" method inside my model. But the thing is, I want to put my models in a separate python file and import it from other files in my code. I'm not sure if this will work correctly, since when you import (I think so), all variables and data are reinitialized. How can I format my code correctly?
S
I struggled with the same issue for a while too then just created a config module where the database class can directly access this value
S
Haven't found an elegant way to pass it as an argument or so

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog · Search · How we count