py2exe

py2exe not including the modules from “includes”

时光毁灭记忆、已成空白 提交于 2019-12-24 04:32:27
问题 I am using the latest version of Anaconda Python (3.4) and latest version of py2exe (which is supposed to support Python 3.3 and 3.4) on Windows 7, 64-bit. Here is the py2exe script I am using: from distutils.core import setup import py2exe, sys, os sys.argv.append('py2exe') setup( options = { 'py2exe': { 'bundle_files': 2, 'optimize': 2, 'compressed': True, } }, windows = [{'script': "ImageSound GUI.py"}], data_files = [('images',['c:/Users/EvilDragon/Documents/GitHub/ImageSound/mario.png'])

py2exe not including the modules from “includes”

不打扰是莪最后的温柔 提交于 2019-12-24 04:32:07
问题 I am using the latest version of Anaconda Python (3.4) and latest version of py2exe (which is supposed to support Python 3.3 and 3.4) on Windows 7, 64-bit. Here is the py2exe script I am using: from distutils.core import setup import py2exe, sys, os sys.argv.append('py2exe') setup( options = { 'py2exe': { 'bundle_files': 2, 'optimize': 2, 'compressed': True, } }, windows = [{'script': "ImageSound GUI.py"}], data_files = [('images',['c:/Users/EvilDragon/Documents/GitHub/ImageSound/mario.png'])

How do i compile .py to a .exe?

╄→尐↘猪︶ㄣ 提交于 2019-12-24 00:49:19
问题 I am trying to compile my .py script into a .exe using py2exe using this code: from distutils.core import setup import py2exe, sys, os sys.argv.append('py2exe') setup( options = {'py2exe': {'optimize': 2}}, windows = [{'script': "get.py"}], zipfile = "shared.lib", ) I get this in my console: Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> ================================ RESTART ===========

Py2Exe, [Errno 2] No such file or directory: 'numpy-atlas.dll'

两盒软妹~` 提交于 2019-12-23 07:08:40
问题 I have included matplotlib in my program, I searched about numpy_atlas.dll on google and I seem to be the only one on Earth with this problem. setup.py from setuptools import setup import py2exe setup(console=['EulerMethod.py']) Running Py2Exe results in error C:\(..obmitted..)>python setup.py py2exe running py2exe *** searching for required modules *** *** parsing results *** ...... ...obmitted... ...... *** finding dlls needed *** error: [Errno 2] No such file or directory: 'numpy-atlas.dll

hiding highscore text file in exe using py2exe/pygame2exe

ぃ、小莉子 提交于 2019-12-23 05:08:14
问题 I have a highscore system in my game that I made in Pygame , it saves name and score in text files name.txt and score.txt but the problem is that anyone can edit that text files.So could i hide them in exe file. python version 2.7 setup script: pygame2exe And if it's possible could I do it without extra modules. UPDATE:I'll obviously need to encrypt text somehow.Can you suggest some simple encryption alghoritham? Note that I use numbers and newlines . I would still want to put file in exe.

Missing tkinter attributes after converting to py2exe executable

拜拜、爱过 提交于 2019-12-23 05:08:13
问题 I have a Python 3.3 script which uses tkinter and tkinter.filedialog . The latter is being used in this particular line of one of the classes: self.root_folder = os.path.realpath(tk.filedialog.askdirectory(**self.dir_opt)) The code runs well in IDLE. However, after being converted to a binary executable using py2exe , the program runs, but raises the following exception when trying to call the named line: Exception in Tkinter callback Traceback (most recent call last): File "C:\Python33\lib

PySide “hello world”: py2exe/pyinstaller/cx_freeze and access violation

允我心安 提交于 2019-12-23 03:53:07
问题 I am trying to build a very basic executable (Windows) using PySide. The following script runs properly in the interpreter (Python 2.7, PySide 1.1.2) #!/usr/bin/python import sys sys.stdout = open("my_stdout.log", "w") sys.stderr = open("my_stderr.log", "w") import PySide.QtGui from PySide.QtGui import QApplication from PySide.QtGui import QMessageBox # Create the application object app = QApplication(sys.argv) # Create a simple dialog box msgBox = QMessageBox() msgBox.setText("Hello World -

py2exe doesn't import the os module?

大兔子大兔子 提交于 2019-12-23 03:29:07
问题 So, basically, I'm trying to make my Python 2.7 script into an EXE. Here is my setup.py: from distutils.core import setup import py2exe import os setup( options = { "py2exe":{ "includes": ["os"] } }, name = "Anansi CalcPad", version = "0.35", description = "Anansi CalcPad is a three-tiered application that provides a journal, calculator, and news aggregator in one.", author = "Cody Dostal", author_email = "cody@seafiresoftware.org", url = "http://seafiresoftware.org/wordpress/anansi-calcpad/"

Convert Python Script to .exe that will work on all/most versions of Windows

China☆狼群 提交于 2019-12-23 02:53:30
问题 I am aware how to convert a Python script to an Windows Executable file(.exe) using Py2Exe, PyInstaller and etc. But is there a way to convert a Python script to an .exe that will work on all the following versions of Windows: Windows XP to Windows 8? Keep in mind my Python script is very simple and does NOT use any libraries like pyGTK or wxPython. Its just a simple console script that lists all files in a directory and writes it to a file. So if I were to compile the following script using

py2exe with scipy.sparse.sparsetools.csr

北城余情 提交于 2019-12-23 02:35:06
问题 I get the following error message using python v2.7.3 and scipy v0.11.0 with py2exe v0.6.9: ImportError: No module named _csr my setup.py: from distutils.core import setup import py2exe setup(console=['demo.py'], options = { "py2exe": {"includes":["scipy.sparse", "scipy.sparse.sparsetools.csr", "scipy.sparse.sparsetools._csr"]} }) The question in scipy with py2exe couldn't helped me out. 回答1: There are two reasons I can think of for why you might have gotten this error. _csr.pyd should