V
V
Vladislav2014-05-19 07:20:25
Python
Vladislav, 2014-05-19 07:20:25

Why doesn't the exe file work?

using cx_Freeze from the release_1.pyw file created an exe file.
When you try to run it, the console appears for a fraction of a second and disappears.
What to do?
here is the startup file:
setup.py

import sys     
from cx_Freeze import setup, Executable   
  
base = None   
if sys.platform == "win32":   
     base = "Win32GUI"   

setup(   
     name = "Replays Downloader",   
     version = "0.1",   
     description = "Replays Downloader",   
     options = {"build_exe" : {"packages": ["os"],"includes" : ["tkinter",'re','sre_compile','sre_constants','sre_parse','bs4','urllib'] }},   
     executables = [Executable("<path_name>\relise_1.pyw")])

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladislav, 2014-05-21
@Hateman31

karoch, installed py2exe 0.9.2.0 . Turned off antivirus. And it came together just fine!

G
GavriKos, 2014-05-19
@GavriKos

Run directly from the console and see the output of the file. Maybe the file is not waiting for input and the console closes immediately.

V
Vitaly, 2015-01-26
@vitosua

executables = {Executable("\release_1.pyw")}
there should be a dictionary as far as I know, and probably need to be replaced with your path to the executable file
Ps I have a more interesting question how to add a manifest to the assembly?
and how to create this manifest correctly?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question