py2exe

How to create installer for mac osx

☆樱花仙子☆ 提交于 2019-12-11 06:01:22
问题 I am making an app in python, which is able to open different file types. This code in running fine on eclipse while passing filename which I want to open and configuration file as arguments respectively. Now I converted this into application by using py2app. So, the issue is how to deal with arguments, as different file types need to be open through app and this app also needs configuration file while processing. Is there any different methods available for making app which can be installed

PyGtk Program is not responding on Windows

强颜欢笑 提交于 2019-12-11 05:07:42
问题 I just managed to get py2exe work on a Windows Virtual Machine but stumbled on another problem which I didn't have right after I installed GTK, Pango, Gobject etc. on that machine: When I launch a Python Script the window appears but it immediately stops responding. This happens too if I open a python interpreter and type: import gtk w = gtk.Window() w.show() I'm not allowed to post any images yet, but here's the link to a screenshot: http://i.stack.imgur.com/3RJ0n.png This is a problem for

Python to exe: py2exe issues with pkg_resources

瘦欲@ 提交于 2019-12-11 03:49:50
问题 I've built an application in Python that I'd like to distribute to my enterprise and installing Python on each machine is unfortunately not an option. I'd like to convert the application to an .exe so that users can run my application with shortcut on their desktop. This is my first attempt at distribution, so please forgive my lack of knowledge on the subject. I'm having issues with py2exe when I attempt to convert my .py script to a .exe. My setup.py script looks like this: from distutils

python 3: py2app “Modules not found (unconditional imports)”

China☆狼群 提交于 2019-12-11 03:33:00
问题 I am building a standalone python3 app for a friend that has no knowledge about code whatsoever. For this app I use multiple modules including tkinter and openpyxl . I use py2app to make my app. Even though the GUI part of the program works, the methods using the openpyxl module do not. As my terminal indicates: Modules not found (unconditional imports): * StringIO.StringIO (pkg_resources._vendor.six) * _gdbm (dbm.gnu) * cjkwrap (texttable) * com (com.sun.jna) * com.jna (com.sun) * com.sun

Py2exe Error: Namespace packages not yet supported : Skipping package 'snowflake'

末鹿安然 提交于 2019-12-11 01:33:23
问题 I have been trying to generate an .exe for the following script using py2exe : import snowflake.connector import os import sys # Setting your account information ACCOUNT = '########' USER = '#######' PASSWORD = '#######' ROLES=[] DATABASE=[] ROLES.append(sys.argv[1]) DATABASE.append(sys.argv[2]) print(ROLES) print(DATABASE) cnx = snowflake.connector.connect( user=USER, password=PASSWORD, account=ACCOUNT, ) cur = cnx.cursor() list_of_grants=[] for rl in ROLES: print("Role: "+rl ) db_res=cur

Py2Exe detected as virus. Alternatives?

孤街醉人 提交于 2019-12-11 01:11:09
问题 So, I created a python program. Converted to exe using Py2Exe, and tried with PyInstaller and cx_freeze as well. All these trigger the program to be detected as virus by avast, avg, and others on virustotal and on my local machine. I tried changing to a Hello World script to see if the problem is there but the results are exactly the same. My question is, what is triggering this detection? The way in which the .exe is created? If so, are there any other alternatives to Py2exe, Pyinstaller, cx

python multiprocessing.Process executes a wrong target (packaged with py2exe)

二次信任 提交于 2019-12-10 22:20:19
问题 i have a problem. i using python(2.7.7, 32bit) and py2exe(0.6.9) on Windows7(64bit). my application structure such as the following: from multiprocessing import Process def child(): print "child" def main(): print "main" p = Process(target=child) p.start() p.join() if __name__ == "__main__": main() (1)result before packaged: main child (2)result after packaged: main main main ...(forever) i want to get (1) after packaging. please tell me how to get (1) after packaging. love. 回答1: As mentioned

python lxml with py2exe

旧城冷巷雨未停 提交于 2019-12-10 22:06:08
问题 I have Generated an XML with dom and i want to use lxml to pretty print the xml. this is my code for pretty print the xml def prettify_xml(xml_str): import lxml.etree as etree root = etree.fromstring(xml_str) xml_str = etree.tostring(root, pretty_print=True) return xml_str my output should be an xml formatted string. I got this code from some post in stactoverflow. This works flawlessly when i am compiling wit python itself. But when i convert my project to a binary created from py2exe (my

py2exe ImportError

[亡魂溺海] 提交于 2019-12-10 18:56:44
问题 I read the py2exe tutorial and successfully convert my python code to a running exectuable. But when i tried to run it on another computer that dont have python installed , i get the following error: Traceback (most recent call last): File "C:\Program_Files\Pyton2_7_2\lib\site-packages\py2exe\boot_common.py", line 92, in ImportError: No module named linecache Traceback (most recent call last): File "auto_create_workspace.py", line 1, in ImportError: No module named subprocess On my computer ,

python cx_Freeze egg problem

帅比萌擦擦* 提交于 2019-12-10 18:49:26
问题 im trying to build an executable (for 32bit windows xp) from a python script (which uses lots of eggs) i considered py2exe(0.6.9), PyInstaller (1.4) and cx_Freeze (4.1.2) py2exe doesnt like eggs for breakfast PyInstaller doesnt like python 2.6 for lunch) so i went with cx_Freeze (supposed to support eggs seamlessly since 4.0). but for some reason it doesnt. what parameters do i pass in order for files inside an egg to be recognized? 回答1: Unpack your eggs module in your source directory and