0

I need some help with making an executable out of a Python script. I have tried cx_freeze but get No module named re and I cant use py2exe because I am using Python 3.3.2.

The code of my setup.py file for cx_freeze:

import sys
from cx_Freeze import setup, Executable

setup(
    name = "10SecondDestruction" ,
    version = "1.0" ,
    description = "10SecondDestruction" ,
    executables = [Executable("10 Second Destruction.py")] ,
    )
tshepang
  • 11,360
  • 21
  • 88
  • 132
  • 4
    Can you be a little more specific? What do you expect, and what's your error? – aIKid Oct 04 '13 at 23:13
  • The `re` module exists in Python 3.3.3. Please show exactly what you did and a listing of the whole traceback. – martineau Oct 05 '13 at 00:46
  • The error I got was Import Error: no module named re what I did was I made a setup.py file looking like this `code` import sys from cx_Freeze import setup, Executable setup( name = "10SecondDestruction" , version = "1.0" , description = "10SecondDestruction" , executables = [Executable("10 Second Destruction.py")] , ) that was in my python33 folder with the 10SecondDestruction.py file. I went into my cmd and built the setup.py file which gave me a build folder inside was a exe I ran the exe and a command prompt flashed saying Import Error no module named re – Integershift Oct 06 '13 at 21:40
  • I believe there may already be posts on the subject of pygame and py2exe creation, I've seen one or two. – trevorKirkby Nov 23 '13 at 05:02

0 Answers0