Hello!

I'm trying to use PyInstaller to encapsulate a Python application made up of different technologies, like PyGtk, PyGtkGlExt, PyOpengl.

I had a problem with pangocairo, but I resolved thanks to old list messages.

Now, after using PyInstaller, a main.exe is created but I have this error:

Fatal Python error: can't initialize module gtk.gtkgl

My warnmain.txt contains following code.

W: no module named posix (conditional import by os)
W: no module named gdk (top-level import by gtk)
W: no module named gtk.gdk (top-level import by Primitive.PrimitiveInterfaccia )
W: no module named gtk.gdk (top-level import by Interfaccia.InterfacciaChiamata)
W: no module named ltihooks (top-level import by gtk)
W: no module named ltihooks (top-level import by gobject)
W: no module named pwd (delayed, conditional import by posixpath)
W: no module named Numeric (top-level import by OpenGL.GL.GL__init__)
W: no module named gtk.gdk (top-level import by Interfaccia.InterfacciaTondino)
W: no module named OpenGL.GLU.gluPickMatrix (delayed import by OpenGL.GL.GL__init__)
W: no module named gtk.gdk (top-level import by Interfaccia.InterfacciaOggetto)
W: no module named gtk.gdk (top-level import by Interfaccia.InterfacciaListaferri)
W: no module named posix (delayed, conditional import by iu)
W: no module named gtk.gdk (top-level import by Interfaccia.InterfacciaMuro)
W: no module named org (top-level import by copy)
W: no module named _emx_link (conditional import by os)
W: no module named gtk.gdk (top-level import by Interfaccia.InterfacciaNavigatore)
W: no module named gtk.gdk (top-level import by Interfaccia.InterfacciaFerro)
W: __all__ is built strangely at line 0 - dis (C:\Marco\Python24\lib\dis.pyc)
W: __all__ is built strangely at line 0 - tokenize (C:\Marco\Python24\lib\tokenize.pyc)
W: delayed  __import__ hack detected at line 0 - encodings (C:\Marco\Python24\lib\encodings\__init__.pyc)
W: __all__ is built strangely at line 0 - re (C:\Marco\Python24\lib\re.pyc)
W: delayed conditional eval hack detected at line 0 - warnings (C:\Marco\Python24\lib\warnings.pyc)
W: delayed conditional __import__ hack detected at line 0 - warnings (C:\Marco\Python24\lib\warnings.pyc)
W: delayed conditional exec statement detected at line 0 - iu (C:\Marco\workspace\ pyinstaller_1.2\iu.pyc)
W: delayed conditional exec statement detected at line 0 - iu (C:\Marco\workspace\pyinstaller_1.2\iu.pyc)
W: delayed  eval hack detected at line 0 - os (C:\Marco\Python24\lib\os.pyc)
W: __all__ is built strangely at line 0 - __future__ (C:\Marco\Python24\lib\__future__.pyc)

I thought it is a case of hidden hooking, but I tried, without good results.

Can anybody help me ?
Thanks also if you don't answer!

I resolved my problem using the hook hook-gtk.py in this way:


hiddenimports = ['gtkglext','gdkgl','gdkglext', 'gdk','gtk.gdk','gtk.gtkgl','gtk.gtkgl._gtkgl','gtkgl','pangocairo','pango', 'atk', 'gobject', 'gtk.glade','cairo']
 




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

Reply via email to