Python Forum
[PyGame] Apparently module has no attribute display?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Apparently module has no attribute display?
#20
(Dec-17-2017, 01:32 AM)Klar Wrote: Doing that makes it say that module has no attribute init()
This means
  • Your installation is messed up or
  • you named a file or directory "pygame" and it is trying to import that instead of the proper pygame.

If you didnt name anything "pygame" then there is something wrong with the installation (of pygame). If you uninstalled pygame and now you get a no module named pygame error, we can rule out the file/directory named pygame, as that would still load the wrongly named module you created even after uninstalling pygame. Unless for some reason you added a directory named "pygame" yourself in the python library?

How did you install pygame? State explicitly what you did, where you got it from (inlcude link here), any output or error you had while installing it, etc. Did you compile it yourself or did you install a wheel? Did you install it with pip? Either way show the command prompt output from either of them. How many python versions do you have on your computer? For all we know you are getting it from an odd source that has a directory named pygame in it loading it incorrectly.

We can only tell what is wrong by how much information you give...and the less you give, the more likely we are not going to diagnose it. When we tell you to run something and give us the info that is a way for us to help diagnose the problem. Like you never responded with the output of this. So basically at this point i cant help you as you are not running the code i am giving you to help diagnose your problem.
Recommended Tutorials:
Reply


Messages In This Thread
RE: Apparently module has no attribute display? - by metulburr - Dec-18-2017, 05:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Apparently module has no attribute display? Angelo26 1 2,023 Mar-11-2020, 07:14 PM
Last Post: nilamo
  [split] Apparently module has no attribute display? Kolterdyx 1 2,840 Sep-09-2018, 05:14 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020