psylopunk / pytonlib

Simple python client for The Open Network
https://pydocs.xton.me/
MIT License
93 stars 19 forks source link

Great work! But how to use it? #37

Open mistercx opened 7 months ago

mistercx commented 7 months ago

I try to run init.py from examples and I see:

Microsoft Windows [Version 10.0.19045.4291] (c) Корпорация Майкрософт (Microsoft Corporation). Все права защищены.

c:\Temp>python3 Python 3.11.1 (tags/v3.11.1:a7a450f, Dec 6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

from ton import TonlibClient client = TonlibClient() TonlibClient.enable_unaudited_binaries() await client.init_tonlib() File "", line 1 SyntaxError: 'await' outside function