Re: [pygtk] Windows all in one bundle broken?
I sent you the attachment. Something weird. Running http://www.optionexplicit.be/projects/gnome-windows/20110405 under depends.exe also produces the same output. But when I run it from the command line, all is well. ? On Sat, Jul 23, 2011 at 10:08 AM, Dieter Verfaillie diet...@optionexplicit.be wrote: On 22/07/2011 22:34, Mathew Yeates wrote: We'll need a bit more information to be able to help you: 1) How do you execute glade-3.exe? Via the shortcut the installer created in the start menu or some other method? No item was added to the Start Menu. Glade-3.6 is still shown though. Should I uninstall the old Glade? That's strange. There should be an entry like this: https://github.com/dieterv/pygtk-installer/wiki/screenshots/2.22.4/5-programmenu.png 2) What does your PATH environment variable look like? open a Command Prompt aka cmd.exe and execute echo %PATH% It's pretty long. I'll post it last Here is my path C:\l1b\src\l1b32\Debug;c:\Python27;C:\Python26\Lib\site-packages\PyQt4;C:\WINDOW S\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Program Files (x86)\SlikSvn\bi n\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Mercurial;C:\Pyt hon25\DLLs;C:\Program Files (x86)\GTK2-Runtime\bin;C:\Program Files (x86)\Ration al\common;c:\Python27;C:\Python-2.7.1\PC\VS7.1;C:\l1b\src\l1b32\Debug;c:\Python2 7;C:\Python26\Lib\site-packages\PyQt4;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\ system32\WBEM;C:\Program Files (x86)\SlikSvn\bin\;c:\Program Files (x86)\Microso ft SQL Server\100\Tools\Binn\;c:\Program Files (x86)\Microsoft SQL Server\100\DT S\Binn\;C:\Program Files (x86)\Mercurial;C:\Python25\DLLs;C:\Program Files (x86) \GTK2-Runtime\bin;C:\Program Files (x86)\IBM\RationalPurifyPlus\Common;C:\l1b\sr c\l1b32\Debug;c:\g77\bin;C:\Program Files\MySQL\MySQL Server 5.1\bin;c:\python27 ;c:\python26;C:\Python25;C:\Python25\Scripts;C:\Program Files (x86)\Gtk+\bin;C:\ Program Files (x86)\CVSNT\;C:\abs\bin;C:\Program Files (x86)\GIMP-2.0\bin Don't see anything too weird in there. 3) Where is Python 2.7 installed? c:\Python27 4) Assuming Python 2.7 is installed in C:\Python27, does C:\Python27\Lib\site-packages\gtk-2.0\runtime\bin actually contain glade-3.exe? yes. 5) Open the attached clean.py script in your favorite text editor and edit the paths on line 7 and 8 to correspond to the values applicable on your system. Then run the script. Does the script output any values? Nope. btw, I run glade by typing .\glade-3.exe in the directory C:\Python27\Lib\site-packages\gtk-2.0\runtime\bin producing The system cannot execute the specified program. Looks good. Next step: - launch a Command Prompt (aka cmd.exe) - start depends.exe [1] from the Command Prompt, for example type C:\depends.exe and then hit the return or enter key - FileOpenC:\Python27\Lib\site-packages\gtk-2.0\runtime\bin\glade-3.exe - hit F7 - check all the checkboxes - click OK - Glade now starts. And will crash like you've described above - Back in Dependency Walker click FileSave As...glade-3.dwi - Upload the (compressed!) glade-3.dwi file somewhere and let us know where we can get it or mail the file directly to me (don't try to post it on the mailinglist, you message will be rejected due to the attachment being too big...) mvg, Dieter [1] http://www.dependencywalker.com/depends22_x86.zip ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
Re: [pygtk] Windows all in one bundle broken?
Hi, On 25/07/2011 18:57, Mathew Yeates wrote: I sent you the attachment. Something weird. Running http://www.optionexplicit.be/projects/gnome-windows/20110405 under depends.exe also produces the same output. But when I run it from the command line, all is well. ? The glade-3.dwi file you've sent tells me all .dll files loaded from c:\windows\system32 (kernel32, ntdll, msvcrt, advapi32, etc) are 64 bit images. That can't be right? Are you sure you're using the x86 version of dependency walker [1]? Thanks, Dieter [1] http://www.dependencywalker.com/depends22_x86.zip ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
[pygtk] Drag and drop in PyGI
Hi, I'm migrating an application to Python 3, GTK+ 3 and the PyGI bindings. I'm having trouble with drag and drop, which I would need for opening files dragged from a file browser. I have the following minimal example, which I have translated my old code to the new APIs, but it doesn't seem to work. The Window is not receiving any drag events. Am I using Gtk.TargetEntry and friends correctly? #!/usr/bin/env python3 from gi.repository import Gdk from gi.repository import Gtk window = Gtk.Window() window.drag_dest_set(Gtk.DestDefaults.ALL, [Gtk.TargetEntry.new(text/uri-list, 0, 0)], Gdk.DragAction.COPY) window.connect(drag-data-received, lambda *args: print(args)) window.resize(500, 500) window.show_all() window.connect(delete-event, Gtk.main_quit) Gtk.main() -- Osmo Salomaa otsal...@iki.fi ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
Re: [pygtk] Windows all in one bundle broken?
On 25/07/2011 19:28, Dieter Verfaillie wrote: The glade-3.dwi file you've sent tells me all .dll files loaded from c:\windows\system32 (kernel32, ntdll, msvcrt, advapi32, etc) are 64 bit images. That can't be right? Are you sure you're using the x86 version of dependency walker? For those following on the list: I've received the .dwi file written by the x86 version of depends.exe. Had a look at it and it seems your windows installation is having a problem with the glade-3.exe.manifest file included with the Glade component of the PyGTK All-in-one installer. I think that means your system is missing a shared installation of the Microsoft.VC90.CRT version 9.0.21022.8. Here's in detail what I think is happening: - the glade-3 version distributed with the aio installer is built with Python widgets support. That means there's a C:\Python27\Lib\site-packages\gtk-2.0\runtime\lib\glade3\modules\libgladepython.dll - when this version of glade-3.exe is started, the above libgladepython.dll is loaded - and libgladepython.dll is loading pyton27.dll - python27.dll depends on a specific version of a CRT: msvcr90.dll (version 9.0.21022.8). - but because python27.dll is not being loaded through python(w).exe the copies of msvcr90.dll and Microsoft.VC90.CRT.manifest that live right next to python(w).exe in C:\Python27 are not used. Because of that, a shared copy is searched and when not found you get the error you are seeing (I think). This also explains why the glade3-bundle from [1], when extracted to for example C:\glade works fine out of the box: there is no Python dependency in that configuration of Glade, thus by definition no need for a glade-3.exe.manifest file and no dependency on msvcr90.dll (in other words, that version depends purely on msvcrt.dll). Could you try installing the Microsoft Visual C++ 2008 Redistributable Package (x86) [2], reboot and see what happens? Also, don't be tempted by the link to the SP1 version on that page, you need exactly version 9.0.21022.8 ! mvg, Dieter [1] http://www.optionexplicit.be/projects/gnome-windows/20110405 [2] http://www.microsoft.com/download/en/details.aspx?displaylang=enid=29 ps Uh, this is why it's called DLL Hell... ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
Re: [pygtk] Windows all in one bundle broken?
hmmm. I already have VS 2008 (Express) but it's not the version you want. Uninstall and reinstall? -Mathew On Mon, Jul 25, 2011 at 7:05 PM, Dieter Verfaillie diet...@optionexplicit.be wrote: On 25/07/2011 19:28, Dieter Verfaillie wrote: The glade-3.dwi file you've sent tells me all .dll files loaded from c:\windows\system32 (kernel32, ntdll, msvcrt, advapi32, etc) are 64 bit images. That can't be right? Are you sure you're using the x86 version of dependency walker? For those following on the list: I've received the .dwi file written by the x86 version of depends.exe. Had a look at it and it seems your windows installation is having a problem with the glade-3.exe.manifest file included with the Glade component of the PyGTK All-in-one installer. I think that means your system is missing a shared installation of the Microsoft.VC90.CRT version 9.0.21022.8. Here's in detail what I think is happening: - the glade-3 version distributed with the aio installer is built with Python widgets support. That means there's a C:\Python27\Lib\site-packages\gtk-2.0\runtime\lib\glade3\modules\libgladepython.dll - when this version of glade-3.exe is started, the above libgladepython.dll is loaded - and libgladepython.dll is loading pyton27.dll - python27.dll depends on a specific version of a CRT: msvcr90.dll (version 9.0.21022.8). - but because python27.dll is not being loaded through python(w).exe the copies of msvcr90.dll and Microsoft.VC90.CRT.manifest that live right next to python(w).exe in C:\Python27 are not used. Because of that, a shared copy is searched and when not found you get the error you are seeing (I think). This also explains why the glade3-bundle from [1], when extracted to for example C:\glade works fine out of the box: there is no Python dependency in that configuration of Glade, thus by definition no need for a glade-3.exe.manifest file and no dependency on msvcr90.dll (in other words, that version depends purely on msvcrt.dll). Could you try installing the Microsoft Visual C++ 2008 Redistributable Package (x86) [2], reboot and see what happens? Also, don't be tempted by the link to the SP1 version on that page, you need exactly version 9.0.21022.8 ! mvg, Dieter [1] http://www.optionexplicit.be/projects/gnome-windows/20110405 [2] http://www.microsoft.com/download/en/details.aspx?displaylang=enid=29 ps Uh, this is why it's called DLL Hell... ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
Re: [pygtk] Windows all in one bundle broken?
On 25/07/2011 21:29, Mathew Yeates wrote: hmmm. I already have VS 2008 (Express) but it's not the version you want. Uninstall and reinstall? No need to uninstall Visual Studio. Simply try the (exact version of the) C++ Redistributable linked below... mvg, Dieter [2] http://www.microsoft.com/download/en/details.aspx?displaylang=enid=29 ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
[pygtk] py2exe only support python2.5
I google a lot to solve my py2exe's exe program coming from pygtk,my python version is 2.6,but someone say py2exe can only work in python2.5,so does anyone have such suffer?___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/