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.

4th Nov 2019, 6:48 PM
Code Babylon
Code Babylon - avatar
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
4th Nov 2019, 6:50 PM
Asman-H
Asman-H - avatar
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
4th Nov 2019, 7:01 PM
Code Babylon
Code Babylon - avatar
0
Asman-H You might be talking about pygame_sdl2.
4th Nov 2019, 7:21 PM
Seb TheS
Seb TheS - avatar
0
Seb TheS pygame_sdl2 won't import
4th Nov 2019, 8:23 PM
Code Babylon
Code Babylon - avatar
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.
4th Nov 2019, 8:41 PM
Seb TheS
Seb TheS - avatar
0
Seb TheS It's pygame (WIndows) for me, and the .init won't work
4th Nov 2019, 8:54 PM
Code Babylon
Code Babylon - avatar