tryton PangoWarning: dlopen(/Users/gtkosxbuilder/gtk/inst/lib/pango/1.8.0/modules/@executable_path/../Resources/lib/pango/1.8.0/modules/pango-basic-coretext.so, 2) with Mac OS X
I successfuly built a Mac OS X Tryton client following instructions on the wiki.
Versions used:
Tryton 2.4
Mac OS X 10.8.2 (Mountain Lion)
python 2.7.3
setuptools 0.6c11
py2app 0.7.2
But when I run Tryton with:
ARGVZERO='/Applications/Tryton.app/Contents/MacOS/Tryton'
RESOURCEPATH='/Applications/Tryton.app/Contents/Resources/'
/Applications/Tryton.app/Contents/MacOS/Tryton
an error occurs:
[...]
/Applications/Tryton.app/Contents/Resources/lib/python2.7/site-packages.zip/tryton/gui/main.py:163:
PangoWarning:
dlopen(/Users/gtkosxbuilder/gtk/inst/lib/pango/1.8.0/modules/@executable_path/../Resources/lib/pango/1.8.0/modules/pango-basic-coretext.so,
2): image not found
/Applications/Tryton.app/Contents/Resources/lib/python2.7/site-packages.zip/tryton/gui/main.py:163:
PangoWarning: failed to choose a font, expect ugly output.
engine-type='PangoRenderCoreText', script='latin'
/Applications/Tryton.app/Contents/Resources/lib/python2.7/site-packages.zip/tryton/gui/main.py:163:
PangoWarning: failed to choose a font, expect ugly output.
engine-type='PangoRenderCoreText', script='common'
Removing "ModuleFiles=./pango.modules" from pangorc file fix this error:
review610002 (when pangorc file doesn't exist a warning is displayed).
Note "pango.modules" file seems useless: Tryton works fine without this file.
I ask to py2app maintainer why ARGVZERO & RESOURCEPATH environment variables are
needed (https://bitbucket.org/ronaldoussoren/py2app/issue/81/).