Discuss Scratch

davidkt
Scratcher
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:
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
setup.py:
from distutils.core import setup
import py2exe
setup(console="Graffiti.py")
and the first few lines of 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.

davidkt
Scratcher
1000+ posts

py2exe help

Bump
Magnie
Scratcher
100+ posts

py2exe help

In setup(), console needs a list. So try replacing it with setup(console.
davidkt
Scratcher
1000+ posts

py2exe help

Magnie wrote:

In setup(), console needs a list. So try replacing it with setup(console=['Graffiti.py']).
OHMYGOSHTHANKYOUTHANKYOUTHANKYOUSOMUCH

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)

Powered by DjangoBB