Re: Error in python-gtk running feed for diffuse.

"Bastian Eicher" <[email protected]> Wed, 20 Sep 2017 17:44:54 +0200
Newsgroups gmane.comp.file-systems.zero-install.devel
Message-ID <[email protected]>
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]] 
Sent: Montag, 11. September 2017 17:44
To: [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_L2ZP7J4Y5Q3B7H6LH3DCU2
I5DDJLXXRZTWVCCF67IDYGCJIVKFZA\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_L2ZP7J4Y5Q3B7H6LH3DCU
2I5DDJLXXRZTWVCCF67IDYGCJIVKFZA\src\usr\bin\diffuse", line 126, in <module>

    import gtk

  File
"C:\ProgramData\0install.net\implementations\sha256new_5NQCQXEZAJRXGOM6H4Z4A
XIBG4R7Z5RSBCRB5RFZHXNN2NMNIPTQ\gtk-2.0\gtk\__init__.py", line 30, in
<module>

    import gobject as _gobject

  File
"C:\ProgramData\0install.net\implementations\sha256new_GTWVISPUFHUCTTJGWC5PW
2NYRWGSVES4HBRZ5O3H4K22S4UT5X4Q\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_GTWVISPUFHUCTTJGWC5PW
2NYRWGSVES4HBRZ5O3H4K22S4UT5X4Q\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/interf
ace http://0install.de/schema/injector/interface/interface.xsd
http://0install.de/schema/desktop-integration/capabilities
http://0install.de/schema/desktop-integration/capabilities/capabilities.xsd"
xmlns="http://zero-install.sourceforge.net/2004/injector/interface">

  <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"
type="image/vnd.microsoft.icon" />

  <icon href="https://a.fsdn.com/allura/p/diffuse/icon?1369755631"
type="image/png" />

  <category>Development</category>

  <homepage>http://diffuse.sourceforge.net/about.html
<http://diffuse.sourceforge.net/about.html%3c/homepage> </homepage>

  <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"
version="2.10.." />

    <command name="run" path="src/usr/bin/diffuse">

      <runner interface="http://repo.roscidus.com/python/python"
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" 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