paul-nameless / tg

terminal telegram client
The Unlicense
929 stars 76 forks source link

OSError, wrong ELF class: ELFCLASS64 after installing with pip. #302

Open Kreijstal opened 1 year ago

Kreijstal commented 1 year ago

tg:


Traceback (most recent call last):
  File "/home/pi/.local/bin/tg", line 8, in <module>
    sys.exit(main())
  File "/home/pi/.local/lib/python3.9/site-packages/tg/__main__.py", line 60, in main
    tg = Tdlib(
  File "/home/pi/.local/lib/python3.9/site-packages/telegram/client.py", line 136, in __init__
    self._tdjson = TDJson(library_path=library_path, verbosity=tdlib_verbosity)
  File "/home/pi/.local/lib/python3.9/site-packages/telegram/tdjson.py", line 27, in __init__
    self._build_client(library_path, verbosity)
  File "/home/pi/.local/lib/python3.9/site-packages/telegram/tdjson.py", line 34, in _build_client
    self._tdjson = CDLL(library_path)
  File "/usr/lib/python3.9/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /home/pi/.local/lib/python3.9/site-packages/telegram/lib/linux/libtdjson.so: wrong ELF class: ELFCLASS64
find: ‘/home/pi/.cache/tg/files’: No such file or directory
xezo360hye commented 1 year ago

Yeah, I'm having the same problem, at least on my x86 (32-bit) laptop