Re: Bundling GTK3+ with cx_freeze



On 03/03/2014 12:06 AM, Doris Andreea wrote:
Platform is Windows 7 64bit using python 2.7 and GTK3 installed
from http://games.2g2s.de/?page_id=223 and PyGobject from
here http://sourceforge.net/projects/pygobjectwin32/files/?source=navbar

I used the script provided on
wiki https://wiki.gnome.org/Projects/PyGObject#Building_on_Win32_with_cx_freeze


    |Traceback (most recent call last):
      File "C:\Python27\lib\site-packages\cx_Freeze\initscripts\Console.py", in <module>
        exec code in m.__dict__
      File "materii.py", line 2, in <module>
      File "C:\Python27\lib\site-packages\gi\__init__.py", line 27, in <module>
        from ._gi import _API
      File "ExtensionLoader_gi__gi.py", line 22, in <module>
      File "ExtensionLoader_gi__gi.py", line 14, in __bootstrap__
    ImportError: DLL load failed: The specified module could not be found.|


 Line 2 from materii.py is


|from gi.repository import Gtk|

Can you help me please?

You need to have the GTK dlls in your PATH. os.environ['PATH'] at the
begining of your script before importing GTK

-- 
Yann


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]