tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

There was an error running tdjson. example. py! #3065

Closed hhxdestiny closed 1 month ago

hhxdestiny commented 1 month ago

[os]: win11 x64

[cmd]: python tdjson. example. py

[console] :

Traceback (most recent call last):
  File "D:\works\td\example\python\tdjson_example.py", line 63, in <module>
    print(str(td_execute({'@type': 'setLogVerbosityLevel', 'new_verbosity_level': 1, '@extra': 1.01234})).encode('utf-8'))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\works\td\example\python\tdjson_example.py", line 55, in td_execute
    result = _td_execute(query)
             ^^^^^^^^^^^^^^^^^^
OSError: exception: access violation reading 0x0000000000000000
levlam commented 1 month ago

Everything works correctly for me with Python 3.11.9 and I doubt that something was changed with ctypes in 3.12.

Could you run the command dir -l . from the directory D:\works\td\example\python and send its output?

hhxdestiny commented 1 month ago

Everything works correctly for me with Python 3.11.9 and I doubt that something was changed with ctypes in 3.12.

Could you run the command dir -l . from the directory D:\works\td\example\python and send its output?

Everything works correctly for me with Python 3.11, thanks!