py2exe

raw_input causing EOFError after creating exe with py2exe

大憨熊 提交于 2019-11-30 20:25:57
After creating an exe from a script with py2exe raw_input() is causing an EOFError. How can I avoid this? File "test.py", line 143, in main raw_input("\nPress ENTER to continue ") EOFError: EOF when reading a line >>> help(raw_input) Help on built-in function raw_input in module __builtin__: raw_input(...) raw_input([prompt]) -> string Read a string from standard input. The trailing newline is stripped. If the user hits EOF (Unix: Ctl-D, Windows: Ctl-Z+Return), raise EOFError. On Unix, GNU readline is used if enabled. The prompt string, if given, is printed without a trailing newline before

How do I debug a py2exe 'application failed to initialize properly' error?

怎甘沉沦 提交于 2019-11-30 20:08:48
I'm very new to Python in general, but I made an app in Python 2.6 / wxPython 2.8 that works perfectly when I run it through Python. But I wanted to go a step further and be able to deploy it as a Windows executable, so I've been trying out py2exe. But I haven't been able to get it to work. It would always compile an exe, but when I actually try to run that it barks some cryptic error message. At first they were simple messages saying it couldn't find certain DLLs, but even after giving it all the DLLs it wanted, it now returns this: The application failed to initialize properly (0xc0000142).

Python 3 project into exe?

懵懂的女人 提交于 2019-11-30 15:04:38
问题 I've made my first Python program, using Python 3.2. Now I'm trying to figure out how to make it an executable. I pretty much only need it for Windows only. I've searched as much as possible and found out that py2exe doesn't support Python 3. cxfreeze does, but I can't figure out how to make a single executable of my program with it. I need it as a portable one-file exe. Please bear with me as I am a total newcomer :) Any help is appreciated. 回答1: You can use cxfreeze to make the executable

Creating single EXE using py2exe for a Tkinter program

北慕城南 提交于 2019-11-30 14:48:42
问题 I'm trying to use minty's solution provided on this link to generate a single exe file for my Tkinter based program: py2exe - generate single executable file Here's what I wrote in the setup.py: from distutils.core import setup import py2exe, sys, os sys.argv.append('py2exe') setup(windows=[{'script': 'filename.py'}], \ options={"py2exe": {"includes": ["decimal", "Tkinter", \ "tkFileDialog", "csv", "xml.dom.minidom", "os"], \ 'bundle_files': 1, 'compressed': False}}, \ zipfile = None) It

No module named builtins

淺唱寂寞╮ 提交于 2019-11-30 14:37:46
问题 I'm trying to convert my .py script into an executable using py2exe. I've had a number of issues so far that have been largely addressed by the "options" in the setup file below. But now I have a problem that I have not been able to find a solution for, and wondering if others have had this same issue and fixed it. When I execute the setup file below using "python setup.py py2exe" it gives me an executable but when I run it, it complains "No module named builtins". The only other post I could

Create Python EXE without MSVCP90.dll

自闭症网瘾萝莉.ら 提交于 2019-11-30 13:39:27
I'm trying to use Py2Exe to take a python program (using wxPython) to a Windows exe but there is an error regarding MSVCP90.dll . After reading py2exe fails to generate an executable on StackOverflow, it says I need to download this file. However, it also says all target users must download this file. This will be a huge inconvenience for my users (mostly corporate clients who will not know how to download the file), so is there a way to package the with the program? Thanks! What is MSVCP90.dll MSVCP90.dll is Multithreaded, dynamic Visual Studio 2008 C Runtime Library. Generally your

How to convert python .py file into an executable file for use cross platform?

五迷三道 提交于 2019-11-30 12:07:41
问题 I've been searching through SO for a while now trying to come up with an answer to this but due to my inexperience with programming I don't understand much of the documentation, nor am I confident enough to experiment too much. Would anyone be able to describe in slightly simpler terms how I would use programs like Py2exe, PyInstaller, cx_freeze etc.? I just want a way for others (mainly friends) to be able to run my (simple, text only) program without having to download python themselves. If

Creating single EXE using py2exe for a Tkinter program

时光怂恿深爱的人放手 提交于 2019-11-30 11:18:41
I'm trying to use minty's solution provided on this link to generate a single exe file for my Tkinter based program: py2exe - generate single executable file Here's what I wrote in the setup.py: from distutils.core import setup import py2exe, sys, os sys.argv.append('py2exe') setup(windows=[{'script': 'filename.py'}], \ options={"py2exe": {"includes": ["decimal", "Tkinter", \ "tkFileDialog", "csv", "xml.dom.minidom", "os"], \ 'bundle_files': 1, 'compressed': False}}, \ zipfile = None) It creates a 'tcl' folder for Tkinter stuff even though I have specified bundle_files = 1. Plus it also

Python 3.0.1 Executable Creator

笑着哭i 提交于 2019-11-30 09:59:57
Does anyone know if there's a windows Python executable creator program available now that supports Python 3.0.1? It seems that py2exe and pyInstaller, along with all the rest I've found, still aren't anywhere close to supporting 3.0 or 3.0.1. Any help is greatly appreciated. Edit: I guess I could downgrade the program to an older version of Python to make it work with py2exe. The hardest part will probably be using an older version of Tkinter. Has anyone had luck with using py2exe or pyInstaller (or another windows-friendly program) to create an executable that uses Tkinter as well as

getting error when converting a pyscript to exe using Py2Exe

一笑奈何 提交于 2019-11-30 09:51:26
问题 I am new to this py2exe, I have my script in cmd.py import sys for arg in sys.argv: print arg print "Hello World!" setup.py, from distutils.core import setup import py2exe setup(console=['cmd.py']) having both the files in same directory, I ran, python setup.py py2exe and getting the below error, G:\PyScripts>python setup.py py2exe running py2exe Traceback (most recent call last): File "setup.py", line 3, in <module> setup(console=['cmd.py']) File "C:\ProgramData\Anaconda3\lib\distutils\core