Re: Error in python-gtk running feed for diffuse.
<[email protected]> Thu, 21 Sep 2017 21:02:53 +0000
| Newsgroups | gmane.comp.file-systems.zero-install.devel |
|---|---|
| Message-ID | <E1FE65505B872347A5DE1BB83A95331E66265A9D@C111QVFHMBX74.ERF.thomson.com> |
Bastian,
I had python 2.7.13 and pygtk 2.24.2 both 32 bits.
I uninstalled them, meld and tortiosehg to get all python and GTK out of the path.
C:\Users\u0158518\Documents\zeroinstall>0install run diffuse.xml
Traceback (most recent call last):
File "C:\ProgramData\0install.net\implementations\sha256new_L2ZP7J4Y5Q3B7H6LH3DCU2I5DDJLXXRZTWVCCF67IDYGCJIVKFZA\src\usr\bin\diffuse", line 126, in <module>
import gtk
File "C:\ProgramData\0install.net\implementations\sha256new_5NQCQXEZAJRXGOM6H4Z4AXIBG4R7Z5RSBCRB5RFZHXNN2NMNIPTQ\gtk-2.0\gtk\__init__.py", line 30, in <module>
import gobject as _gobject
File "C:\ProgramData\0install.net\implementations\sha256new_GTWVISPUFHUCTTJGWC5PW2NYRWGSVES4HBRZ5O3H4K22S4UT5X4Q\gtk-2.0\gobject\__init__.py", line 26, in <module>
from glib import spawn_async, idle_add, timeout_add, timeout_add_seconds, \
File "C:\ProgramData\0install.net\implementations\sha256new_GTWVISPUFHUCTTJGWC5PW2NYRWGSVES4HBRZ5O3H4K22S4UT5X4Q\gtk-2.0\glib\__init__.py", line 22, in <module>
from glib._glib import *
ImportError: DLL load failed: The specified module could not be found.
I wonder what is different between my system and yours.
Phil
From: Bastian Eicher [mailto:[email protected]]
Sent: Wednesday, September 20, 2017 11:45 AM
To: 'The Zero Install system'
Subject: Re: [Zero-install-devel] Error in python-gtk running feed for diffuse.
Hi Philip,
curios, I just copy&pasted the feed you provided into a local file and ran "0install run" on it and the application launched fine.
Perhaps the locally installed Python + PyGTK added something DLL to the PATH that is causing the 0install version to misbehave.
Which version of Python and PyGTK do you have installed on your Windows Box? Are they 32-bit or 64-bit builds?
Regards
Bastian
From: [email protected]<mailto:[email protected]> [mailto:[email protected]]
Sent: Montag, 11. September 2017 17:44
To: [email protected]<mailto:[email protected]>
Subject: [Zero-install-devel] Error in python-gtk running feed for diffuse.
Zero installers,
I'm trying to make a feed for Diffuse.
I'm using window7.
I get an error from the command line, that seems to indicate that pygtk is trying to load a file that's not a DLL as a DLL.
I cant find any feeds that list pygtk as a dependency, even apps that say they are pygtk apps, so I'm wondering if anyone has actually packaged a python-gtk app with dependencies, that I could use as an example.
0publish-GUI, for instance doesn't list it and fails with "ImportError: No module named pygtk" when run. Its worked correctly on Linux for me though, so its a windows problem.
python C:\ProgramData\0install.net\implementations\sha256new_L2ZP7J4Y5Q3B7H6LH3DCU2I5DDJLXXRZTWVCCF67IDYGCJIVKFZA\src\usr\bin\diffuse.py
works as expected, because I have python 2.7 installed natively as well as python-gtk.
The error when run from the command line as an alias.
Traceback (most recent call last):
File "C:\ProgramData\0install.net\implementations\sha256new_L2ZP7J4Y5Q3B7H6LH3DCU2I5DDJLXXRZTWVCCF67IDYGCJIVKFZA\src\usr\bin\diffuse", line 126, in <module>
import gtk
File "C:\ProgramData\0install.net\implementations\sha256new_5NQCQXEZAJRXGOM6H4Z4AXIBG4R7Z5RSBCRB5RFZHXNN2NMNIPTQ\gtk-2.0\gtk\__init__.py", line 30, in <module>
import gobject as _gobject
File "C:\ProgramData\0install.net\implementations\sha256new_GTWVISPUFHUCTTJGWC5PW2NYRWGSVES4HBRZ5O3H4K22S4UT5X4Q\gtk-2.0\gobject\__init__.py", line 26, in <module>
from glib import spawn_async, idle_add, timeout_add, timeout_add_seconds, \
File "C:\ProgramData\0install.net\implementations\sha256new_GTWVISPUFHUCTTJGWC5PW2NYRWGSVES4HBRZ5O3H4K22S4UT5X4Q\gtk-2.0\glib\__init__.py", line 22, in <module>
from glib._glib import *
ImportError: DLL load failed: %1 is not a valid Win32 application.
The feed file created with Zero Install Publishing Tools.
<?xml version="1.0" encoding="utf-8"?>
<interface xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://zero-install.sourceforge.net/2004/injector/interface http://0install.de/schema/injector/interface/interface.xsd<https://urldefense.proofpoint.com/v2/url?u=http-3A__0install.de_schema_injector_interface_interface.xsd&d=DwMFAg&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=pRAqyHFQFv0HoEiWgk-8HFVA7XY6phT8Klx-jbb5O0E&m=VzJ0R_P4PD7KtS8cFkqk4hurMj3L0LFH2sJMSDJqYcM&s=jlq5-KJJ-DY11IIFnGVIp3wLYDkS_VHmFzSAaZnIBM8&e=> http://0install.de/schema/desktop-integration/capabilities<https://urldefense.proofpoint.com/v2/url?u=http-3A__0install.de_schema_desktop-2Dintegration_capabilities&d=DwMFAg&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=pRAqyHFQFv0HoEiWgk-8HFVA7XY6phT8Klx-jbb5O0E&m=VzJ0R_P4PD7KtS8cFkqk4hurMj3L0LFH2sJMSDJqYcM&s=9x0wDoy6sd7fh3rMw3lcToyUNdUq3hamqrqjjtzaE0s&e=> http://0install.de/schema/desktop-integration/capabilities/capabilities.xsd<https://urldefense.proofpoint.com/v2/url?u=http-3A__0install.de_schema_desktop-2Dintegration_capabilities_capabilities.xsd&d=DwMFAg&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=pRAqyHFQFv0HoEiWgk-8HFVA7XY6phT8Klx-jbb5O0E&m=VzJ0R_P4PD7KtS8cFkqk4hurMj3L0LFH2sJMSDJqYcM&s=s1oEdQBKQiWRIoRix5ONwIOrX7-jDPZSzUg7Bl2dPLY&e=>" xmlns="http://zero-install.sourceforge.net/2004/injector/interface<https://urldefense.proofpoint.com/v2/url?u=http-3A__zero-2Dinstall.sourceforge.net_2004_injector_interface&d=DwMFAg&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=pRAqyHFQFv0HoEiWgk-8HFVA7XY6phT8Klx-jbb5O0E&m=VzJ0R_P4PD7KtS8cFkqk4hurMj3L0LFH2sJMSDJqYcM&s=m_TV5uZSAnI1AGgKtJBj3tvvbH2iHnP83xLEb6BV2rU&e=>">
<name>diffuse</name>
<summary xml:lang="en">Diffuse is a graphical tool for comparing and merging text files. It can retrieve files for comparison from Bazaar, CVS, Darcs, Git, Mercurial, Monotone, RCS, Subversion, and SVK repositories.</summary>
<description xml:lang="en">Diffuse is a graphical tool for merging and comparing text files. Diffuse is able to compare an arbitrary number of files side-by-side and gives users the ability to manually adjust line-matching and directly edit files. Diffuse can also retrieve revisions of files from Bazaar, CVS, Darcs, Git, Mercurial, Monotone, RCS, Subversion, and SVK repositories for comparison and merging.
Features
ability to compare and merge an arbitrary number of files side-by-side (n-way merges)
line matching can be manually corrected by the user
ability to directly edit files
syntax highlighting
Bazaar, CVS, Darcs, Git, Mercurial, Monotone, RCS, Subversion, and SVK support
support for UTF-8 encoded unicode
unlimited undo
easy keyboard navigation
</description>
<icon href="http://diffuse.sourceforge.net/favicon.ico<https://urldefense.proofpoint.com/v2/url?u=http-3A__diffuse.sourceforge.net_favicon.ico&d=DwMFAg&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=pRAqyHFQFv0HoEiWgk-8HFVA7XY6phT8Klx-jbb5O0E&m=VzJ0R_P4PD7KtS8cFkqk4hurMj3L0LFH2sJMSDJqYcM&s=l7dp1UX-vFNnL_KOvQzu9veOkKAffwpZwL_bWNM3dI4&e=>" type="image/vnd.microsoft.icon" />
<icon href="https://a.fsdn.com/allura/p/diffuse/icon?1369755631<https://urldefense.proofpoint.com/v2/url?u=https-3A__a.fsdn.com_allura_p_diffuse_icon-3F1369755631&d=DwMFAg&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=pRAqyHFQFv0HoEiWgk-8HFVA7XY6phT8Klx-jbb5O0E&m=VzJ0R_P4PD7KtS8cFkqk4hurMj3L0LFH2sJMSDJqYcM&s=N4NFMLJoRrPbIKbfg5UiOTs-KiEfQuH0TUQj_-WPeWM&e=>" type="image/png" />
<category>Development</category>
<homepage>http://diffuse.sourceforge.net/about.html</homepage<https://urldefense.proofpoint.com/v2/url?u=http-3A__diffuse.sourceforge.net_about.html-253c_homepage&d=DwMFAg&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=pRAqyHFQFv0HoEiWgk-8HFVA7XY6phT8Klx-jbb5O0E&m=VzJ0R_P4PD7KtS8cFkqk4hurMj3L0LFH2sJMSDJqYcM&s=kCZ7SONELsEyU2IC7JrztSwtReBeRcD-lZ2fc9dTDvM&e=>>
<implementation langs="cs de en es it ja ka pl ru zh_CN zh_TW" version="0.4.8" released="2014-07-18" license="GPL v2 (GNU General Public License)" id="sha1new=c0b27b92ae61c5d9fb818f4808775486a7ae29c4">
<requires interface="http://repo.roscidus.com/python/python-gtk<https://urldefense.proofpoint.com/v2/url?u=http-3A__repo.roscidus.com_python_python-2Dgtk&d=DwMFAg&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=pRAqyHFQFv0HoEiWgk-8HFVA7XY6phT8Klx-jbb5O0E&m=VzJ0R_P4PD7KtS8cFkqk4hurMj3L0LFH2sJMSDJqYcM&s=kQl6gAobb0MKz1iWrURT117EpLGKRkA_NFbl07AE4P8&e=>" version="2.10.." />
<command name="run" path="src/usr/bin/diffuse">
<runner interface="http://repo.roscidus.com/python/python<https://urldefense.proofpoint.com/v2/url?u=http-3A__repo.roscidus.com_python_python&d=DwMFAg&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=pRAqyHFQFv0HoEiWgk-8HFVA7XY6phT8Klx-jbb5O0E&m=VzJ0R_P4PD7KtS8cFkqk4hurMj3L0LFH2sJMSDJqYcM&s=9Hh1k21lzTMfnSpCin4ErT8pOSfpjfzvna-QS2l1eZ0&e=>" version="2.4..!3.0" command="run" />
</command>
<manifest-digest sha1new="c0b27b92ae61c5d9fb818f4808775486a7ae29c4" sha256="5eb2ffa798ec361f9fcb3ec62a691d18d2bbde399daa2117df40f06125155172" sha256new="L2ZP7J4Y5Q3B7H6LH3DCU2I5DDJLXXRZTWVCCF67IDYGCJIVKFZA" />
<archive href="https://sourceforge.net/projects/diffuse/files/diffuse/0.4.8/diffuse-0.4.8.tar.bz2<https://urldefense.proofpoint.com/v2/url?u=https-3A__sourceforge.net_projects_diffuse_files_diffuse_0.4.8_diffuse-2D0.4.8.tar.bz2&d=DwMFAg&c=4ZIZThykDLcoWk-GVjSLmy8-1Cr1I4FWIvbLFebwKgY&r=pRAqyHFQFv0HoEiWgk-8HFVA7XY6phT8Klx-jbb5O0E&m=VzJ0R_P4PD7KtS8cFkqk4hurMj3L0LFH2sJMSDJqYcM&s=iKvtoSvLRSrMVxaamGePkqhZXVD4Dpw8AcqpL22ow4I&e=>" size="557966" type="application/x-bzip-compressed-tar" extract="diffuse-0.4.8" />
</implementation>
<entry-point command="run" binary-name="diffuse" />
</interface>
Philip Miess
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Zero-install-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/zero-install-devel