py2exe

Is it possible to build exe on Vista and deploy on XP using py2exe

一曲冷凌霜 提交于 2019-12-09 16:39:24
问题 I have created some program using python on Windows Vista. But I want to deploy it on Windows XP. Is it necessary to make new build on windows XP? Or there is possibility to make build that will work on both of these systems? EDIT (EDIT 2 - very simple program does not work also): My setup: from distutils.core import setup import py2exe setup(console=['orderer.py']) Using dependency explorer i checked that dependencies are: msvcr90.dll kernel32.dll +ntdll.dll Almost solved: I figured out that

Script with scipy using py2exe

不羁岁月 提交于 2019-12-09 12:33:44
问题 I have ran into this during exporting my script (which uses numpy and scipy libraries) via py2exe : Traceback (most recent call last): File "imPok.py", line 3, in <module> File "scipy\misc\__init__.pyc", line 49, in <module> File "scipy\special\__init__.pyc", line 603, in <module> File "scipy\special\basic.pyc", line 18, in <module> File "scipy\special\orthogonal.pyc", line 101, in <module> File "scipy\linalg\__init__.pyc", line 188, in <module> File "scipy\linalg\_decomp_update.pyc", line 12

Pygame2Exe Errors that I can't fix

本小妞迷上赌 提交于 2019-12-09 12:24:29
问题 I made a "Game". I love playing it, and I would like to distribute it to my friends without having to install Python and Pygame on their computers. I did a lot of research on Py2Exe and Pyinstaller. I looked through many tutorials, fixes, errors, but none of them seem to help me. Pyinstaller is useless because it doesn't like fonts in Pygame, and Py2exe wouldn't compile the built in modules, so I found Pygame2exe which is just a premade setup script for use with py2exe that includes pygame

Bundling PyQwt with py2exe

做~自己de王妃 提交于 2019-12-09 08:00:58
问题 I have a standard setup script for py2exe with which I bundle PyQt-based applications into Windows .exe files. Today I tried a simple script that uses the PyQwt module, and it doesn't seem to work. py2exe runs alright, but when I execute the .exe it creates, it dumps the following into a log file and doesn't run: Traceback (most recent call last): File "qwt_test.pyw", line 5, in <module> File "zipextimporter.pyo", line 82, in load_module File "PyQt4\Qwt5\__init__.pyo", line 32, in <module>

OMP warning when numpy 1.9.2+MKL is packaged with py2exe

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-09 04:42:25
I get the following warning when i package my python application using py2exe to a single exe OMP: Warning #178: Function GetModuleHandleEx failed: OMP: System error #126: The specified module could not be found. is there a way to hide the warning or to fix the issue. A similar issue was posted with numpy 1.8.0 where the issue was resolved using numpy 1.8.1rc1. I am already using the latest version of numpy. Platform Info Windows 7 WinPython-32bit-2.7.9.5 otterb if you got numpy from python(x,y), then try the numpy official one from sourceforge. I had a similar issue previously with py2exe and

Can Microsoft Visual C++ 2008 Redistributable Package be freely redistributed

断了今生、忘了曾经 提交于 2019-12-09 03:16:50
问题 I am planning to use py2exe to make an application developped with Python 2.6. It seems that my app need the VC redistribuables : http://www.py2exe.org/index.cgi/Tutorial#Step5 I've read this tutorial and the redistribuables license agreement and I am not sure if I can freely redistribute these files with my program. (I don't have VS2008 license) Can I bundle the redistribs into an installer and make the installation transparent for the user or do they have to download the files by their own

Error importing NumPy when executing an executable created with Py2exe

余生颓废 提交于 2019-12-08 10:44:11
问题 I realized my first executable with Py2exe on Windows. The script uses libraries: import os import pandas as pd import numpy as np from pandas import ExcelWriter import datetime as dt My setup file is: from cx_Freeze import setup, Executable import os import sys os.environ['TCL_LIBRARY'] = r'C:\Program Files\Continuum\Anaconda3\tcl\tcl8.6' os.environ['TK_LIBRARY'] = r'C:\Program Files\Continuum\Anaconda3\tcl\tk8.6' base = None if sys.platform == "win32": base = "Win32GUI" setup(name = "my

py2exe with matplotlib, numpy and pylab

穿精又带淫゛_ 提交于 2019-12-08 10:03:25
问题 I'm trying to generate an executable. the packages I am using are import sys import matplotlib.pyplot as plt from pylab import * from numpy import * the setup.py is the following from distutils.core import setup import py2exe import matplotlib setup(console=['<python file>'],data_files=matplotlib.get_py2exe_datafiles(),) but I get an error related to pyplot.pyc Import Error: no module named backend_tkagg any way around to fix it? 回答1: You should include the matplotlib module explicitly. If

OMP warning when numpy 1.9.2+MKL is packaged with py2exe

北城以北 提交于 2019-12-08 08:32:10
问题 I get the following warning when i package my python application using py2exe to a single exe OMP: Warning #178: Function GetModuleHandleEx failed: OMP: System error #126: The specified module could not be found. is there a way to hide the warning or to fix the issue. A similar issue was posted with numpy 1.8.0 where the issue was resolved using numpy 1.8.1rc1. I am already using the latest version of numpy. Platform Info Windows 7 WinPython-32bit-2.7.9.5 回答1: if you got numpy from python(x,y

Python: PyQt4 Py2exe

落花浮王杯 提交于 2019-12-08 06:56:38
问题 Greetings! So I've made a Python application that uses the ever so great PyQt as it's interface. Now if I was to specify the --bundle 0 option for Py2Exe the resulting compiled executable file works fine! But with all the needed files, the folder gets cluttered up. So I tried passing 1 and 2 for the --bundle option. One packs everything into file file whilst the other packs everything except the Python dll. However both of those options results in the executable file exiting upon execution.