0

I wasn't able to find the link describing how to solve this.
When I try to compile my program with py2exe using python v2.6

at the end of the process I get a message saying
The following modules appear to be missing
['ICCProfile','_grabscreen','_imaging_gif']

my setup script is just :

from distutils.core import setup
import py2exe

setup(console=['123.py'])

Any help would be appreciated.

Edited by Dani: Formatting fixed

2
Contributors
1
Reply
3
Views
6 Years
Discussion Span
Last Post by snippsat
0

Try this,and use a simple script first where you not importing a lot of modules.
So you are sure that py2exe work

If you search this forum there are many post about how to use py2exe and cxfreeze.
You can also look into gui2exe that work fine.
http://code.google.com/p/gui2exe/
.

from distutils.core import setup
import py2exe
import sys

if len(sys.argv) == 1:
    sys.argv.append("py2exe")

setup( options = {"py2exe": {"compressed": 1, "optimize": 2, "ascii": 1, "bundle_files": 3}},
       zipfile = None,

       ##data_files = ['apple.jpg', 'cheese.jpg'],

       #Can use windows or console,replace my_file.py with py file you want to make exe off.
       #If not run in same folder give path /mydir/my_file.py
       windows = [{"script": 'my_file.py'}])

Edited by snippsat: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.