Kye on Ubuntu, failure to run

5 views
Skip to first unread message

Steve Kunzer

unread,
Apr 11, 2009, 4:46:18 AM4/11/09
to kye-...@googlegroups.com
Hi all,

I downloaded Kye 0.93 RPM, and installed it with Alien onto my Ubuntu 8.10 system (running Gnome 2.24.1), it seemed to install okay and put icons into my Games menu. I checked I had the dependencies python-gtk2 and librsvg2-common installed (they already were). But when I run it I get:

Traceback (most recent call last):
  File "/usr/bin/Kye", line 21, in <module>
    from kye.frame import KFrame
ImportError: No module named kye.frame

I've had a look at the Kye python script and although I don't know Python, from the error message and where it says "from kye.frame import KFrame" in the script, I assume it's trying to find a file named kye.frame and it's not in the same directory as the script.

I tried to find kye.frame but appears not to be anywhere in my filesystem.

I've opened the kye-0.9.3-1.noarch.rpm file and it doesn't contain any files called kye.frame or kye.defaults or kye.app, all of which appear to be needed at the top of the Kye script.

From a question posed elsewhere on the internet that seemed related, I ran gdk-pixbuf-query-loaders and got the following output, great, but I don't know what I'm looking for (or at)!
------------------------------------------------------------------------------------------------output from gdk-pixbuf-query-loaders command
# GdkPixbuf Image Loader Modules file
# Automatically generated file, do not edit
# Created by gdk-pixbuf-query-loaders from gtk+-2.14.4
#
# LoaderDir = /usr/lib/gtk-2.0/2.10.0/loaders
#
"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-pcx.so"
"pcx" 4 "gtk20" "The PCX image format" "LGPL"
"image/x-pcx" ""
"pcx" ""
"\n \001" "" 100
"\n\002\001" "" 100
"\n\003\001" "" 100
"\n\004\001" "" 100
"\n\005\001" "" 100

"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-gif.so"
"gif" 4 "gtk20" "The GIF image format" "LGPL"
"image/gif" ""
"gif" ""
"GIF8" "" 100

"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-ras.so"
"ras" 4 "gtk20" "The Sun raster image format" "LGPL"
"image/x-cmu-raster" "image/x-sun-raster" ""
"ras" ""
"Y\246j\225" "" 100

"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-tga.so"
"tga" 4 "gtk20" "The Targa image format" "LGPL"
"image/x-tga" ""
"tga" "targa" ""
" \001\001" "x  " 100
" \001\t" "x  " 100
"  \002" "xz " 99
"  \003" "xz " 100
"  \n" "xz " 100
"  \013" "xz " 100

"/usr/lib/gtk-2.0/2.10.0/loaders/svg_loader.so"
"svg" 2 "gtk20" "Scalable Vector Graphics" "LGPL"
"image/svg+xml" "image/svg" "image/svg-xml" "image/vnd.adobe.svg+xml" "text/xml-svg" "image/svg+xml-compressed" ""
"svg" "svgz" "svg.gz" ""
" <svg" "*    " 100
" <!DOCTYPE svg" "*             " 100

"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-ani.so"
"ani" 4 "gtk20" "The ANI image format" "LGPL"
"application/x-navi-animation" ""
"ani" ""
"RIFF    ACON" "    xxxx    " 100

"/usr/lib/gtk-2.0/2.10.0/loaders/io-wmf.so"
"wmf" 0 "gtk20" "Windows Metafile" "(null)"
"image/x-wmf" ""
"wmf" "apm" ""
"\327\315\306\232" "" 100
"\001" "" 100

"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-tiff.so"
"tiff" 1 "gtk20" "The TIFF image format" "LGPL"
"image/tiff" ""
"tiff" "tif" ""
"MM *" "  z " 100
"II* " "   z" 100
"II* \020   CR\002 " "   z zzz   z" 0

