cx-freeze-users Mailing List for cx_Freeze
Brought to you by:
atuining
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
(2) |
Oct
(11) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(1) |
Feb
(2) |
Mar
(3) |
Apr
(9) |
May
(5) |
Jun
(18) |
Jul
(21) |
Aug
(55) |
Sep
(15) |
Oct
(8) |
Nov
(27) |
Dec
(19) |
2005 |
Jan
(47) |
Feb
(20) |
Mar
(48) |
Apr
(6) |
May
(6) |
Jun
(34) |
Jul
(28) |
Aug
(10) |
Sep
(20) |
Oct
|
Nov
(20) |
Dec
(41) |
2006 |
Jan
(2) |
Feb
(4) |
Mar
(26) |
Apr
|
May
(5) |
Jun
(13) |
Jul
(11) |
Aug
(24) |
Sep
(11) |
Oct
(2) |
Nov
(8) |
Dec
(8) |
2007 |
Jan
(13) |
Feb
(10) |
Mar
|
Apr
(16) |
May
(22) |
Jun
|
Jul
|
Aug
|
Sep
(10) |
Oct
(20) |
Nov
|
Dec
|
2008 |
Jan
(13) |
Feb
|
Mar
(27) |
Apr
(5) |
May
(15) |
Jun
(7) |
Jul
(36) |
Aug
(11) |
Sep
(12) |
Oct
(4) |
Nov
(3) |
Dec
(8) |
2009 |
Jan
(12) |
Feb
(5) |
Mar
(13) |
Apr
(16) |
May
(6) |
Jun
(17) |
Jul
(24) |
Aug
|
Sep
(30) |
Oct
(6) |
Nov
(32) |
Dec
(35) |
2010 |
Jan
(41) |
Feb
(54) |
Mar
(77) |
Apr
(42) |
May
(9) |
Jun
(6) |
Jul
(78) |
Aug
(54) |
Sep
(36) |
Oct
(8) |
Nov
(52) |
Dec
(44) |
2011 |
Jan
(13) |
Feb
(16) |
Mar
(48) |
Apr
(13) |
May
(13) |
Jun
(29) |
Jul
(26) |
Aug
(9) |
Sep
(21) |
Oct
(25) |
Nov
(9) |
Dec
(9) |
2012 |
Jan
(9) |
Feb
(47) |
Mar
(36) |
Apr
(59) |
May
(29) |
Jun
(27) |
Jul
(60) |
Aug
(20) |
Sep
(29) |
Oct
(25) |
Nov
(44) |
Dec
(6) |
2013 |
Jan
(19) |
Feb
(39) |
Mar
(23) |
Apr
(79) |
May
(41) |
Jun
(34) |
Jul
(80) |
Aug
(24) |
Sep
(54) |
Oct
(42) |
Nov
(34) |
Dec
(7) |
2014 |
Jan
(53) |
Feb
(17) |
Mar
(18) |
Apr
(22) |
May
(34) |
Jun
(6) |
Jul
(9) |
Aug
(20) |
Sep
(17) |
Oct
(22) |
Nov
(5) |
Dec
(13) |
2015 |
Jan
(9) |
Feb
(23) |
Mar
(11) |
Apr
(11) |
May
(3) |
Jun
(17) |
Jul
(3) |
Aug
(7) |
Sep
(3) |
Oct
(12) |
Nov
(15) |
Dec
(3) |
2016 |
Jan
|
Feb
(8) |
Mar
(14) |
Apr
(11) |
May
(3) |
Jun
(11) |
Jul
(1) |
Aug
(53) |
Sep
|
Oct
(3) |
Nov
(50) |
Dec
(16) |
2017 |
Jan
(14) |
Feb
(8) |
Mar
(2) |
Apr
(9) |
May
(15) |
Jun
(4) |
Jul
(5) |
Aug
(10) |
Sep
(1) |
Oct
(3) |
Nov
(10) |
Dec
(3) |
2018 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(7) |
Dec
(1) |
2019 |
Jan
|
Feb
(2) |
Mar
|
Apr
(2) |
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
(14) |
Oct
(2) |
Nov
|
Dec
|
2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
(4) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(3) |
2021 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Jean-Baptiste B. <ash...@gm...> - 2021-01-03 14:01:33
|
Was a pyqtgraph bug. sorry for noise JB Le sam. 2 janv. 2021 à 20:30, Jean-Baptiste BUTET <ash...@gm...> a écrit : > Hi all ! > > firstofall : thanks a lot for this marvellous software that allow s to > port our python code under lot of platform so easily !!! > > I have an issue when adding pyqtgraph as package in build options : > "packages": ["os", "cv2", "pyqtgraph"] > > -> at processing : > #### > Traceback (most recent call last): > File "setup_win.py", line 68, in <module> > setup( name = "pymecavideo", > File "C:\Python38\lib\site-packages\cx_Freeze\dist.py", line 392, in > setup > distutils.core.setup(**attrs) > File "C:\Python38\lib\distutils\core.py", line 148, in setup > dist.run_commands() > File "C:\Python38\lib\distutils\dist.py", line 966, in run_commands > self.run_command(cmd) > File "C:\Python38\lib\distutils\dist.py", line 985, in run_command > cmd_obj.run() > File "C:\Python38\lib\distutils\command\build.py", line 135, in run > self.run_command(cmd_name) > File "C:\Python38\lib\distutils\cmd.py", line 313, in run_command > self.distribution.run_command(command) > File "C:\Python38\lib\distutils\dist.py", line 985, in run_command > cmd_obj.run() > File "C:\Python38\lib\site-packages\cx_Freeze\dist.py", line 260, in run > freezer.Freeze() > File "C:\Python38\lib\site-packages\cx_Freeze\freezer.py", line 732, in > Freeze > self.finder = self._GetModuleFinder() > File "C:\Python38\lib\site-packages\cx_Freeze\freezer.py", line 437, in > _GetModuleFinder > finder.IncludePackage(name) > File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 700, in > IncludePackage > self._ImportAllSubModules(module, deferredImports) > File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 311, in > _ImportAllSubModules > self._ImportAllSubModules( > File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 302, in > _ImportAllSubModules > subModule = self._InternalImportModule( > File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 437, in > _InternalImportModule > module = self._LoadModule( > File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 497, in > _LoadModule > self._ScanCode(module.code, module, deferredImports) > File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 615, in > _ScanCode > importedModule = self._ImportModule( > File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 337, in > _ImportModule > module = self._InternalImportModule(name, deferredImports) > File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 437, in > _InternalImportModule > module = self._LoadModule( > File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 450, in > _LoadModule > return self._LoadPackage(name, path, parent, deferredImports) > File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 518, in > _LoadPackage > self._LoadModule(name, fp, path, info, deferredImports, parent) > File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 497, in > _LoadModule > self._ScanCode(module.code, module, deferredImports) > File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 615, in > _ScanCode > importedModule = self._ImportModule( > File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 369, in > _ImportModule > module = self._InternalImportModule(name, deferredImports) > File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 422, in > _InternalImportModule > spec = importlib.util.find_spec(name) > File "C:\Python38\lib\importlib\util.py", line 94, in find_spec > parent = __import__(parent_name, fromlist=['__path__']) > File > "C:\Python38\lib\site-packages\pyqtgraph\examples\relativity\__init__.py", > line 1, in <module> > from .relativity import * > File > "C:\Python38\lib\site-packages\pyqtgraph\examples\relativity\relativity.py", > line 235, in <module> > pTypes.registerParameterType('Clock', ClockParam) > File > "C:\Python38\lib\site-packages\pyqtgraph\parametertree\Parameter.py", line > 14, in registerParameterType > raise Exception("Parameter type '%s' already exists (use override=True > to replace)" % name) > Exception: Parameter type 'Clock' already exists (use override=True to > replace) > > ################################### > Is there a way to bypass this ? where using "override argument" ? > NB : I'm using cx_freeze 6.4.2 > > Other thing, in my size optimization, i've noticed lot's of "python38.dll" > everywhere.. at least 6...(24 Mo...) I can rm some without any > issues...others are needed. any way to predict if python38.dll is needed or > not in library directory ? > > Thanks a lot, > > JB > > > |
From: Jean-Baptiste B. <ash...@gm...> - 2021-01-02 19:30:51
|
Hi all ! firstofall : thanks a lot for this marvellous software that allow s to port our python code under lot of platform so easily !!! I have an issue when adding pyqtgraph as package in build options : "packages": ["os", "cv2", "pyqtgraph"] -> at processing : #### Traceback (most recent call last): File "setup_win.py", line 68, in <module> setup( name = "pymecavideo", File "C:\Python38\lib\site-packages\cx_Freeze\dist.py", line 392, in setup distutils.core.setup(**attrs) File "C:\Python38\lib\distutils\core.py", line 148, in setup dist.run_commands() File "C:\Python38\lib\distutils\dist.py", line 966, in run_commands self.run_command(cmd) File "C:\Python38\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "C:\Python38\lib\distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "C:\Python38\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "C:\Python38\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "C:\Python38\lib\site-packages\cx_Freeze\dist.py", line 260, in run freezer.Freeze() File "C:\Python38\lib\site-packages\cx_Freeze\freezer.py", line 732, in Freeze self.finder = self._GetModuleFinder() File "C:\Python38\lib\site-packages\cx_Freeze\freezer.py", line 437, in _GetModuleFinder finder.IncludePackage(name) File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 700, in IncludePackage self._ImportAllSubModules(module, deferredImports) File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 311, in _ImportAllSubModules self._ImportAllSubModules( File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 302, in _ImportAllSubModules subModule = self._InternalImportModule( File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 437, in _InternalImportModule module = self._LoadModule( File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 497, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 615, in _ScanCode importedModule = self._ImportModule( File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 337, in _ImportModule module = self._InternalImportModule(name, deferredImports) File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 437, in _InternalImportModule module = self._LoadModule( File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 450, in _LoadModule return self._LoadPackage(name, path, parent, deferredImports) File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 518, in _LoadPackage self._LoadModule(name, fp, path, info, deferredImports, parent) File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 497, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 615, in _ScanCode importedModule = self._ImportModule( File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 369, in _ImportModule module = self._InternalImportModule(name, deferredImports) File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 422, in _InternalImportModule spec = importlib.util.find_spec(name) File "C:\Python38\lib\importlib\util.py", line 94, in find_spec parent = __import__(parent_name, fromlist=['__path__']) File "C:\Python38\lib\site-packages\pyqtgraph\examples\relativity\__init__.py", line 1, in <module> from .relativity import * File "C:\Python38\lib\site-packages\pyqtgraph\examples\relativity\relativity.py", line 235, in <module> pTypes.registerParameterType('Clock', ClockParam) File "C:\Python38\lib\site-packages\pyqtgraph\parametertree\Parameter.py", line 14, in registerParameterType raise Exception("Parameter type '%s' already exists (use override=True to replace)" % name) Exception: Parameter type 'Clock' already exists (use override=True to replace) ################################### Is there a way to bypass this ? where using "override argument" ? NB : I'm using cx_freeze 6.4.2 Other thing, in my size optimization, i've noticed lot's of "python38.dll" everywhere.. at least 6...(24 Mo...) I can rm some without any issues...others are needed. any way to predict if python38.dll is needed or not in library directory ? Thanks a lot, JB |
From: Chris G. <cl...@is...> - 2020-12-24 18:55:34
|
On Thu, Dec 24, 2020 at 03:22:11PM -0300, Marcelo Duarte wrote: > Please, > > -Use the newest version of cx-freeze: 6.4.2 (supports for python 3.6 up to > 3.9) > Ah, the whole point of using version 5.1.1 is that the Python utility I'm trying to freeze/package has a .so file compiled for Python 2 and I can't recompile it for Python 3. > -Use the new channel: > https://github.com/marcelotduarte/cx_Freeze/discussions > Thank you, I did wonder if discussions had moved. :-) I'll repost my question there. -- Chris Green |
From: Chris G. <cl...@is...> - 2020-12-24 15:49:51
|
I am a new user. I'm trying to use cx-freeze 5.1.1 to create a portable (to later Ubuntu versions) version of a printer utility that uses Gtk2. I have built a dedicated xubuntu 18.04 system and have installed cx-freeze 5.1.1 on it. I have also (obviously) installed the printer utility on the xubuntu 18.04 system and it runs OK there. I have run the following command:- cxfreeze /usr/libexec/okimfputl/scantool.py This runs OK (with some warnings about missing modules, which look mostly like Windows ones) and creates a dist directory with the scantool executable, libpython2.7.so.1.0 and a lib sub-directory in it. The ~/dist/scantool runs OK on the system where I built it but when I run it on another system I get the error:- ImportError: libpyglib-2.0-python2.7.so.0: cannot open shared object file: No such file or directory Obviously the library file exists on the system where I built it (it does) but not on the target system. How do I add the library to the target 'dist'? I tried putting it directly in the dist directory (with libpython2.7.so.1.0) and putting it in the lib sub-directory but neither worked. Can I add it to the cxfreeze command somehow or do I just need to put it in the right place in dist? Please point me elsewhere if this is the wrong place to ask such questions? Thank you. -- Chris Green |
From: <De...@de...> - 2020-12-21 14:28:01
|
<div dir="auto">Hello, <div><br /></div><div>I'm using cx_freeze for a long time, with python 3.7 and cx 5.1.1 on Win 10, everything works fine. On this version, I put a feature called smalApp from the internet so the msi installer file has a nice size by reducing the unnecessary multiple. dll files. </div><div><br /></div><div>By upgrading to cx 6.4.2 and python 3.9.1, I tried to implement this feature, it works, but when the msi size is reduced, the program won't start...</div><div><br /></div><div>Is there a chance to reduce the amount of system dlls (e.g. python39.dll), in nearly every module directory to one file in thevmain folder? <br /><br />Kind regards </div><div>Dennis Kuhn </div></div> |
From: Sebastian K. <seb...@re...> - 2020-07-11 09:24:54
|
Anthony Tuininga <ant...@gm...> wrote: > In the past few years I have realized that I no longer use cx_Freeze myself > and my spare time to maintain cx_Freeze is limited. In the past number of > months Marcelo Duarte has been doing much of the work of responding to > issues and creating pull requests to continue enhancing cx_Freeze. As such, > as of today I am transferring the maintenance of cx_Freeze to him. I will > continue to be available for consultation but this is a formal recognition > that the bulk of the work is now being performed by Marcelo. I wish him all > the best! Thank you Anthony for maintaining this project for so long and for the initiative to keep the project alive. And thank you, Marcelo, for taking over the maintenance. I think we should make sure that users can now find the new project page and the latest version of cx_Freeze. Here are some things that should probably be updated to complete the transfer of maintenance: - The files section of the SourceForge page (https://sourceforge.net/projects/cx-freeze/files/) still contains very old versions (4.X) that have over 200 downloads per week. I think it's best to remove all files from SourceForge so that users don't accidentally download outdated versions. - The old project page on SF.net (https://sourceforge.net/projects/cx-freeze/) still links to https://anthony-tuininga.github.io/cx_Freeze/ which now returns a 404. That link should be updated to https://github.com/marcelotduarte/cx_Freeze. - Maybe https://anthony-tuininga.github.io/cx_Freeze/ should redirect to https://github.com/marcelotduarte/cx_Freeze - http://cx-freeze.sf.net/ still redirects to https://anthony-tuininga.github.io/cx_Freeze/ and should be changed. Sebastian |
From: Anthony T. <ant...@gm...> - 2020-07-02 03:28:51
|
All, In the past few years I have realized that I no longer use cx_Freeze myself and my spare time to maintain cx_Freeze is limited. In the past number of months Marcelo Duarte has been doing much of the work of responding to issues and creating pull requests to continue enhancing cx_Freeze. As such, as of today I am transferring the maintenance of cx_Freeze to him. I will continue to be available for consultation but this is a formal recognition that the bulk of the work is now being performed by Marcelo. I wish him all the best! The new repository is: https://github.com/marcelotduarte/cx_Freeze Anthony |
From: Robin S. <rob...@ds...> - 2020-06-12 16:06:11
|
Actually, chalk this up to user error: I read the path wrong. It wanted the packages to be in /Users/local/opt/anaconda3/lib, but they are not there (for whatever reason). If I search in a different virtual env (where installing cx-freeze failed), I find them. How do I point to that location? As an aside, I brute forced this by copying the frameworks it wanted into the location it wanted and the build succeeded. However, I end up with an .exe (not an app) in /Users/local/Dev/plex/build/exe.macosx-10.9-x86_64-3.7. I tried to run it, but I get an error... Fatal Python error: initfsencoding: unable to load the file system codec Traceback (most recent call last): File "/Users/local/opt/anaconda3/lib/python3.7/encodings/__init__.py", line 31, in <module> zipimport.ZipImportError: can't decompress data; zlib not available zsh: abort ./plex_library_viewer I’m sure I am doing so many things wrong! Please enlighten me! Thanks! On Jun 12, 2020, 8:18 AM -0700, Robin Siebler <rob...@ds...>, wrote: > I am trying to build an app on macOS, which seems to be an impossible task! I’ve tried several different tools and each one has had problems. cx-freeze is my final attempt (why are things so much easier on Windows?) > > > Here is my problem (the first of many, no doubt, assuming this is solved): I am trying to build a macOS PyQt5 app. It ends in failure: > error: otool returned a dependent file that could not be found: /Users/local/opt/anaconda3/lib/QtGui.framework/Versions/5/QtGui > > However, when I look in the locations specified, the file is there. > > Attached is my setup file. > _______________________________________________ > cx-freeze-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users |
From: Robin S. <rob...@ds...> - 2020-06-12 15:17:51
|
I am trying to build an app on macOS, which seems to be an impossible task! I’ve tried several different tools and each one has had problems. cx-freeze is my final attempt (why are things so much easier on Windows?) Here is my problem (the first of many, no doubt, assuming this is solved): I am trying to build a macOS PyQt5 app. It ends in failure: error: otool returned a dependent file that could not be found: /Users/local/opt/anaconda3/lib/QtGui.framework/Versions/5/QtGui However, when I look in the locations specified, the file is there. Attached is my setup file. |
From: Ryan W <rw...@ca...> - 2020-06-12 08:13:19
|
Hi, I am trying to point a user shell to a compiled program in a Linux system. Not sure if I've got a bug or am missing something. I've run into the same issue on a Linux Mint dev machine as well as ARMv7 on a Raspberry Pi4 - Raspberry Pi OS (32-bit) Lite [console only]. Error received is "Fatal error: Unable to locate executable on PATH!". I do have a virtual environment for the main computer/test files but not on the pi4. I'm at a loss as to what to try next. I don't think it would be an issue with 32/64 bit since since I've built and ran on the same computers. Maybe permissions within all of the files in lib? Any help would be appreciated! Steps and files are below. Let me know how to provide extra details if needed! Thanks, -Ryan Here are the steps I've followed. 0. setup user "tester" and home folder 1. Wrote a basic hello-world to run as the user shell (foo.py below) 2. Created a setup file with /cxfreeze-quickstart/. With some unsuccessful attempts I've also tried various edits. Current attempt version is below. 3. /python --version/ //Python 3.7.5 /[dev computer]/ Python 3.7.3 [Raspberry Pi 4]/ / /python setup_foo.py build/ /...output.../ /Some error about missing modules but copies everything over / 3.1. tested resulting 'foo' file and it runs just fine. 4. moved resulting file "foo" and the "lib" folder from under ./build to /home/tester 5. Ran console commands to change tester user's shell, and switch user to tester. Demonstrated this works for the python file, but not compiled file. $ sudo chsh -s /home/tester/foo.py tester $ su - tester Password: /foobarred/ $ sudo chsh -s /home/tester/foo tester $ su - tester Password: Fatal error: Unable to locate executable on PATH! Also have chown'd the foo file and lib folder to tester. /home/tester$ ls -l total 16 -rwxr-xr-x 1 tester 10216 Jun 11 17:11 foo drwxr-xr-x 45 tester 4096 Jun 11 17:50 lib /home/tester/setup_foo.py: fromcx_Freeze importsetup, Executable buildOptions = dict(packages= [], excludes= []) base = 'Console' executables = [ Executable('foo.py', base=base, targetName="foo") ] setup(name='foo', version= '1.0', description= 'bar', options= dict(build_exe= buildOptions), executables= executables) /home/tester/foo.py #!/usr/bin/env python3 importsys base = 'Console' defmain(): print("foobarred") if__name__== "__main__": main() |
From: Steve K. <kar...@nu...> - 2020-06-08 22:33:08
|
I’m wondering if it is possible to debug frozen Python code using an IDE such as PyCharm. The specific context I have is that I’m running a Python child process of a Java parent process. When I have the parent process generate the child by running `python.exe` with a script then I can use PyCharm to attach to the child process and do normal debugging operations like setting breakpoints, single stepping etc. When doing this, PyCharm is communicating with the Python process over pipes, serializing data back and forth. To simplify deployment of my child process, I would prefer to ship a frozen version. When I have my parent process run a frozen child it is not exposing the ports that PyCharm uses to attach to a Python process and debug it. What I’m wondering is: * Is there something I need to do in the Python code that I freeze to make it accessible to a debugger like PyCharm? * The frozen form includes .pyc files. Is there something I need to tell cx_Freeze to make it include the source so the debugger can properly display the original Python code when doing things like setting breakpoints, single stepping, etc? Thanks very much for any guidance. -steve karmesin |
From: Ivo G. <iv...@co...> - 2020-04-08 19:27:30
|
Hi for everybody, I don't know if I'm in the correct forum, sorry. I am using: - Python3.8.0.2 - Openmpi 4.03 - MPI4PY - CX_FREEZE I am using CX_FREEZE to freeze my Python3.8.0.2 script. I am also running only in one RASPBERRY. I am using Python3.8 shared_memory in myScript.py. If I run: mpiexec -n 2 python3.8 myScript.py ==> run OK, without problems (with shared_memory). If I run CX_FREEZE to build my ./myScript and then: mpiexec -n 2 ./myScript ==> ERROR (below) , but the program run after the error if I run CX_FREEZE to build my ./myScript, but removing SHARED_MEMORY code inside pyhton file: mpiexec -n 2 ./myScript ==> run OK, without problems. The error appears using Python3.8 SHARED_MEMORY in my Python script and CX_FREEZE. Appreciate any help, Ivo Wolff Gersberg PEC-COPPE/Federal University of Rio de Janeiro Brazil The error: -------------------------------------------------------------------------- It looks like orte_init failed for some reason; your parallel process is likely to abort. There are many reasons that a parallel process can fail during orte_init; some of which are due to configuration or environment problems. This failure appears to be an internal failure; here's some additional information (which may only be relevant to an Open MPI developer): getting local rank failed --> Returned value No permission (-17) instead of ORTE_SUCCESS -------------------------------------------------------------------------- -------------------------------------------------------------------------- It looks like orte_init failed for some reason; your parallel process is likely to abort. There are many reasons that a parallel process can fail during orte_init; some of which are due to configuration or environment problems. This failure appears to be an internal failure; here's some additional information (which may only be relevant to an Open MPI developer): orte_ess_init failed --> Returned value No permission (-17) instead of ORTE_SUCCESS -------------------------------------------------------------------------- -------------------------------------------------------------------------- It looks like MPI_INIT failed for some reason; your parallel process is likely to abort. There are many reasons that a parallel process can fail during MPI_INIT; some of which are due to configuration or environment problems. This failure appears to be an internal failure; here's some additional information (which may only be relevant to an Open MPI developer): ompi_mpi_init: ompi_rte_init failed --> Returned "No permission" (-17) instead of "Success" (0) -------------------------------------------------------------------------- *** An error occurred in MPI_Init_thread *** on a NULL communicator *** MPI_ERRORS_ARE_FATAL (processes in this communicator will now abort, *** and potentially your MPI job) [raspberrypi:01077] Local abort before MPI_INIT completed completed successfully, but am not able to aggregate error messages, and not able to guarantee that all other processes were killed! *** An error occurred in MPI_Init_thread *** on a NULL communicator *** MPI_ERRORS_ARE_FATAL (processes in this communicator will now abort, *** and potentially your MPI job) [raspberrypi:01080] Local abort before MPI_INIT completed completed successfully, but am not able to aggregate error messages, and not able to guarantee that all other processes were killed! [raspberrypi:01064] 1 more process has sent help message help-orte-runtime.txt / orte_init:startup:internal-failure [raspberrypi:01064] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages [raspberrypi:01064] 1 more process has sent help message help-orte-runtime / orte_init:startup:internal-failure [raspberrypi:01064] 1 more process has sent help message help-mpi-runtime.txt / mpi_init:startup:internal-failure -- *...* *Ivo Wolff Gersberg* |
From: Martin G. <mar...@go...> - 2020-04-08 09:19:03
|
Sorry, my last email sent in error before ending with '*Grateful' for any help you can give. MANY thanks. All the best, Martin * On Wed, 8 Apr 2020 at 10:17, Martin Garbutt <mar...@go...> wrote: > Hi everyone. Hope you are all well in these unfortunate times. > Hoping for some advice please with regards to using cx-freeze on a mac. > I have created an arcade game (named TheJuggler.py) using python and > pygame which works fine, and am now looking to create an exec file as well > as an application/dmg file for distribution. I have created the following > setup.py file: > > import cx_Freeze > executables = [cx_Freeze.Executable("TheJuggler.py")] > cx_Freeze.setup( > name="TheJuggler", > options={"build_exe": {"packages":["pygame"]}}, > executables = executables > ) > > I use the terminal to navigate to the folder where my .py files are, and > type python setup.py build > > This gives the following error: > > Traceback (most recent call last): > > File "setup.py", line 1, in <module> > > import cx_Freeze > > File > "/Users/martingarbutt/Library/Python/2.7/lib/python/site-packages/cx_Freeze/__init__.py", > line 7, in <module> > > from cx_Freeze.macdist import bdist_dmg, bdist_mac > > File > "/Users/martingarbutt/Library/Python/2.7/lib/python/site-packages/cx_Freeze/macdist.py", > line 1, in <module> > > from distutils.core import Command, DistutilsFileError > ImportError: cannot import name DistutilsFileError > > I understand a mac has pyton 2.7 installed by default. I also have python > 3.7 installed. With this in mind, I instead type: python3 setup.py build > at the terminal. (Note the 3). This works fine and generates a > build/exe.macosx-10.9-x86_64-3/ folder containing TheJuggler.exe. It runs > OK. > > I now want to create a mac application proper (including a dmg) file so > others can install TheJuggler on their macs. I type: python3 setup.py > bdist_dmg at the terminal. In the build folder I now see a > TheJuggler-0.0.0 application as well as TheJuggler-0.0.0 dmg file. > However, clicking either of these brings up the following error window: > > *TheJuggler-0.0.0 cannot be opened because of a problem.* > > Check with the developer to make sure TheJuggler-0.0.0 works with this > version of macOS > > Btw, my os is macOS High Sierra 10.13.6. I have the latest cx-freeze > installed under Python/3.7/lib/python/site-packages (6.1) as well as 2.7. > > Gtreafe > > |
From: Martin G. <mar...@go...> - 2020-04-08 09:17:45
|
Hi everyone. Hope you are all well in these unfortunate times. Hoping for some advice please with regards to using cx-freeze on a mac. I have created an arcade game (named TheJuggler.py) using python and pygame which works fine, and am now looking to create an exec file as well as an application/dmg file for distribution. I have created the following setup.py file: import cx_Freeze executables = [cx_Freeze.Executable("TheJuggler.py")] cx_Freeze.setup( name="TheJuggler", options={"build_exe": {"packages":["pygame"]}}, executables = executables ) I use the terminal to navigate to the folder where my .py files are, and type python setup.py build This gives the following error: Traceback (most recent call last): File "setup.py", line 1, in <module> import cx_Freeze File "/Users/martingarbutt/Library/Python/2.7/lib/python/site-packages/cx_Freeze/__init__.py", line 7, in <module> from cx_Freeze.macdist import bdist_dmg, bdist_mac File "/Users/martingarbutt/Library/Python/2.7/lib/python/site-packages/cx_Freeze/macdist.py", line 1, in <module> from distutils.core import Command, DistutilsFileError ImportError: cannot import name DistutilsFileError I understand a mac has pyton 2.7 installed by default. I also have python 3.7 installed. With this in mind, I instead type: python3 setup.py build at the terminal. (Note the 3). This works fine and generates a build/exe.macosx-10.9-x86_64-3/ folder containing TheJuggler.exe. It runs OK. I now want to create a mac application proper (including a dmg) file so others can install TheJuggler on their macs. I type: python3 setup.py bdist_dmg at the terminal. In the build folder I now see a TheJuggler-0.0.0 application as well as TheJuggler-0.0.0 dmg file. However, clicking either of these brings up the following error window: *TheJuggler-0.0.0 cannot be opened because of a problem.* Check with the developer to make sure TheJuggler-0.0.0 works with this version of macOS Btw, my os is macOS High Sierra 10.13.6. I have the latest cx-freeze installed under Python/3.7/lib/python/site-packages (6.1) as well as 2.7. Gtreafe |
From: Anthony T. <ant...@gm...> - 2020-01-04 23:30:36
|
What is cx_Freeze? cx_Freeze is a set of scripts and modules for freezing Python scripts into executables, in much the same way that py2exe and py2app do. Unlike these two tools, cx_Freeze is cross platform and should work on any platform that Python itself works on. It supports Python 3.5 or higher. For Python 2.7, use version 5. More information can be found at the web site: https://anthony-tuininga.github.io/cx_Freeze What's new? cx_Freeze 6.1 adds support for Python 3.8 and makes a lot of small improvements, particularly to hooks for commonly used packages. The full release notes can be read here: https://cx-freeze.readthedocs.io/en/latest/releasenotes.html#version-6-1-january-2020 Thanks once again to Marcelo Duarte for his help in making this release happen in a timely fashion! To install, use the following command: python -m pip install cx_Freeze --upgrade |
From: Bastien S. <sev...@gm...> - 2019-10-22 18:10:35
|
Hello, From today i can't use cx_Freeze on my project and i have no idea of why. Error, when i execute "python setup.py develop" is: > [...] > File > "/home/bux/Projets/rolling/venv3.7/lib/python3.7/site-packages/cx_Freeze/finder.py", > line 297, in _ImportModule > deferredImports, namespace = namespace) > File > "/home/bux/Projets/rolling/venv3.7/lib/python3.7/site-packages/cx_Freeze/finder.py", > line 390, in _InternalImportModule > parentModule, namespace) > File > "/home/bux/Projets/rolling/venv3.7/lib/python3.7/site-packages/cx_Freeze/finder.py", > line 403, in _LoadModule > namespace) > File > "/home/bux/Projets/rolling/venv3.7/lib/python3.7/site-packages/cx_Freeze/finder.py", > line 465, in _LoadPackage > self._LoadModule(name, fp, path, info, deferredImports, parent) > File > "/home/bux/Projets/rolling/venv3.7/lib/python3.7/site-packages/cx_Freeze/finder.py", > line 433, in _LoadModule > module.code = marshal.loads(fp[skip_bytes+4:]) > ValueError: bad marshal data (unknown type code) To reproduce: > git clone gi...@gi...:buxx/rolling.git > cd rolling > virtualenv -p /home/bux/.pythonz/pythons/CPython-3.7.5/bin/python3.7 > venv3.7 # Need python3.7 > source venv3.7/bin/activate > git checkout dev/cxfreeze > python setup.py develop > pip install cx_Freeze > python setup.py build Full log in attachment. (no change if i delete all .pyc and __pychache__) Any idea of what happens ? |
From: Grant E. <gra...@gm...> - 2019-10-14 21:34:16
|
On 2019-09-11, Grant Edwards <gra...@gm...> wrote: > I'm trying to switch from using Inno Setup to build an installer and > instead have cx_freeze create an MSI. I'm still stumped trying to create a shortcut in a subfolder of the start menu. That's now the only thing that still forces me to use Inno Setup to create in instaler for tree created by cx_freeze rather than just having cx_freeze generate an .msi. Does anybody have any ideas? > 1. How do you create a shortcut in a folder under the start menu? > > I can create a top-level start menu shortcut, but I can't figure > out how to put the shorcut in a folder. I've tried all sorts of > different things for shortcutName and shortcutDir, but most of them > either produce an installer error or cause the installer to hang. > > The initial_target_dir setting seems to allow folder names like this: > > "initial_target_dir": r"[ProgramFilesFolder]\My-Company\My-Program", > > But I can't get anything like that to work for the shortcut directory. -- Grant Edwards grant.b.edwards Yow! I'm having a at quadrophonic sensation gmail.com of two winos alone in a steel mill! |
From: Grant E. <gra...@gm...> - 2019-09-17 14:25:32
|
On 2019-09-17, sridhar G <sri...@gm...> wrote: > I tried to upgrade the cx_Freeze version while updating I got this error > ImportError: No module named machinery > ---------------------------------------- > ERROR: Command errored out with exit status 1: python setup.py egg_info > Check the logs for full command output. > > Could you tell me what is the mistake I am doing? https://www.google.com/search?q=No+module+named+machinery -- Grant Edwards grant.b.edwards Yow! MMM-MM!! So THIS is at BIO-NEBULATION! gmail.com |
From: sridhar G <sri...@gm...> - 2019-09-17 03:50:56
|
Hi Edwards, I am using cx_Freeze 4.3.4 if i use the solution provided by you i get this issue error: error in setup script: command 'bdist_msi' has no such option 'install_icon' I tried to upgrade the cx_Freeze version while updating I got this error ImportError: No module named machinery ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Could you tell me what is the mistake I am doing? On Mon, Sep 16, 2019 at 8:13 PM Grant Edwards <gra...@gm...> wrote: > On 2019-09-16, sridhar G <sri...@gm...> wrote: > > > I am new to python, I am trying to develop an application using > PySide,its > > almost done.But i want to add icon to uninstall list of application in > > windows, > > This seems to work for me: > > build_exe_options = { > "include_files": ['myapp.ico'], > } > > bdist_msi_options = { > "install_icon": "myapp.ico", > } > > base = "Win32GUI" > > setup(name = "My App", > version = "1.00", > description = "My Applicatoin", > author="My Name", > options = {"build_exe": build_exe_options, "bdist_msi": > bdist_msi_options}, > executables = [Executable("myapp.py", > base=base, > icon='myapp.ico', > )]) > > -- > Grant Edwards grant.b.edwards Yow! Send your > questions to > at ``ASK ZIPPY'', Box > 40474, > gmail.com San Francisco, CA > 94140, > USA > > > > _______________________________________________ > cx-freeze-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users > |
From: Grant E. <gra...@gm...> - 2019-09-16 14:43:05
|
On 2019-09-16, sridhar G <sri...@gm...> wrote: > I am new to python, I am trying to develop an application using PySide,its > almost done.But i want to add icon to uninstall list of application in > windows, This seems to work for me: build_exe_options = { "include_files": ['myapp.ico'], } bdist_msi_options = { "install_icon": "myapp.ico", } base = "Win32GUI" setup(name = "My App", version = "1.00", description = "My Applicatoin", author="My Name", options = {"build_exe": build_exe_options, "bdist_msi": bdist_msi_options}, executables = [Executable("myapp.py", base=base, icon='myapp.ico', )]) -- Grant Edwards grant.b.edwards Yow! Send your questions to at ``ASK ZIPPY'', Box 40474, gmail.com San Francisco, CA 94140, USA |
From: Dan M. <dan...@or...> - 2019-09-16 14:34:49
|
I vaguely remember playing around with this a few years ago, but I ended up settling on freezing the application with cx_Freeze, but building the MSI (and uninstaller entry) using WiX. -Dan On 9/16/19 9:33 AM, Thomas Kluyver wrote: > On Mon, 16 Sep 2019 at 13:43, sridhar G <sri...@gm... > <mailto:sri...@gm...>> wrote: > > I am using cx_Freeze to build the msi, how to do this in cx_Freeze? > > > I don't know, sorry. I hope the info about what needs to be achieved > might help you find what you need to get there. > > > _______________________________________________ > cx-freeze-users mailing list > cx-...@li... > https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_cx-2Dfreeze-2Dusers&d=DwICAg&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=Fu6ptxlh1O79Q7mDvpxvsKv3c1cP7frlbt9r1I1UmM0&m=q6oN9kEiPrKzy-EXKS88CyQCtjhO8DXFzzpTDAbeJK0&s=I_Rsb5SzT-6rocU_DORZjkYZaXqROI6yHnNnou_8EJY&e= -- *Dan McCombs* dan...@or... <mailto:dan...@or...> *Oracle* | Technical Staff |
From: Thomas K. <ta...@gm...> - 2019-09-16 13:33:36
|
On Mon, 16 Sep 2019 at 13:43, sridhar G <sri...@gm...> wrote: > I am using cx_Freeze to build the msi, how to do this in cx_Freeze? > I don't know, sorry. I hope the info about what needs to be achieved might help you find what you need to get there. |
From: sridhar G <sri...@gm...> - 2019-09-16 12:43:17
|
Hi Thomas, I am using cx_Freeze to build the msi, how to do this in cx_Freeze? Please advise me I just started to understand this. how to include this https://github.com/takluyver/pynsist/blob/872b0eea31b7b181ba77c305f5e463 0d4b9acc82/nsist/pyapp.nsi#L127-L145 code in cx_Freeze. Thanks Sridhar G On Mon, Sep 16, 2019 at 5:19 PM Thomas Kluyver <ta...@gm...> wrote: > The list is defined by some registry keys. Here are the lines in Pynsist > which add an application to the uninstall list: > > > https://github.com/takluyver/pynsist/blob/872b0eea31b7b181ba77c305f5e4630d4b9acc82/nsist/pyapp.nsi#L127-L145 > > On Mon, 16 Sep 2019 at 12:05, sridhar G <sri...@gm...> wrote: > >> Hi, >> >> I am new to python, I am trying to develop an application using >> PySide,its almost done.But i want to add icon to uninstall list of >> application in windows, i searched but did not any idea,please could you >> help me providing some information. >> >> Thanks >> Sridhar G >> _______________________________________________ >> cx-freeze-users mailing list >> cx-...@li... >> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users >> > _______________________________________________ > cx-freeze-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users > |
From: Thomas K. <ta...@gm...> - 2019-09-16 11:49:22
|
The list is defined by some registry keys. Here are the lines in Pynsist which add an application to the uninstall list: https://github.com/takluyver/pynsist/blob/872b0eea31b7b181ba77c305f5e4630d4b9acc82/nsist/pyapp.nsi#L127-L145 On Mon, 16 Sep 2019 at 12:05, sridhar G <sri...@gm...> wrote: > Hi, > > I am new to python, I am trying to develop an application using PySide,its > almost done.But i want to add icon to uninstall list of application in > windows, i searched but did not any idea,please could you help me providing > some information. > > Thanks > Sridhar G > _______________________________________________ > cx-freeze-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users > |
From: sridhar G <sri...@gm...> - 2019-09-16 11:05:12
|
Hi, I am new to python, I am trying to develop an application using PySide,its almost done.But i want to add icon to uninstall list of application in windows, i searched but did not any idea,please could you help me providing some information. Thanks Sridhar G |