Hello, The client works from the sources. When I run the tryton file in the bin folder (Python tryton) everything works fine. Its just when I use py2exe that the resulting exe file does not work.
This is the error I am getting on py2exe even though it continues afterwards *** copy extensions *** *** copy dlls *** *** copy data files *** copying C:\Python27\lib\py2exe\run_w.exe -> C:\Users\*****************************\tryton-3.8.8\dist\tryton.exe The following modules appear to be missing ['Carbon', 'Carbon.Files', 'ElementC14N', '_cairo', '_scproxy', '_speedups', '_sysconfigdata', 'cdecimal', 'dateutil.parser', 'dateutil.relativedelta', 'dateutil.tz', 'gdk', 'glib._glib', 'gobject._gobject', 'goocalendar', 'gtkosx_application', 'gtkspell', 'importlib._bootstrap', 'importlib.reload', 'packaging.specifiers', 'packaging.version', 'resource', 'simplejson._speedups', 'unix', 'urllib.parse', 'win32pipe', 'winreg', 'glib.GError', 'glib.IOChannel', 'glib.IO_ERR', 'glib.IO_FLAG_APPEND', 'glib.IO_FLAG_GET_MASK', 'glib.IO_FLAG_IS_READABLE', 'glib.IO_FLAG_IS_SEEKABLE', 'glib.IO_FLAG_IS_WRITEABLE', 'glib.IO_FLAG_MASK', 'glib.IO_FLAG_NONBLOCK', 'glib.IO_FLAG_SET_MASK', 'glib.IO_HUP', 'glib.IO_IN', 'glib.IO_NVAL', 'glib.IO_OUT', 'glib.IO_PRI', 'glib.IO_STATUS_AGAIN', 'glib.IO_STATUS_EOF', 'glib.IO_STATUS_ERROR', 'glib.IO_STATUS_NORMAL', 'glib.Idle', 'glib.MainContext', 'glib.MainLoop', 'glib.OPTION_ERROR', 'glib.OPTION_ERROR_BAD_VALUE', 'glib.OPTION_ERROR_FAILED', 'glib.OPTION_ERROR_UNKNOWN_OPTION', 'glib.OPTION_FLAG_FILENAME', 'glib.OPTION_FLAG_HIDDEN', 'glib.OPTION_FLAG_IN_MAIN', 'glib.OPTION_FLAG_NOALIAS', 'glib.OPTION_FLAG_NO_ARG', 'glib.OPTION_FLAG_OPTIONAL_ARG', 'glib.OPTION_FLAG_REVERSE', 'glib.OPTION_REMAINING', 'glib.OptionContext', 'glib.OptionGroup', 'glib.PRIORITY_DEFAULT', 'glib.PRIORITY_DEFAULT_IDLE', 'glib.PRIORITY_HIGH', 'glib.PRIORITY_HIGH_IDLE', 'glib.PRIORITY_LOW', 'glib.Pid', 'glib.PollFD', 'glib.SPAWN_CHILD_INHERITS_STDIN', 'glib.SPAWN_DO_NOT_REAP_CHILD', 'glib.SPAWN_FILE_AND_ARGV_ZERO', 'glib.SPAWN_LEAVE_DESCRIPTORS_OPEN', 'glib.SPAWN_SEARCH_PATH', 'glib.SPAWN_STDERR_TO_DEV_NULL', 'glib.SPAWN_STDOUT_TO_DEV_NULL', 'glib.Source', 'glib.Timeout', 'glib.child_watch_add', 'glib.filename_display_basename', 'glib.filename_display_name', 'glib.filename_from_utf8', 'glib.get_application_name', 'glib.get_current_time', 'glib.get_prgname', 'glib.glib_version', 'glib.idle_add', 'glib.io_add_watch', 'glib.main_context_default', 'glib.main_depth', 'glib.markup_escape_text', 'glib.set_application_name', 'glib.set_prgname', 'glib.source_remove', 'glib.spawn_async', 'glib.timeout_add', 'glib.timeout_add_seconds', 'glib.uri_list_extract_uris'] *** binary dependencies *** Your executable(s) also depend on these dlls which are not included, you may or may not need to distribute them. Make sure you have the license if you distribute any of them, and make sure you don't distribute files belonging to the operating system. OLEAUT32.dll - C:\WINDOWS\system32\OLEAUT32.dll USER32.dll - C:\WINDOWS\system32\USER32.dll COMCTL32.DLL - C:\WINDOWS\system32\COMCTL32.DLL SHELL32.DLL - C:\WINDOWS\system32\SHELL32.DLL OLE32.dll - C:\WINDOWS\system32\OLE32.dll SHLWAPI.DLL - C:\WINDOWS\system32\SHLWAPI.DLL COMDLG32.DLL - C:\WINDOWS\system32\COMDLG32.DLL ADVAPI32.DLL - C:\WINDOWS\system32\ADVAPI32.DLL msvcrt.dll - C:\WINDOWS\system32\msvcrt.dll WS2_32.dll - C:\WINDOWS\system32\WS2_32.dll WINSPOOL.DRV - C:\WINDOWS\system32\WINSPOOL.DRV GDI32.dll - C:\WINDOWS\system32\GDI32.dll IMM32.DLL - C:\WINDOWS\system32\IMM32.DLL libxml2-2.dll - C:\Python27\lib\site-packages\gtk-2.0\runtime\bin\libxml2-2.dll KERNEL32.dll - C:\WINDOWS\system32\KERNEL32.dll gdiplus.dll - C:\WINDOWS\system32\gdiplus.dll I have Python 27, py2exe, & pygtk all in one Alex On Thursday, November 17, 2016 at 2:15:04 PM UTC+1, Cédric Krier wrote: > On 2016-11-16 04:23, Alexander Davis wrote: > > Hello, > > > > First of all i would like to thank the developers for such a great > project. > > I have a question with regards to compiling to a onefile exe... > > > > I am basically editing the sources to produce a simpler Tryton client > where > > the server is automatically selected and all the user would need todo is > > login with their credentials, that and i edited the png files in the > pixmap > > folders. NOW, when i build and install then run the tryton file in the > bin > > folder via Python 2.7, everything works fine. However, if i use Py2exe > to > > make a onefile and a setup file then things start getting pear-shaped. > > > > The compiling works fine with some warnings about missing modules but > the > > exe produced does not run. It shows up on the task manager for a couple > of > > seconds then it closes. What i also noticed in the modules missing > warning > > is that it is not finding modules that should be already installed! > > > > So i was wondering if there is an official step by step guide to compile > > the tryton client into a windows executable so i know what i am doing > > wrong. I found one that was very vague in Spanish and i followed the > steps > > but no results unfortunately. > > The first thing to test is that you can run the client from sources. > After that, if you still have crash when running the client, you must > try with the verbose option to get logs of the error. > > -- > Cédric Krier - B2CK SPRL > Email/Jabber: [email protected] <javascript:> > Tel: +32 472 54 46 59 > Website: http://www.b2ck.com/ > -- You received this message because you are subscribed to the Google Groups "tryton" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/bada059c-319b-49b2-ab51-babbadca07b2%40googlegroups.com.
