[Fixed]-Using bundle_files = 1 with py2exe is not working


this post talks all about using py2exe to get a single exe file.

py2exe – generate single executable file

If you post some code i’ll take a look, and your error message will help to.



Maybe you can try pyinstaller instead.

I did have this problem before and didn’t find a solution ever, but pyinstaller meets my need too and works perfectly.


I also faced similar problem. But mine is with PyGTK. Simple program has no problem with it. Although there is no straight solution, there is an explanation provided here.

It says:

This is based on the Inno sample code in the py2exe distribution. It has worked successfully for a rather complicated PyGTK/Twisted app requiring extra data at runtime (GTK runtime data, GtkBuilder files, images, text data) that just wouldn’t work with bundle_files.



Here’s The solution:

from distutils.core import setup
import py2exe, sys, os


    options = {'py2exe': {'bundle_files': 3}},
    windows = [{'script': "Your_App_Name.py"}],
    zipfile = None,

Leave a comment