Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » py2exe help
- davidkt
-
1000+ posts
py2exe help
py2exe has always worked for me before. Until now.
I just got py2exe and am trying to compile my python file to a .exe. But, for some reason it's giving me the weirdest error ever:
I never imported “G” anywhere. Here's the full error:
setup.py:
and the first few lines of Graffiti.py:
I tried DuckDuckGo-ing this error, but it turns out no one's experienced this error before. Could someone please help me? My browser / operating system: Windows 8, Opera 16, Flash 11.8 (release 800)
TIA.
I just got py2exe and am trying to compile my python file to a .exe. But, for some reason it's giving me the weirdest error ever:
error: G: no such file or directory
I never imported “G” anywhere. Here's the full error:
F:\FOLDER01\python\Graffiti>c:/python27/python setup.py py2exe
running py2exe
*** searching for required modules ***
error: G: No such file or directory
from distutils.core import setup import py2exe setup(console="Graffiti.py")
import pygame, sys, random from pygame.color import THECOLORS pygame.init() #...
I tried DuckDuckGo-ing this error, but it turns out no one's experienced this error before. Could someone please help me? My browser / operating system: Windows 8, Opera 16, Flash 11.8 (release 800)
TIA.
- Magnie
-
100+ posts
py2exe help
In setup(), console needs a list. So try replacing it with setup(console
.

- davidkt
-
1000+ posts
py2exe help
OHMYGOSHTHANKYOUTHANKYOUTHANKYOUSOMUCH In setup(), console needs a list. So try replacing it with setup(console=['Graffiti.py']).
It works now.

Just by coincidence, I'm right in the middle of writing an essay about myself and the line I just typed was: “…and a lot of people have helped me with things before. ” Then I decide to check my messages…
Thank you so much. Now I can open up my new screensaver shop!
Edit: Happy Thanksgiving!
Last edited by davidkt (Oct. 14, 2013 14:56:56)
- Discussion Forums
- » Advanced Topics
-
» py2exe help