overdev / raylib-py

A Python binding for the great C library raylib.
Other
199 stars 18 forks source link

Error when open my export project #39

Closed ghost closed 1 year ago

ghost commented 2 years ago

I was finish my game and export it by pyinstaller, but when I run the file, it error:

Traceback (most recent call last): File "main.py", line 1, in File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", line 665, in _load_unlocked File "PyInstaller\loader\pyimod03_importers.py", line 546, in exec_module File "raylibpy__init__.py", line 68, in RuntimeError: Unable to find raylib library ('libraylib_shared.dll').

overdev commented 1 year ago

I'm not sure pyinstaller will atomatically recognize the dll importing when generating the exacutable. Maybe you need to add some extra tweaks. If it does not work, you could try Nuitka.