On Mon, May 19, 2008 at 02:25:26PM -0400, Alexander K Hansen wrote:
> On Thursday 15 May 2008 18:00:49 thetrystero wrote:
> > Hello,
> >
> > I'm trying to get the program "kana-no-quiz" to work on OS X but after
> > installing the necessary items, I'm getting the following error:
> >
> > [Admins-Computer 26] Kana no quiz-1.9 >
> > /System/Library/Frameworks/Python.framework/Versions/2.3/bin/kana-no-quiz
> > Traceback (most recent call last):
> >   File
> > "/System/Library/Frameworks/Python.framework/Versions/2.3/bin/kana-no-quiz"
> >, line 24, in ?
> >     from kananoquiz import *
> >   File
> > "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/sit
> >e-packages/kananoquiz/__init__.py", line 36, in ?
> >     import gtk_gui as gui
> >   File
> > "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/sit
> >e-packages/kananoquiz/gtk_gui.py", line 23, in ?
> >     import gtk
> > ImportError: No module named gtk
> >
> > The website (http://choplair.org/?Kana%20no%20quiz%27s%20Readme) says to
> > install gtk and pygtk which I did using fink, so I'm not sure what else has
> > gone wrong.
> >
> > [Admins-Computer 25] Kana no quiz-1.9 > fink list gtk+
> > Information about 2954 packages read in 10 seconds.
> >  i   gtk+              1.2.10-51     The Gimp Toolkit
> >  i   gtk+-data         1.2.10-51     The Gimp Toolkit
> >  i   gtk+-shlibs       1.2.10-51     The Gimp Toolkit
> >  i   gtk+2             2.6.10-1003   The Gimp Toolkit
> >      gtk+2-dev         2.6.10-1003   The Gimp Toolkit
> >  i   gtk+2-shlibs      2.6.10-1003   The Gimp Toolkit
> > [05:47 1.741.331.12]
> >
> > [Admins-Computer 27] Kana no quiz-1.9 > fink list pygtk
> > Information about 2954 packages read in 6 seconds.
> >  i   pygtk             0.6.9-13      Placeholder for versioned pygtk
> > packages
> >  i   pygtk-py23        0.6.9-1016    Modules for use of GTK with Python
> >
> > Any suggestions/help would be much appreciated!
> 
> It might be helpful to know what OS version you're on.   
> 
> It's not obvious from the website, but the package may want gtk+2, and the 
> corresponding python bindings (pygtk-gtk2-pyXY).

Also, fink's python modules (as with everything in fink) are not
installed in a place that is normally used by Apple things. Therefore,
it's not surprising that apple's python (which is what your python
program is using) is not seeing the pygtk installed by fink. Fink's
pygtk* modules are specially tuned for use by *fink's* python and
installed in a place that fink's python will find them (fink is
self-consistent in its own world). Use /sw/bin/python2.3 or something
similar) instead of apple's /usr/bin/python*.

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to