Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 98994

Error: Module 'pygame' has no 'init' member

$
0
0

I'm using VS Code and when I use pygame.init() this error appears:

Module 'pygame' has no 'init' member

I tried to add --extension-pkg-whitelist=pygame to python.linting.pylintArgs in the settings and the error stopped, but then almost all of my code turns blue and says those errors:

Constant name "grid1" doesn't conform to UPPER_CASE naming stylepylint(invalid-name)

Edit: So this is a linter warning, I would like to remove but when I tried using the method above, everything gets a blue line under it.

My OS is Windows 10 and I'm using the latest python version and latest pygame version.


Viewing all articles
Browse latest Browse all 98994

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>