Skip to content

5.5 release contains 5.0 dynamic libs #50

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

Open
mlow opened this issue Apr 10, 2025 · 2 comments
Open

5.5 release contains 5.0 dynamic libs #50

mlow opened this issue Apr 10, 2025 · 2 comments

Comments

@mlow
Copy link

mlow commented Apr 10, 2025

$ source venv/bin/activate
$ pip install raylib-py==5.5.0
$ python3 -c 'import raylibpy' 
Library loading info:
        platform: linux
        bitness: 64bit
        current working dir: /src/game
        .raylib used: no
        .raylib status: INFO: .raylib file not available
        absolute path: /src/game/venv/lib/python3.13/site-packages/raylibpy/bin/64bit/libraylib.so.5.5.0
        is extension: no
        path exists: no
        path leads to a file: no

Traceback (most recent call last):
  File "/src/game/main.py", line 5, in <module>
    import raylibpy as rl
  File "/src/game/venv/lib/python3.13/site-packages/raylibpy/__init__.py", line 1898, in <module>
    rlapi = _load_library('raylib', False, ['{}/bin'], win32='raylib.dll', linux='libraylib.so.5.5.0', darwin='libraylib.5.5.0.dylib')
  File "/src/game/venv/lib/python3.13/site-packages/raylibpy/__init__.py", line 1887, in _load_library
    lib_ = CDLL(_lib_fname_abspath)
  File "/usr/lib/python3.13/ctypes/__init__.py", line 390, in __init__
    self._handle = _dlopen(self._name, mode)
                   ~~~~~~~^^^^^^^^^^^^^^^^^^
OSError: /src/game/venv/lib/python3.13/site-packages/raylibpy/bin/64bit/libraylib.so.5.5.0: cannot open shared object file: No such file or directory
$ ls venv/lib/python3.13/site-packages/raylibpy/bin/64bit/
libraylib.5.0.0.dylib  libraylib.so.5.0.0  raylib.dll  testlib.dll

I can get around this by placing the expected .so file into the /src/game/venv/lib/python3.13/site-packages/raylibpy/bin/64bit/ directory.

@jwannamaker
Copy link

I'm getting this issue, although I'm not entirely sure what you mean by "placing the expected .so file into the expected directory".

@mlow
Copy link
Author

mlow commented May 15, 2025

@jwannamaker In the case above, it's looking for /src/game/venv/lib/python3.13/site-packages/raylibpy/bin/64bit/libraylib.so.5.5.0. So I downloaded raylib 5.5, and extracted its libraylib.so.5.5.0 to that location

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

2 participants