"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-pnm.so"
"pnm" 4 "gtk20" "The PNM/PBM/PGM/PPM image format family" "LGPL"
"image/x-portable-anymap" "image/x-portable-bitmap" "image/x-portable-graymap" "image/x-portable-pixmap" ""
"pnm" "pbm" "pgm" "ppm" ""
"P1" "" 100
"P2" "" 100
"P3" "" 100
"P4" "" 100
"P5" "" 100
"P6" "" 100

"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so"
"png" 5 "gtk20" "The PNG image format" "LGPL"
"image/png" ""
"png" ""
"\211PNG\r\n\032\n" "" 100

"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-ico.so"
"ico" 5 "gtk20" "The ICO image format" "LGPL"
"image/x-icon" "image/x-ico" "image/x-win-bitmap" ""
"ico" "cur" ""
"  \001   " "zz znz" 100
"  \002   " "zz znz" 100

"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so"
"xpm" 4 "gtk20" "The XPM image format" "LGPL"
"image/x-xpixmap" ""
"xpm" ""
"/* XPM */" "" 100

"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-bmp.so"
"bmp" 5 "gtk20" "The BMP image format" "LGPL"
"image/bmp" "image/x-bmp" "image/x-MS-bmp" ""
"bmp" ""
"BM" "" 100

"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-jpeg.so"
"jpeg" 5 "gtk20" "The JPEG image format" "LGPL"
"image/jpeg" ""
"jpeg" "jpe" "jpg" ""
"\377\330" "" 100

"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-icns.so"
"icns" 4 "gtk20" "The ICNS image format" "GPL"
"image/x-icns" ""
"icns" ""
"icns" "" 100

"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xbm.so"
"xbm" 4 "gtk20" "The XBM image format" "LGPL"
"image/x-xbitmap" ""
"xbm" ""
"#define " "" 100
"/*" "" 50

"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-wbmp.so"
"wbmp" 4 "gtk20" "The WBMP image format" "LGPL"
"image/vnd.wap.wbmp" ""
"wbmp" ""
"  " "zz" 1
" `" "z " 1
" @" "z " 1
"  " "z " 1
------------------------------------------------------------------------------------------------end of output from gdk-pixbuf-query-loaders command

I'm not a total newbie, but not particularly technical - Any ideas how to fix this?
Many Thanks.



Colin Phipps

unread,
Apr 11, 2009, 10:07:19 AM4/11/09
to steve....@kunzer.co.uk, kye-...@googlegroups.com
On Saturday 11 April 2009 09:46:18 Steve Kunzer wrote:
> I downloaded Kye 0.93 RPM, and installed it with Alien onto my Ubuntu 8.10
> system (running Gnome 2.24.1),... But when I run it I get:

>
> Traceback (most recent call last):
>   File "/usr/bin/Kye", line 21, in <module>
>     from kye.frame import KFrame
> ImportError: No module named kye.frame
>
> I've had a look at the Kye python script and although I don't know Python,
> from the error message and where it says "from kye.frame import KFrame" in
> the script, I assume it's trying to find a file named kye.frame and it's
> not in the same directory as the script.
>
> I tried to find kye.frame but appears not to be anywhere in my filesystem.
>
> I've opened the kye-0.9.3-1.noarch.rpm file and it doesn't contain any
> files called kye.frame or kye.defaults or kye.app, all of which appear to
> be needed at the top of the Kye script.

It should contain a kye/frame.py . I suspect that alien has failed to install
the kye modules into a location within the python library search path on
Ubuntu - as it is failing to find the first module required by the script.
Possibly the RPM was built for a different version of python and alien did not
detect this.

Try downloading the source from my website, extracting it to a directory and
running it from there. You will probably find that that works, which will
confirm that it is a packaging problem.

--
Colin Phipps <c...@moria.org.uk>

SlimWadey

unread,
May 4, 2009, 1:53:53 PM5/4/09
to Kye game
I have the same problem on Mac OSX with python, pygtk, etc from
darwinports. I don't know a whole lot about paths and such but is
there a way to add the path to my .bash_profile for python to find the
kye folder? or a place i can move the kye folder such that python can
find it?
Reply all
Reply to author
Forward
0 new messages