which script or library to compile mi app?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

which script or library to compile mi app?

sebastian lópez
Good nigth

I had translate my app with some effort, first by upgrading from wx 2.9 to 3.0.2 and then to 4.0, At the same time from python 2.7 to python 3.6 by using 2to3 tool and a batch file, at this point I can say It wasn't as painfull as expected. 

In the other hand the next step is to  compile my app to be used under windows(R) platform, but I'm on standby because:
-> pyinstaller doesn't support python 3.6 yet.
-> The last py2exe news was since 2008.
-> cx_freeze seems to be work but it fails to import PyEmbededImage from  <Module name='wx.lib.agw.aui.aui_constants', file='C:\\Users\\usuario\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\wx\\lib\\agw\\aui\\aui_constants.py'>

Some sugestions?

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: which script or library to compile mi app?

James Scholes
sebastian lópez wrote:
> -> pyinstaller doesn't support python 3.6 yet.

Use the development version of pyinstaller:

pip install -e git+https://github.com/pyinstaller/pyinstaller

I'm successfully using the development version with wx Phoenix and
Python 3.6 so can confirm that it does work.
--
James Scholes
http://twitter.com/JamesScholes

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: which script or library to compile mi app?

sebastian lópez
Hi

I installed the pyinstaller package from github, and it compile but doesn't work. I guess the issue is related to pyinstaller, so i'm going to ask them.

thanks


c:\Users\usuario\AppData\Local\SL Seguridad>slseguridad.exe
Traceback (most recent call last):
  File "slseguridad.py", line 31, in <module>
  File "c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "dev_tool.py", line 36, in <module>
  File "c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "dialogs\__init__.py", line 88, in <module>
  File "c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "easyDialog\__init__.py", line 3, in <module>
  File "c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "easyDialog\easyDialog.py", line 81, in <module>
  File "c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\wx\lib\pubsub\pub.py", line 35, in <module>
  File "c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\wx\lib\pubsub\core\__init__.py", line 45, in <module>
ModuleNotFoundError: No module named 'wx.lib.pubsub.core.publisher'
PyInstaller Bootloader 3.x
LOADER: executable is c:\Users\usuario\AppData\Local\SL Seguridad\slseguridad.exe
LOADER: homepath is c:\Users\usuario\AppData\Local\SL Seguridad
LOADER: _MEIPASS2 is NULL
LOADER: archivename is c:\Users\usuario\AppData\Local\SL Seguridad\slseguridad.exe
LOADER: No need to extract files to run; setting extractionpath to homepath
LOADER: SetDllDirectory(c:\Users\usuario\AppData\Local\SL Seguridad)
LOADER: Already in the child - running user's code.
LOADER: Python library: c:\Users\usuario\AppData\Local\SL Seguridad\python36.dll
LOADER: Loaded functions from Python library.
LOADER: Manipulating environment (sys.path, sys.prefix)
LOADER: Pre-init sys.path is c:\Users\usuario\AppData\Local\SL Seguridad\base_library.zip;c:\Users\usuario\AppData\Local\SL Seguridad
LOADER: sys.prefix is c:\Users\usuario\AppData\Local\SL Seguridad
LOADER: Setting runtime options
LOADER: Initializing python
LOADER: Overriding Python's sys.path
LOADER: Post-init sys.path is c:\Users\usuario\AppData\Local\SL Seguridad\base_library.zip;c:\Users\usuario\AppData\Local\SL Seguridad
LOADER: Setting sys.argv
LOADER: setting sys._MEIPASS
LOADER: importing modules from CArchive
LOADER: extracted struct
LOADER: callfunction returned...
LOADER: extracted pyimod01_os_path
LOADER: callfunction returned...
LOADER: extracted pyimod02_archive
LOADER: callfunction returned...
LOADER: extracted pyimod03_importers
LOADER: callfunction returned...
LOADER: Installing PYZ archive with Python modules.
LOADER: PYZ archive: out00-PYZ.pyz
LOADER: Running pyiboot01_bootstrap.py
LOADER: Running pyi_rth_mplconfig.py
LOADER: Running pyi_rth_mpldata.py
LOADER: Running pyi_rth__tkinter.py
LOADER: Running pyi_rth_enchant.py
LOADER: Running pyi_rth_pkgres.py
LOADER: Running pyi_rth_win32comgenpy.py
LOADER: Running slseguridad.py
Failed to execute script slseguridad
LOADER: OK.
LOADER: Cleaning up Python interpreter. 

El miércoles, 3 de mayo de 2017, 19:01:54 (UTC-5), James Scholes escribió:
sebastian lópez wrote:
> -> pyinstaller doesn't support python 3.6 yet.

Use the development version of pyinstaller:

pip install -e git+<a href="https://github.com/pyinstaller/pyinstaller" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fpyinstaller%2Fpyinstaller\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFNCVFqJhynsujejOAWJhp4iVsDLg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fpyinstaller%2Fpyinstaller\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFNCVFqJhynsujejOAWJhp4iVsDLg&#39;;return true;">https://github.com/pyinstaller/pyinstaller

