Hi.
I created an executable for Linux with PyInstaller, which has the
following code to gtk+2:
---
CODE-----------------------------------------------------------------
import gtk
class App:
def __init__(self):
self.ventana = gtk.Window()
self.ventana.show()
self.ventana.connect("destroy", gtk.main_quit)
App()
gtk.main
-----------------------------------------------------------------------------
The name of the script is test.py.
To compile the script, execute the following instructions:
python Configure.py
python Makespec.py --onefile /home/cris/Desktop/test.py
python Build.py /home/cris/Desktop/pyinstaller-1.5.1/test/test.spec
Then, the executable is created and I can run it without problems.
Now, if I enable the code for gtk+3, changing it:
--------
CODE-------------------------------------------------------------
from gi.repository import Gtk
class App:
def __init__(self):
self.ventana = Gtk.Window()
self.ventana.show()
self.ventana.connect("destroy", Gtk.main_quit)
App()
Gtk.main
------------------------------------------------------------------------------
To compile the script, execute the following instructions:
python Configure.py
python Makespec.py --onefile /home/cris/Desktop/test.py
python Build.py /home/cris/Desktop/pyinstaller-1.5.1/test/test.spec
Then in the file warntest.txt get the following errors:
-------
ERROR------------------------------------------------------------
W: no module named gi._glib.io_add_watch (top-level import by
__main__)
W: no module named gi._glib.IO_IN (top-level import by __main__)
W: no module named gi._glib.IOChannel (top-level import by __main__)
W: no module named gi._glib.PRIORITY_HIGH_IDLE (top-level import by
__main__)
W: no module named gi._glib.glib_version (top-level import by
__main__)
W: no module named gi._glib.OPTION_FLAG_NO_ARG (top-level import by
__main__)
W: no module named gi._glib.uri_list_extract_uris (top-level import by
__main__)
W: no module named gi._glib.PRIORITY_LOW (top-level import by
__main__)
W: no module named gi._glib.IO_OUT (top-level import by __main__)
W: no module named gi._glib.SPAWN_STDERR_TO_DEV_NULL (top-level import
by __main__)
W: no module named gi._glib.OPTION_FLAG_IN_MAIN (top-level import by
__main__)
W: no module named gi._glib.Idle (top-level import by __main__)
W: no module named gi._glib.IO_STATUS_EOF (top-level import by
__main__)
W: no module named gi._glib.IO_STATUS_ERROR (top-level import by
__main__)
......more......
---------------------------------------------------------------------------------------------------------------------------------------------
Questions : There any intention of carrying Gtk+3 on PyInstaller?
Best Regards
Cris
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.