are you sure your py2exe version perfectly matches your python version?

"set" was just included at 2.3; and put into core at 2.4; so... if you have 2.2, it will not work.


On 4/18/06, Fabrizio Lippolis <Fabrizio.Lippolis@aurigainformatica.it> wrote:
I have just installed py2exe and wanted to try it with a simple program.
I wrote this:


print 2+2

Then I wanted to compile this program into an exe file, so following the
instructions of the web site i wrote:


from distutils.core import setup
import py2exe


Both files are in the same directory. From the command line I executed

C:\python>python setup2plus2.py py2exe
Traceback (most recent call last):
   File " setup2plus2.py", line 2, in ?
     import py2exe
   File "C:\Programmi\Python24\Lib\site-packages\py2exe\__init__.py",
line 67, in
     import distutils.dist, distutils.core, distutils.command ,
build_exe, sys
   File "C:\Programmi\Python24\Lib\site-packages\py2exe\build_exe.py",
line 16, i
n ?
     import sets
ImportError: No module named sets

What's wrong? Thanks in advance.

Fabrizio Lippolis
Auriga Informatica s.r.l.
Via Don Guanella 15/B - 70124 Bari
Tel.: 080/5025414  Fax: 080/5027448

This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
Py2exe-users mailing list

GHUM Harald Massa
persuadere et programmare
Harald Armin Massa
Reinsburgstra├če 202b
70197 Stuttgart
PostgreSQL - supported by a community that does not put you on hold