raylib-py icon indicating copy to clipboard operation
raylib-py copied to clipboard

Shared object bit count mismatch with python interpreter error.

Open CaiusTSM opened this issue 3 years ago • 1 comments

I get the following error when importing raylibpy:

import raylibpy
  File "/home/----/.local/lib/python3.8/site-packages/raylibpy/__init__.py", line 71, in <module>
    _rl = CDLL(os.path.join(RAYLIB_BIN_PATH, _lib_filename[_platform]))
  File "/usr/lib/python3.8/ctypes/__init__.py", line 373, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /home/----/.local/lib/python3.8/site-packages/raylibpy/libraylib.so.2.0.0: wrong ELF class: ELFCLASS32

I believe this is due to running 64bit python, but the shared object included in this project is 32bit. Could you also include a 64bit version that is dlopened instead when running 64bit python?

CaiusTSM avatar Jul 05 '20 23:07 CaiusTSM

I second this

Tau5 avatar Jul 07 '21 19:07 Tau5

Fixed in 4.2.0.post2

overdev avatar Dec 13 '22 16:12 overdev