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

Error when importing raylibpy

Open hunar1997 opened this issue 4 years ago • 5 comments

Hello, I really like raylib and it works without any problem in C Today i wanted to use it inside python, I didpip install raylib-py then opened a python terminal to import it import raylibpy and i got this error message Screenshot_20200515_165743 What does that error mean?

hunar1997 avatar May 15 '20 14:05 hunar1997

I'm getting a similar error: Traceback (most recent call last): File "", line 1, in File "C:\Users<my_name>\AppData\Local\Programs\Python\Python38\lib\site-packages\raylibpy_init_.py", line 56, in second_path = os.path.dirname(sys.modules['main'].file) AttributeError: module 'main' has no attribute 'file' How can I fix it?

KonPet avatar Jun 10 '20 19:06 KonPet

I also am having this issue. Windows 10, Python 3.8.

rodneylives avatar Sep 10 '20 06:09 rodneylives

Same as @SkilLP, Python 3.8.6 on Windows 10 2004

dtomvan avatar Oct 02 '20 15:10 dtomvan

Same, raspberry pi, python 3.7

evanthomas avatar Apr 18 '21 03:04 evanthomas

You can might be able to work around it by setting the RAYLIB_BIN_PATH environment variable to point to the where library is installed since there will be binaries there. Unfortunately, only intel binaries are available. Apparently, ARM is not worth supporting.

evanthomas avatar Apr 18 '21 03:04 evanthomas