Похожие чаты

Good day! I hve an exception “Can't pickle local object TelegramBaseClient.__init__.<locals>._Loggers”.



I use multiprocessing, and i put to the Scheduler class telethon client for send msg when scheduler will be finish.

How can i fix this exception?


class Scheduler:
def __init__(self, bot):
self.bot = bot

def start_process(self):
Process(target=self.start_scheduler, args=()).start()

1 ответов

20 просмотров

Just don't. a TelegramClient is complex and involves multiple handicaps, from network sockets, local classes, and async objects that don't support resuming, i don't think there is a convenient way to just pickle it up. donno much about multi-processing so you have to do it in other ways if it must pickle it

Похожие вопросы

Обсуждают сегодня

I didn't promote anything. Although this IS the EOS chat. Are you low IQ?
Stonehenge
40
У меня это всегда вопрос вызывало.. Нафига писать код так, чтобы потом ошибки вылавливать?
Nik
44
Ready for some fun AND a chance to win TKO Tokens? Join us for exciting minigames in our Telegram group! 🕒 Don’t miss out—games start on today 25 October 2024, at 8 PM! Ge...
Milkyway | Tokocrypto
255
всем привет. реально ли понять чем в процессе занята память? delphi/linux, процесс свой
Handatros
12
что за асемблер кста?
Shvabrikk Nya
19
Добрый день! Пробую отловить исключение EConvertError: function _TryTextToDouble(var DoubleVar: Extended; Text: String): Boolean; begin try DoubleVar := StrToFloat...
Kirill Filippenok
19
Или алса чистая?
theakella122 обладатель mi9t
27
You insist on manipulating the meaning of words for the benefit of your bags. How is that any different from what some people do in the other direction? Like the ones who cla...
Nenad [I won't dm you]
8
Makes sense. So the market conditions don't really affect the token users. What effect do token users have on the market?
Moonlander🌱
14
Dear Frax Finance community , I am a holder of the Frax Share (FXS) token, which I currently store in cold storage. Recently, I came across discussions in the Telegram channe...
Yelena
6
Карта сайта