Hi,
copying the gtk directory into the dist directory created by pyinstaller
works for me. Though I am not sure this is the optimal solution for this.
cp -r /home/kuanpern/.wine/drive_c/Python26/Lib/site-packages/gtk-2.0/ dist/
(I work with wine here)
Kuan Pern
On Thursday, January 24, 2013 6:52:30 AM UTC+8, eL_vErDe wrote:
>
> Hi,
>
> After building my application it just crashes saying it can't import
> glib._glib.
> Here is the startup log and a "dir" showing the right file seems to exist.
>
> Any suggestions ? I'm kinda stuck...
>
> Thanks in advance,
>
> Adam.
>
> On 23/01/2013 23:43, Adam Cécile (Le_Vert) wrote:
> > C:\Users\gandalf\Desktop\nicotine\dist\nicotine>nicotine.exe
> > _MEIPASS2 is NULL
> > archivename is
> > C:\Users\gandalf\Desktop\nicotine\dist\nicotine\nicotine.exe
> > Extracting binaries
> > Executing self as child with Setting up to run child
> > Creating child process
> > Waiting for child process to finish...
> > _MEIPASS2 is C:/Users/gandalf/AppData/Local/Temp/_MEI25762/
> > archivename is
> > C:\Users\gandalf\Desktop\nicotine\dist\nicotine\nicotine.exe
> > Already in the child - running!
> > manifestpath:
> > C:/Users/gandalf/AppData/Local/Temp/_MEI25762/nicotine.exe.manifes
> > t
> > Error activating the context
> > C:\Users\gandalf\Desktop\nicotine\dist\nicotine\python27.dll
> > Manipulating evironment
> >
> PYTHONPATH=C:/Users/gandalf/AppData/Local/Temp/_MEI25762;C:/Users/gandalf/Deskto
>
>
> >
> > p/nicotine/dist/nicotine
> > PYTHONHOME=C:/Users/gandalf/AppData/Local/Temp/_MEI25762/
> > importing modules from CArchive
> > extracted iu
> > extracted struct
> > extracted archive
> > Installing import hooks
> > out00-PYZ.pyz
> > Running scripts
> > Traceback (most recent call last):
> > File "<string>", line 276, in <module>
> > File "<string>", line 258, in run
> > File "<string>", line 113, in checkenv
> > File
> > "C:\Users\gandalf\Desktop\pyinstaller-2.0\PyInstaller\loader\iu.py",
> line
> > 386, in importHook
> > mod = _self_doimport(nm, ctx, fqname)
> > File
> > "C:\Users\gandalf\Desktop\pyinstaller-2.0\PyInstaller\loader\iu.py",
> line
> > 480, in doimport
> > exec co in mod.__dict__
> > File
> >
> "C:\Users\gandalf\Desktop\nicotine\build\pyi.win32\nicotine\out00-PYZ.pyz
> > \gtk", line 30, in <module>
> > File
> > "C:\Users\gandalf\Desktop\pyinstaller-2.0\PyInstaller\loader\iu.py",
> line
> > 386, in importHook
> > mod = _self_doimport(nm, ctx, fqname)
> > File
> > "C:\Users\gandalf\Desktop\pyinstaller-2.0\PyInstaller\loader\iu.py",
> line
> > 480, in doimport
> > exec co in mod.__dict__
> > File
> >
> "C:\Users\gandalf\Desktop\nicotine\build\pyi.win32\nicotine\out00-PYZ.pyz
> > \gobject", line 26, in <module>
> > File
> > "C:\Users\gandalf\Desktop\pyinstaller-2.0\PyInstaller\loader\iu.py",
> line
> > 386, in importHook
> > mod = _self_doimport(nm, ctx, fqname)
> > File
> > "C:\Users\gandalf\Desktop\pyinstaller-2.0\PyInstaller\loader\iu.py",
> line
> > 480, in doimport
> > exec co in mod.__dict__
> > File
> >
> "C:\Users\gandalf\Desktop\nicotine\build\pyi.win32\nicotine\out00-PYZ.pyz
> > \glib", line 22, in <module>
> > File
> > "C:\Users\gandalf\Desktop\pyinstaller-2.0\PyInstaller\loader\iu.py",
> line
> > 409, in importHook
> > raise ImportError("No module named %s" % fqname)
> > ImportError: No module named glib._glib
> > OK.
> > Deactivating activation context
> > Releasing activation context
> > Done
> > Back to parent...
> > Freeing status for
> > C:\Users\gandalf\Desktop\nicotine\dist\nicotine\nicotine.exe
> >
> > C:\Users\gandalf\Desktop\nicotine\dist\nicotine>dir *glib*
> > Volume in drive C has no label.
> > Volume Serial Number is 24FB-47D9
> >
> > Directory of C:\Users\gandalf\Desktop\nicotine\dist\nicotine
> >
> > 09/04/2011 08:59 58 368 glib._glib.pyd
> > 08/02/2012 23:51 1 242 929 libglib-2.0-0.dll
> > 2 File(s) 1 301 297 bytes
> > 0 Dir(s) 26 342 510 592 bytes free
> >
> > C:\Users\gandalf\Desktop\nicotine\dist\nicotine>
>
>
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.