Seite 1 von 1

just help me...plz

Verfasst: Samstag 12. Oktober 2013, 09:31
von fox12345
I write very simple python script and it is working well. I am using python 2.7.5 (32bit) as well as I Compile it with "py2exe" and "cx_freeze" . after that it is working in my Windows 8 PC(64bit). The windows 8 PC is have the all software (python and other compiling tools) But problem is My simple EXE file is not working at windows XP (32bit) . It is give me to error massage. The error massage is " This application has failed to start because the application cofiguration is incorrect. Reinstalling the application may fix this problem. "

My compiling script :

Py2exe

Code: Alles auswählen

from distutils.core import setup
import py2exe

setup(console=['5.py'])
cx_freeze

Code: Alles auswählen

import sys
from cx_Freeze import setup, Executable

# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {"packages": ["os"], "excludes": ["tkinter"]}

# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == "win32":
    base = "Win32GUI"

setup(  name = "guifoo",
        version = "0.1",
        description = "My GUI application!",
        options = {"build_exe": build_exe_options},
        executables = [Executable("5.py", base=base)])
So what is the wrong?
any one help me....... :?:

Re: just help me...plz

Verfasst: Samstag 12. Oktober 2013, 09:36
von fox12345
My python Program is

Code: Alles auswählen

import sys
import os
os.system('start cmd')


This is very basic. as well as other all compiles EXE are not working at my windows XP (32bit)

Re: just help me...plz

Verfasst: Sonntag 13. Oktober 2013, 07:02
von webspider
Somehow I've got the impression you should be using C# instead of Python.

Re: just help me...plz

Verfasst: Sonntag 13. Oktober 2013, 09:19
von BlackJack
Maybe giving the executable module an invalid module name isn't a good idea‽ Just a stab in the dark…