I'm successfully using the development version with wx Phoenix and
Python 3.6 so can confirm that it does work.
--
James Scholes
<a href="http://twitter.com/JamesScholes" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftwitter.com%2FJamesScholes\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6ZgoUeZElthUwf1lkQibh0cP4sA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftwitter.com%2FJamesScholes\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6ZgoUeZElthUwf1lkQibh0cP4sA&#39;;return true;">http://twitter.com/JamesScholes

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: which script or library to compile mi app?

sebastian lópez
Hi 

I had change the wx.lib.pubsub by  wx.py.dispatcher and now it's working!

:-)


El jueves, 4 de mayo de 2017, 6:03:42 (UTC-5), sebastian lópez escribió:
Hi

I installed the pyinstaller package from github, and it compile but doesn't work. I guess the issue is related to pyinstaller, so i'm going to ask them.

thanks


c:\Users\usuario\AppData\Local\SL Seguridad>slseguridad.exe
Traceback (most recent call last):
  File "slseguridad.py", line 31, in <module>
  File "c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "dev_tool.py", line 36, in <module>
  File "c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "dialogs\__init__.py", line 88, in <module>
  File "c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "easyDialog\__init__.py", line 3, in <module>
  File "c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "easyDialog\easyDialog.py", line 81, in <module>
  File "c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\wx\lib\pubsub\pub.py", line 35, in <module>
  File "c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\wx\lib\pubsub\core\__init__.py", line 45, in <module>
ModuleNotFoundError: No module named 'wx.lib.pubsub.core.publisher'
PyInstaller Bootloader 3.x
LOADER: executable is c:\Users\usuario\AppData\Local\SL Seguridad\slseguridad.exe
LOADER: homepath is c:\Users\usuario\AppData\Local\SL Seguridad
LOADER: _MEIPASS2 is NULL
LOADER: archivename is c:\Users\usuario\AppData\Local\SL Seguridad\slseguridad.exe
LOADER: No need to extract files to run; setting extractionpath to homepath
LOADER: SetDllDirectory(c:\Users\usuario\AppData\Local\SL Seguridad)
LOADER: Already in the child - running user's code.
LOADER: Python library: c:\Users\usuario\AppData\Local\SL Seguridad\python36.dll
LOADER: Loaded functions from Python library.
LOADER: Manipulating environment (sys.path, sys.prefix)
LOADER: Pre-init sys.path is c:\Users\usuario\AppData\Local\SL Seguridad\base_library.zip;c:\Users\usuario\AppData\Local\SL Seguridad
LOADER: sys.prefix is c:\Users\usuario\AppData\Local\SL Seguridad
LOADER: Setting runtime options
LOADER: Initializing python
LOADER: Overriding Python's sys.path
LOADER: Post-init sys.path is c:\Users\usuario\AppData\Local\SL Seguridad\base_library.zip;c:\Users\usuario\AppData\Local\SL Seguridad
LOADER: Setting sys.argv
LOADER: setting sys._MEIPASS
LOADER: importing modules from CArchive
LOADER: extracted struct
LOADER: callfunction returned...
LOADER: extracted pyimod01_os_path
LOADER: callfunction returned...
LOADER: extracted pyimod02_archive
LOADER: callfunction returned...
LOADER: extracted pyimod03_importers
LOADER: callfunction returned...
LOADER: Installing PYZ archive with Python modules.
LOADER: PYZ archive: out00-PYZ.pyz
LOADER: Running pyiboot01_bootstrap.py
LOADER: Running pyi_rth_mplconfig.py
LOADER: Running pyi_rth_mpldata.py
LOADER: Running pyi_rth__tkinter.py
LOADER: Running pyi_rth_enchant.py
LOADER: Running pyi_rth_pkgres.py
LOADER: Running pyi_rth_win32comgenpy.py
LOADER: Running slseguridad.py
Failed to execute script slseguridad
LOADER: OK.
LOADER: Cleaning up Python interpreter. 

El miércoles, 3 de mayo de 2017, 19:01:54 (UTC-5), James Scholes escribió:
sebastian lópez wrote:
> -> pyinstaller doesn't support python 3.6 yet.

Use the development version of pyinstaller:

pip install -e git+<a href="https://github.com/pyinstaller/pyinstaller" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fpyinstaller%2Fpyinstaller\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFNCVFqJhynsujejOAWJhp4iVsDLg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fpyinstaller%2Fpyinstaller\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFNCVFqJhynsujejOAWJhp4iVsDLg&#39;;return true;">https://github.com/pyinstaller/pyinstaller

I'm successfully using the development version with wx Phoenix and
Python 3.6 so can confirm that it does work.
--
James Scholes
<a href="http://twitter.com/JamesScholes" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftwitter.com%2FJamesScholes\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6ZgoUeZElthUwf1lkQibh0cP4sA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftwitter.com%2FJamesScholes\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6ZgoUeZElthUwf1lkQibh0cP4sA&#39;;return true;">http://twitter.com/JamesScholes

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.