py2exe

py2exe the following modules appear to be missing

☆樱花仙子☆ 提交于 2019-12-05 05:43:10
As the title says, when I'm trying to use py2exe to create a Windows executable file, I get this error: The following modules appear to be missing ['Carbon', 'Carbon.Files', 'ElementC14N', 'OpenSSL.SSL', '_frozen_importlib', '_imp', '_scproxy', '_sysconfigdata', 'backports.ssl_match_hostname', 'builtins', 'certifi', 'charade.universaldetector', 'configparser', 'datrie', 'genshi.core', 'html', 'html.entities', 'html.parser', 'http', 'http.client', 'http.cookies', 'http.server', 'importlib.machinery', 'importlib.util', 'ipaddr', 'ipaddress', 'java', 'lzma', 'ndg.httpsclient.ssl_peer_verification

py2exe with multiprocessing fails to run the processes

北城以北 提交于 2019-12-05 04:33:27
I am using Python 2.6 over windows 7 and I am trying to use multiprocess: p = Process(target=f, args=(SOME_ARGS)) p.start() p.join() while I run the code from CMD (using the interpreter) everything works fine, but after I create an exe file with py2exe, the execution of the process fails with the following error: error: no such option: --multiprocessing-fork all the solutions I found did not help. any ideas? You know you are using a app of year 2008? (py2exe), python is in constant actualizations, and then gives problems with py2exe, I can give you a better solution... You can use cxfreeze:

ImportError: No module named cycler

喜夏-厌秋 提交于 2019-12-05 03:43:25
I am using wxpython and matplotlib to develop a software,when I complete my work, I want to convert the python files to "*.exe" file by py2exe,so it can be used in Windows.Here is the "setup.py" file. from distutils.core import setup import py2exe import sys includes = ["encodings", "encodings.*"] sys.argv.append("py2exe") options = {"py2exe": { "bundle_files": 1 ,"dll_excludes":["MSVCP90.dll"]}} setup(options = options, zipfile=None, console = [{"script":'test.py'}]) Then I executed this script by python setup.py to generate test.exe ,and it worked. When I executed test.exe there post an

Python Popen hanging with psexec - undesired results

时光毁灭记忆、已成空白 提交于 2019-12-05 03:31:25
问题 I'm having an issue with subprocess.Popen and what I believe to be pipes. I have the following block of code which works without issue 100% of the time when running from the cli: p = subprocess.Popen("psexec \\\\" + serverName.get() + " cmd /c \ ver & \ echo %USERDOMAIN% & \ dir /a C:\pagefile.sys | find \"pagefile.sys\" & \ dir C:\ | find \"bytes free\" & \ dir D:\ | find \"bytes free\" ", \ stdin=None, stdout=subprocess.PIPE, stderr=None) ### Assign the results from the Popen results = p

Window Icon of Exe in PyQt4

久未见 提交于 2019-12-05 03:06:50
I have a small program in PyQt4 and I want to compile the program into an Exe. I am using py2exe to do that. I can successfully set icon in the windows title bar using the following code, but when i compile it into exe the icon is lost and i see the default windows application. here is my program: import sys from PyQt4 import QtGui class Icon(QtGui.QWidget): def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.setGeometry(300, 300, 250, 150) self.setWindowTitle('Icon') self.setWindowIcon(QtGui.QIcon('c:/python26_/repy26/icons/iqor1.ico')) app = QtGui.QApplication(sys.argv

py2exe `ImportError: No module named backend_tkagg`

耗尽温柔 提交于 2019-12-05 02:21:53
I am trying to make a windows executable from a python script that uses matplotlib and it seems that I am getting a common error. File "run.py", line 29, in import matplotlib.pyplot as plt File "matplotlib\pyplot.pyc", line 95, in File "matplotlib\backends__init__.pyc", line 25, in pylab_setup ImportError: No module named backend_tkagg The problem is that I didn't found a solution while googling all over the internet. Here is my setup.py from distutils.core import setup import matplotlib import py2exe matplotlib.use('TkAgg') setup(data_files=matplotlib.get_py2exe_datafiles(),console=['run.py']

py2exe com dll problem

依然范特西╮ 提交于 2019-12-05 02:07:00
问题 i'm trying making a com dll in python. but i try register to compiled dll have a error message "run time error r6034" and "could not load python dll" what is the solution this problem ? mycode : setup.py: # This is the distutils script for creating a Python-based com dll # server using ctypes.com. This script should be run like this: # # % python setup.py py2exe # # After you run this (from this directory) you will find two directories here: # "build" and "dist". The .dll file in dist is what

使用Python编写免安装运行时、以Windows后台服务形式运行的WEB服务器

会有一股神秘感。 提交于 2019-12-05 01:59:32
环境构建 安装python2.7 安装Setup Tools 在https://pypi.python.org/pypi/setuptools获取安装脚本的链接http://peak.telecommunity.com/dist/ez_setup.py,下载并运行 使用Setup Tools自动下载安装webpy库 运行"C:\Python27\Scripts>easy_install.exe web.py" 手动下载安装pywin32库 http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/ 下载并安装py2exe 编写脚本 WebServer.py import web class WebServer(web.auto_application): def run(self, port, *middleware): func = self.wsgifunc(*middleware) return web.httpserver.runsimple(func, ('0.0.0.0', port)) app = WebServer() ##########################web services class hello(app.page): def GET(self): return

Icon overlay issue with Python

好久不见. 提交于 2019-12-04 22:55:14
问题 I found some examples and topics on this forum about the way to implement an icon overlay handler with Python 2.7 & the win32com package but it does not work for me and I don't understand why. I create the DLL and I have no error when I register it. I have also tried directly with the script but it's the same. It's like the class is never called. Here is the code: import win32traceutil from win32com.shell import shell, shellcon import pythoncom import winerror import os REG_PATH =r'Software

py2exe with enthought and pandas

不打扰是莪最后的温柔 提交于 2019-12-04 18:38:56
I am trying to make an executable with python, py2exe using Enthought . The program.py starts with: import pandas as pd import pyper as pr r=pr.R(use_pandas=True) The setup.py is as below: from distutils.core import setup import py2exe import matplotlib import sys opts={"py2exe":{"bundle_files"}} sys.argv.append('py2exe') opts = {'py2exe': {"bundle_files" : 3, "includes" : [ "matplotlib.backends", "matplotlib.backends.backend_qt4agg", "pylab","numpy", "matplotlib.backends.backend_tkagg"], 'excludes':['_gtkagg', '_tkagg', '_agg2', '_cairo', '_cocoaagg', '_fltkagg', '_gtk', '_gtkcairo'], 'dll