py2exe

Python - Py2exe can't build .exe using the 'email' module

扶醉桌前 提交于 2019-12-21 04:29:28
问题 py2exe does not work with the standard email module Hello. I am trying to use py2exe for converting a script into an exe. The build process shows this: The following modules appear to be missing ['email.Encoders', 'email.Generator', 'email.Iterators', 'email.MIMEBase', 'email.MIMEMultipart', 'email.MIMEText', 'email.Utils', 'email.base64MIME'] The executable does not work. The referenced modules are not included. I researched this on the Internet and I found out that py2exe has a problem with

Embedding icon in .exe with py2exe, visible in Vista?

老子叫甜甜 提交于 2019-12-20 08:39:17
问题 I've been trying to embed an icon (.ico) into my "compyled" .exe with py2exe. Py2Exe does have a way to embed an icon: windows=[{ 'script':'MyScript.py', 'icon_resources':[(1,'MyIcon.ico')] }] And that's what I am using. The icon shows up fine on Windows XP or lower, but doesn't show at all on Vista. I suppose this is because of the new Vista icon format, which can be in PNG format, up to 256x256 pixels. So, how can I get py2exe to embed them into my executable, without breaking the icons on

Python: Compiling Script Safely?

纵然是瞬间 提交于 2019-12-20 07:37:14
问题 Greetings! So contrary to my last question I think I was pursuing the wrong method. Basically I need to be able to compile a Python script without fear of any common leecher to obtain my source code and begin usage of it themselves. Now I know Python is a open source language not meant for being protected but there must be a way? For example Py2Exe asks you to leave your source code in a plain text file for it then to be compiled. Which is exactly not what I'm wanting. The whole reason for

py2exe data_files

跟風遠走 提交于 2019-12-20 06:37:21
问题 I am trying to build an executable for my python program like so: from distutils.core import setup import py2exe, sys, os import matplotlib import numpy from glob import glob sys.argv.append('py2exe') datafiles = [('files', glob(r'C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\*.*'))] setup(windows=['main.py'], data_files= datafiles, options={"py2exe": {"includes": ["matplotlib"]}}) This works, however, I need to include these matplotlibfiles obtained by this

Parachute Segmentation Fault Error - pygame to py2exe

可紊 提交于 2019-12-20 06:19:48
问题 I am using GUI2Exe to compile my python/pygame, game to a .exe I have a problem with the font module. using python 2.7 and the py2exe option in GUI2Exe I have updated python, pygame and py2exe with the 2.7 versions. My program runs fine but after I compile it with py2exe I get this. Here is the error I get: Fatal Python error: (pygame parachute) Segmentation Fault This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for

'modules appear to be missing' - py2exe

心已入冬 提交于 2019-12-20 05:14:08
问题 I am using py2exe-0.6.9.win32-py2.7.exe and converted a .py file to .exe. The problem is that it won't open as it says something like 'unable to import Frame' when I try to open the .exe file. 'Frame' is another .py file which I wrote some code in. Also, when I open another .exe(converted from .py) file which does not import some .py file which I made, then it opens without any problem. Here is my setup.py file. from distutils.core import setup import py2exe from glob import glob import sys

Pyinstaller generated exe doesn't run with Windows Task Scheduler

99封情书 提交于 2019-12-20 04:38:18
问题 I generated an exe from Pyinstaller, this works perfectly when I double click it but when I try to run it via Task scheduler it never runs but in the history it shows "The operation completed successfully". To be sure if it ran, I'm logging some text into a log file when the exe runs which never happens via Task scheduler. Below is the simple snippet of my Python program. import os import threading import sys import time from datetime import datetime from dateutil import tz #Auto-detect zones

3rd Party Libraries and Py2exe

别来无恙 提交于 2019-12-20 03:53:17
问题 How would I go about bundling, say, Beautiful soup into an exe along with my code using py2exe? The code I am using for my setup.py right now is from distutils.core import setup import py2exe # equivalent command line with options is: # python setup.py py2exe --compressed --bundle-files=2 --dist-dir="my/dist/dir" --dll-excludes="w9xpopen.exe" options = {'py2exe': { 'compressed':1, 'bundle_files': 1, 'dist_dir': "exe/dist/dir" 'dll_excludes' }} setup(console=[''], options=options,zipfile =

Python 3.5 + PyQt5 to standalone exe

佐手、 提交于 2019-12-20 03:40:27
问题 I'm new to coding and I need to transform my py file to an exe. I tried py2exe and it didn't work with python 3.5. Then I tried pyinstaller and it worked, but when I added PyQt5 to the program, pyinstaller also failed. I tried nuitka, and it builds the exe, but when I click on the exe file it shows a console for a few seconds and closes. I need an exe which shows a gui after being activated. Here are the modules that I used in the program: import P4 import time from datetime import datetime

ImportError: cannot import name chardet

谁说我不能喝 提交于 2019-12-20 03:17:02
问题 Hi i have written a python scrapper in which i am importing requests and Beautiful soup module . I am using python2.7 . I am crating Windows executable (.exe) from my Python script using py2exe module. For that i have created setup.py as following : from distutils.core import setup import py2exe import requests packages = [ 'requests', 'requests.packages', 'requests.packages.chardet', 'requests.packages.urllib3', 'requests.packages.urllib3.packages', 'requests.packages.urllib3.contrib',