Natalia Beatriz Bidart <[EMAIL PROTECTED]> wrote:

> I've tried to build a onedir executable. First problem arised with the
> import of cairo made by gtk module: I had to add to hook-gtk.py the
> hidden imports of 'cairo' and 'pangocairo' (see ticket #43 please).

I'll merge that ASAP, on your work. I have no experience whatsoever with
PyGtk, so I trust you they are really hidden imports and not bugs in the
dependency tracking code of PyInstaller.

> Then, when I ran the exe I've got:
>
> C:\pyinstaller_1.1\Demo\distDemo\Demo.exe:81: PangoWarning: No builtin or
> dynami cally loaded modules were found. Pango will not work correctly.
This
> probably means
> there was an error in the creation of:
>   'C:\pyinstaller_1.1\Demo\distDemo\etc\pango\pango.modules'
> You may be able to recreate this file by running pango-querymodules.
>
> So I obviuosly need the pango.modules file under etc/pango directory.
> I ran the pango-querymodules command and I wrote the output in a file,
> and place them under
> C:\pyinstaller_1.1\Demo\distDemo\etc\pango\pango.modules.
> With this done I've finally got my app running, but the paths written
> in pango.modules point to GTK installation :-(. No good if I want to
> take that to a machine with no gtk at all.

I fear I can't really help you because, as I said, I know nothing of PyGtk.
One suggestion I can give you is that the warning message seems to hint at a
way to have "builtin modules". Maybe you should investigate in that
direction. Also, most of these libraries usually allow to specify the
directory where configuration settings can be found (with "etc/pango" being
the default), so that you don't have to exactly replicate the same setup.

If you get something working, please get back to us. I would like to
incorporate this information in our FAQ.
-- 
Giovanni Bajo

_______________________________________________
PyInstaller mailing list
[email protected]
http://lists.hpcf.upr.edu/mailman/listinfo/pyinstaller

Reply via email to