Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Kreijstal opened this issue May 19, 2023 · 1 comment
Open

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

Kreijstal opened this issue May 19, 2023 · 1 comment

Comments

@Kreijstal
Copy link

Kreijstal commented May 19, 2023

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@Kreijstal @xezo360hye and others