py2exe

Building an executable file for python code using py2exe

谁说我不能喝 提交于 2019-12-10 18:05:20
问题 I installed "py2exe" for "Python2.7" , made a "Hello World" program, used py2exe to build its exe and it worked perfectly. Now when I tried building the exe of my actual code, the folders get created and exe is also created without any problem but when I launch the exe the console appears for less than a second and closes. Only difference in this case and test program is that I have multiple code files in this case and in some of them I am importing a few files/libraries as well Following are

Failed to Login as 'Domain\ComputerName' pyodbc with py2exe

倾然丶 夕夏残阳落幕 提交于 2019-12-10 17:24:37
问题 Ok so I have a script that connects to a mssql db and i need to run as a service which I have already accomplished but when I run it as a service it overrides my credentials that I have put in when i connect to the db with the ad computer account. It runs perfect when i run it on its own and not as a service. My Connection String is: 'DRIVER={SQL Server};SERVER=MyServer;DATABASE=MyDB;UID=DOMAIN\myusername;PWD=A;Trusted_Connection=True' The Error is: Error: ('28000', "[28000] [Microsoft][ODBC

how to build .exe for python 3.5+, 3.6 if possible?

烈酒焚心 提交于 2019-12-10 15:34:19
问题 Is there now an easy protocol to build a .exe from python 3.5+, using modules pyqtgraph, qt5, theano, pymc3, numpy, scipy, os and sys, and opening a simple GUI stored in a '.ui' file ? I lost hours and eventually failed to make one (for w7-64 bits). Help ! preliminary failure with py2exe: I first install py2exe for python 3 but it turns out this is not compatible with my python 3.6 yet, so I downgraded to python 3.5… to get a bunch of errors. Then I went to forums and tried the proposed cures

Py2exe - Pmw WindowsError: [Error 3]

浪尽此生 提交于 2019-12-10 13:55:28
问题 I am trying to build my standalone executable using Py2exe. I have imported the Pmw class. When I run the stanalone excutable, I get this error: Traceback (most recent call last): File "----.py", line 9, in <module> File "zipextimporter.pyc", line 82, in load_module File "Pmw\__init__.pyc", line 28, in <module> WindowsError: [Error 3] The system cannot find the path specified:'C:\\Users\\Administrator\\PycharmProjects\\---\\dist\\-----_pmw.exe\\Pmw/*.*' I searched this error, but I was not

Py2exe error: [Errno 2] No such file or directory

这一生的挚爱 提交于 2019-12-10 13:38:20
问题 C:\Users\Shalia\Desktop\accuadmin>python setup_py2exe.py py2exe running py2exe 10 missing Modules ------------------ ? PIL._imagingagg imported from PIL.ImageDraw ? PyQt4 imported from PIL.ImageQt ? PyQt5 imported from PIL.ImageQt ? PySide imported from PIL.ImageQt ? _imaging_gif imported from PIL.GifImagePlugin ? _util imported from PIL.ImageCms ? cffi imported from PIL.Image, PIL.PyAccess ? enchant imported from guess_language ? readline imported from cmd, code, pdb ? tkinter imported from

cant get py2exe to work

风格不统一 提交于 2019-12-10 11:28:51
问题 for ages now i have been trying to package my python applications up as a stand alone executable. i have been attempting to use py2exe but it has never seemed to work. lets say we have machine A and machine B, i build the program on machine A and try to run as an executable on machine B. on the first few attempts when trying to run on machine B it would say FATAL ERROR: Cannot load python library but i thought that was down to the py2exe process saying 1 missing module full: 1 missing Modules

py2exe with multiprocessing fails to run the processes

可紊 提交于 2019-12-10 03:59:37
问题 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? 回答1: You know you are using a app of year 2008? (py2exe), python is in constant

keyring module is not included while packaging with py2exe

旧城冷巷雨未停 提交于 2019-12-10 03:31:45
问题 I am making an app using python 2.7 on windows and keyring-3.2.1 . In my python code on eclipse, I used import keyring keyring.set_password("service","jsonkey",json_res) json_res= keyring.get_password("service","jsonkey") is working fine as I am storing json response in keyring. But, when I converted python code into exe by using py2exe, it shows import error keyring while making dist. Please suggest how to include keyring in py2exe. Traceback (most recent call last): File "APP.py", line 8,

py2exe打包遇到的问题

帅比萌擦擦* 提交于 2019-12-10 03:14:55
py2exe打包python成.exe文件 打包过程和结果 1、创建setup脚本打包文件,其中设置打包的属性和方法。注意:尽量将被打包文件和此打包脚本放在同目录下(因为在尝试非同目录下时,出现了非可再现性的寻找被打包文件失败) 2、在cmd命令行,进入setup打包脚本所在命令行,执行此脚本文件(python setup.py py2exe) 3、默认出现built和dist两个文件。dist文件中的内容即为打包程序的内容,也即可发布的内容。 打包过程遇到的问题: 1、Win10系统文件缺失,值后发现这些文件可以在dll_exclude[]属性中设置不包含进来。在使用Win7系统时,并没有出现文件缺失。参考以下文件,其中包括: "api-ms-win-core-string-l1-1-0", "api-ms-win-core-libraryloader-l1-2-1.dll", "api-ms-win-core-profile-l1-1-0.dll", "api-ms-win-core-processthreads-l1-1-2.dll", "api-ms-win-core-handle-l1-1-0.dll", "api-ms-win-core-registry-l1-1-0.dll", "api-ms-win-core-file-l1-2-1.dll", "api-ms

ImportError: No module named cycler

眉间皱痕 提交于 2019-12-10 02:41:56
问题 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