I updated guidelines following your suggestions…
About the bug, this is very strange… after building Tryton with cx_Freeze 5.0.2, i updated cx_Freeze to 5.1.1 and building Tryton was still working without any error! I made some tests, error is happening when building directly with cx_Freeze 5.1.1, if you build with previous version 5.0.2 and then update to 5.1.1 building the same Tryton folder is ok.
I made a comparison between Tryton folder build with 5.02 and Tryton folder build with 5.1.1 but can’t find which file is causing the error ( https://snag.gy/pl3G7P.jpg )
I made a comparison between dist folder (with tryton.exe working) and another one recreated with cx_freeze 5.1.1 (tryton.exe not working): there’s no difference ! There’s no _gi.dll file in the both dist directory. So for me the only difference is in the generated tryton.exe file.
I forget to add dll comparison in Meld
Missing dll’s are : LIBEAY32.dll, SSLEAY32.dll, libgdk-win32-2.0-0.dll, libgirepository-1.0-1.dll, libgthread-2.0-0.dll, libgtk-win32-2.0-0.dll, libjasper-4.dll, libjpeg-8.dll, libpyglib-2.0-python2-0.dll, libtiff-5.dll
If i copy LIBEAY32.dll, SSLEAY32.dll, libgirepository-1.0-1.dll, into dist (5.1.1), tryton.exe is now working!
All thoses files are in /dist/lib directory and should be in /dist directory. Don’t know if problem is from generated setup-freeze.py or from cx_Freeze ?
Latest tryton client is using python3 as a requirement.
Can this be updated to python3 ?
Otherwise, how can one build latest tryton client on windows ?
new error
running compile_catalog
compiling catalog tryton/data/locale/bg/LC_MESSAGES/tryton.po to tryton/data/locale/bg/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/ca/LC_MESSAGES/tryton.po to tryton/data/locale/ca/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/cs/LC_MESSAGES/tryton.po to tryton/data/locale/cs/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/de/LC_MESSAGES/tryton.po to tryton/data/locale/de/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/es/LC_MESSAGES/tryton.po to tryton/data/locale/es/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/es_419/LC_MESSAGES/tryton.po to tryton/data/locale/es_419/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/fa/LC_MESSAGES/tryton.po to tryton/data/locale/fa/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/fr/LC_MESSAGES/tryton.po to tryton/data/locale/fr/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/hu_HU/LC_MESSAGES/tryton.po to tryton/data/locale/hu_HU/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/it_IT/LC_MESSAGES/tryton.po to tryton/data/locale/it_IT/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/ja_JP/LC_MESSAGES/tryton.po to tryton/data/locale/ja_JP/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/lo/LC_MESSAGES/tryton.po to tryton/data/locale/lo/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/lt/LC_MESSAGES/tryton.po to tryton/data/locale/lt/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/nl/LC_MESSAGES/tryton.po to tryton/data/locale/nl/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/pl/LC_MESSAGES/tryton.po to tryton/data/locale/pl/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/pt_BR/LC_MESSAGES/tryton.po to tryton/data/locale/pt_BR/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/ru/LC_MESSAGES/tryton.po to tryton/data/locale/ru/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/sl/LC_MESSAGES/tryton.po to tryton/data/locale/sl/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/zh_CN/LC_MESSAGES/tryton.po to tryton/data/locale/zh_CN/LC_MESSAGES/tryton.mo
Traceback (most recent call last):
File “setup-freeze.py”, line 5, in
import user
ModuleNotFoundError: No module named ‘user’
It looks like you are building with Python3 a version prior to 5.0 which does not support without tryton: ab5658e40e22
The user module was used to load ~/.pythonrc.py to setup custom environment variables.
now this
running compile_catalog
compiling catalog tryton/data/locale/bg/LC_MESSAGES/tryton.po to tryton/data/locale/bg/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/ca/LC_MESSAGES/tryton.po to tryton/data/locale/ca/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/cs/LC_MESSAGES/tryton.po to tryton/data/locale/cs/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/de/LC_MESSAGES/tryton.po to tryton/data/locale/de/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/es/LC_MESSAGES/tryton.po to tryton/data/locale/es/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/es_419/LC_MESSAGES/tryton.po to tryton/data/locale/es_419/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/fa/LC_MESSAGES/tryton.po to tryton/data/locale/fa/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/fr/LC_MESSAGES/tryton.po to tryton/data/locale/fr/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/hu_HU/LC_MESSAGES/tryton.po to tryton/data/locale/hu_HU/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/it_IT/LC_MESSAGES/tryton.po to tryton/data/locale/it_IT/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/ja_JP/LC_MESSAGES/tryton.po to tryton/data/locale/ja_JP/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/lo/LC_MESSAGES/tryton.po to tryton/data/locale/lo/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/lt/LC_MESSAGES/tryton.po to tryton/data/locale/lt/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/nl/LC_MESSAGES/tryton.po to tryton/data/locale/nl/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/pl/LC_MESSAGES/tryton.po to tryton/data/locale/pl/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/pt_BR/LC_MESSAGES/tryton.po to tryton/data/locale/pt_BR/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/ru/LC_MESSAGES/tryton.po to tryton/data/locale/ru/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/sl/LC_MESSAGES/tryton.po to tryton/data/locale/sl/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/zh_CN/LC_MESSAGES/tryton.po to tryton/data/locale/zh_CN/LC_MESSAGES/tryton.mo
Traceback (most recent call last):
File “setup-freeze.py”, line 8, in
from cx_Freeze import setup, Executable
ModuleNotFoundError: No module named ‘cx_Freeze’
after building i tried to build with 5.0.4
i got this
$ sh make-win32-installer.sh
running compile_catalog
compiling catalog tryton/data/locale/bg/LC_MESSAGES/tryton.po to tryton/data/locale/bg/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/ca/LC_MESSAGES/tryton.po to tryton/data/locale/ca/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/cs/LC_MESSAGES/tryton.po to tryton/data/locale/cs/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/de/LC_MESSAGES/tryton.po to tryton/data/locale/de/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/es/LC_MESSAGES/tryton.po to tryton/data/locale/es/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/es_419/LC_MESSAGES/tryton.po to tryton/data/locale/es_419/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/fa/LC_MESSAGES/tryton.po to tryton/data/locale/fa/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/fr/LC_MESSAGES/tryton.po to tryton/data/locale/fr/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/hu_HU/LC_MESSAGES/tryton.po to tryton/data/locale/hu_HU/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/it_IT/LC_MESSAGES/tryton.po to tryton/data/locale/it_IT/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/ja_JP/LC_MESSAGES/tryton.po to tryton/data/locale/ja_JP/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/lo/LC_MESSAGES/tryton.po to tryton/data/locale/lo/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/lt/LC_MESSAGES/tryton.po to tryton/data/locale/lt/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/nl/LC_MESSAGES/tryton.po to tryton/data/locale/nl/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/pl/LC_MESSAGES/tryton.po to tryton/data/locale/pl/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/pt_BR/LC_MESSAGES/tryton.po to tryton/data/locale/pt_BR/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/ru/LC_MESSAGES/tryton.po to tryton/data/locale/ru/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/sl/LC_MESSAGES/tryton.po to tryton/data/locale/sl/LC_MESSAGES/tryton.mo
compiling catalog tryton/data/locale/zh_CN/LC_MESSAGES/tryton.po to tryton/data/locale/zh_CN/LC_MESSAGES/tryton.mo
Traceback (most recent call last):
File “./setup-freeze.py”, line 75, in
with open(gir_file, ‘r’, encoding=‘utf-8’) as src:
FileNotFoundError: [Errno 2] No such file or directory: ‘/usr/share/gir-1.0/Atk-1.0.gir’