py2exe

wxPython ObjectListView Capture Ctrl-C shortcut

不羁岁月 提交于 2019-12-13 04:47:52
问题 I am having difficulty with my program written in Python 2.7.5 using wxPython 2.9.5, ObjectListView 1.2, lxml 2.3, and SQLAlchemy 0.8.2 and compiled into an exe with py2exe. The problem I am running into is after compiling the program into an exe I am no longer able to use Ctrl-C to copy data from the ObjectListView and paste it into other programs such as Excel, Notepad, or even Notepad++. This happens regardless of how many rows are selected to be copy/pasted. The results I get when pasting

Win7 Taskbar Icon Incorrect for PySide py2exe App

主宰稳场 提交于 2019-12-13 03:24:44
问题 I have a PySide app that I'm converting to an exe to be run on Windows 7 without any dependencies using py2exe. Here's setup from setup.py setup(windows=[{ "script" : "src/main.py", "dest_base" : "xxx-setup-" + configuration.version, "icon_resources": [(1, "images/xxx_icon.ico")], "other_resources": [(24,1, manifest)] }], name='xxx', data_files=[('imageformats',[r'C:\Python27\Lib\site-packages\PySide\plugins\imageformats\qico4.dll'])], options={"py2exe" : { "includes" : ["simplejson", "sip",

Invalid command 'py2exe'

我怕爱的太早我们不能终老 提交于 2019-12-13 00:36:00
问题 I have python 2.5 and 2.6 installed. I'm running my project on 2.6. First I had py2exe for 2.5 installed but it didn't work so I installed py2exe for 2.6 and deleted the other version but then the module wasn't found. Now I changed the sys path: import sys sys.path.append('F:\Program Files\Python26\Lib\site-packages\py2exe') from build_exe import py2exe from distutils.core import setup setup( name =... When i type into the console: path\setup.py py2exe I get "error: invalid command 'py2exe'"

How do I package a Scrapy script into a standalone application?

雨燕双飞 提交于 2019-12-12 20:43:35
问题 I have a set of Scrapy spiders. They need to be run daily from a desktop application. What is the simplest way (from user's point of view) to install and run it on another windows machine? 回答1: The simplest way is write a script in python for them I guess... If you are running a Windows Server you can even schedule the comand that you use (scrapy crawl yoursprider) to run the spiders. 回答2: Create a script (e.g. run_spider.py ) which runs scrapy crawl <spider_name> as a system command. run

Import error when building python using py2exe

落爺英雄遲暮 提交于 2019-12-12 16:24:27
问题 I am trying to make a small script to remotely manage windows computers (currently only shutdown). The method I am using involves a webapp2 server. i would like to compile my first attempt into a .exe. The problem I am having is that after successfully compiling it I go to run it and it returns the error: Traceback (most recent call last): File "web2.py", line 2, in <module> File "webapp2.pyc", line 25, in <module> File "webob\__init__.pyc", line 1, in <module> File "webob\datetime_utils.pyc"

Pygame Distribution - Runtime Error

岁酱吖の 提交于 2019-12-12 15:11:38
问题 I am working on a problem with my 2D arcade game programed with Python using the module pygame for 2 days now and I can't find a solution. The problem is: I want to create a Windows Executable File that is running my program correctly. I already managed to create a .exe file, but I get an error as soon as I start the exe: Runtime Error! Path\MyGame.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more

How to unzip python eggs?

若如初见. 提交于 2019-12-12 14:01:24
问题 I'm trying to bundle some egg dependencies when using py2exe and as stated on the py2exe site, it doesn't work with those and I need to unzip them first. I've tried to first run easy_install -m lxml and then easy_install --always-unzip lxml==2.2.2 , but it didn't work. Then I tried to set the unzipping behaviour to default by putting it to distutils.cfg . I didn't find the latter file, so I've made the HOME environment variable and created a pydistutils.cfg file there with this content: [easy

Handling dynamic import with py2exe

本秂侑毒 提交于 2019-12-12 11:23:21
问题 I have a problem when preparing an .exe for my app using py2exe. The source of this problem is the following function that I created to use classes from a dynamically defined module. def of_import(module, classname, country = None): ''' Returns country specific class found in country module ''' if country is None: country = CONF.get('simulation', 'country') _temp = __import__(country + '.' + module, globals = globals(), locals = locals(), fromlist = [classname], level=-1) return getattr(_temp

py2exe doesn't find all dependencies

喜你入骨 提交于 2019-12-12 10:46:02
问题 I am trying to create an exe from python code. I can run the code just fine from the command line like this: python myScript.py I have installed py2exe from here: http://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/ And, have a setup.py that looks like this: from distutils.core import setup import py2exe setup(console=['myScript.py']) And, I run the setup.py like this: python setup.py py2exe I get the following in the output: The following modules appear to be missing ['Carbon', 'Carbon

Fixing SSL certificate error in exe compiled with py2exe (or PyInstaller)

放肆的年华 提交于 2019-12-12 08:26:00
问题 I've just finished testing a Python programme which involves logging into a site and requires a CSRF cookie to be set. I've tried packaging it as an exe using py2exe and got a socket error. I have the same problem when I try with PyInstaller . Googling the Errno I found a few other people with the same problem and so I know the problem is to do with the location of SLL certificates. This is my site_agent class including the logging calls. class site_agent: self.get_params() URL = root_url + '