0
Pygame has no 'init' member error
Any time I run pygame.init() in VS Code, I always get the error "Module 'pygame' has no 'init' member pylint(no-member)". Anyone know how to fix this? My research so far has proven fruitless.
6 odpowiedzi
0
If you are on telephone, try importing not pygame, but pygame_sdl12 or something like this. This worked for me on Pydroid3, emulator for Python on android
0
Asman-H
What do you mean by "on telephone"? Also, speaking of pygame_sdl12, how do you use the music function? I can't seem to get it to work on Pydroid3
0
Asman-H You might be talking about pygame_sdl2.
0
Seb TheS
pygame_sdl2 won't import
0
Code Babylon depends on platform and how it is installed, on Linux devices (Android), pygame sdl might be used, but like on my PC (Windows 10) pygame works well like it is.
0
Seb TheS
It's pygame (WIndows) for me, and the .init won't work