1

I can't make this .py .exe help me. i have python34 installed on windows 7 - 32 bits

This is a Snake.py simple game and i can't convert it using py2exe. i looked in google and stackoverflow and everywhere else but couldn't fix it. i get this error when trying to convert the script.

The error: http://pastebin.com/uRHpg1B8

And this is my game: http://pastebin.com/R6A89Nhe

TechPro
  • 13
  • 4

1 Answers1

1

Well, based on your error output, it looks like you are missing several packages which are important for pygame to function. Error output duplicated below, for future reference.

  8 missing Modules
  ------------------
? MacOS                               imported from pygame.macosx
? Numeric                             imported from pygame
? OpenGL                              imported from pygame
? Py25Queue                           imported from pygame.threads
? Queue                               imported from pygame.threads
? numpy                               imported from pygame, pygame._numpysndarra
y, pygame._numpysurfarray
? packaging                           imported from pkg_resources
? readline                            imported from cmd, code, pdb
jpaugh
  • 6,634
  • 4
  • 38
  • 90
  • How do i fix that please? – TechPro Jul 09 '15 at 05:30
  • Well, it's possible that the application uses the MacOS module to check whether its on a Mac, or something. – jpaugh Jul 09 '15 at 05:33
  • To clear up these errors though, the first thing you need to do is install these python packages. Numeric, OpenGL, and numpy are ones that I recognize. They're definitely useful for games. – jpaugh Jul 09 '15 at 05:34
  • I don't thik so, there is no code like that in my game! – TechPro Jul 09 '15 at 05:35
  • This issue is *not* with *your* code. It's because of code that you don't have, but that you need. Take out the `import pygame` line and other imports, and you will not get the same errors. (then, the problem *would* be in your code.) – jpaugh Jul 09 '15 at 05:37
  • Aaah ok i got it, now i'm always disabling some services in my computer, so the pip command is not working hahaha i have to restart my computer, but i'm really really lazy to wait lmao, does it make any sense to you? Thanks man i really appreciate your help, i will check for that and keep you updated! – TechPro Jul 09 '15 at 05:39
  • Lol. No problem. I wasn't very clear in my answer, I know. Mainly because I haven't used Python in a while... good luck! :-) – jpaugh Jul 09 '15 at 05:39
  • Hi man i got a problem, i installed numpy using .exe and for OpenGL i couldn't find .exe, i found .rar and after doing setup.py install i get errors... so i went to pip and did: pip install OpenGL – TechPro Jul 12 '15 at 05:13
  • I got this error Collecting OpenGL Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connec tion broken by 'ConnectTimeoutError(, 'Connection to pypi.python. org timed out. (connect timeout=15)')': /simple/opengl/ Even if i try to upgrade pip!!! – TechPro Jul 12 '15 at 05:14
  • It looks like several things are going on there. I recommend asking this as a separate question, possibly on [su]. – jpaugh Jul 13 '15 at 14:05