toncenter / pytonlib

Python SDK for TON via tonlib
GNU General Public License v3.0
80 stars 21 forks source link

Fixed 'coroutine was never awaited' error #46

Closed Stanislav-Povolotsky closed 11 months ago

Stanislav-Povolotsky commented 1 year ago

Error example:

Traceback (most recent call last):
  File "C:\test\ton-http-api\python310\lib\multiprocessing\queues.py", line 244, in _feed
    obj = _ForkingPickler.dumps(obj)
  File "C:\test\ton-http-api\python310\lib\multiprocessing\reduction.py", line 51, in dumps
    cls(buf, protocol).dump(obj)
TypeError: cannot pickle 'coroutine' object
C:\test\ton-http-api\python310\lib\multiprocessing\queues.py:236: RuntimeWarning: coroutine 'TonlibClient._raw_send_query' was never awaited
  obj = bpopleft()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback