Well, your hint was helpful -- I removed my python installation and
re-installed from my Red Hat CD, and now things are working.  I did try
and upgrade to 1.5.2 from andrich.net, but ran into the same problem -- so
back to 1.5.1 I went.

thanks for your help... (Now off to install gnome-python...)

Miles


On Mon, 24 May 1999, James Henstridge wrote:

> That is weird.  The call to g_thread_init() is conditional on the
> WITH_THREAD cpp macro being defined.  
> 
> It doesn't look like your copy of python was compiled with thread support,
> so it should not have called g_thread_init.
> 
> If you look in /usr/include/python1.5/config.h, is the line containing the
> word WITH_THREAD commented out?
> 
> James.
> 
> --
> Email: [EMAIL PROTECTED]
> WWW:   http://www.daa.com.au/~james/
> 
> 
> On Sun, 23 May 1999, M. Clark wrote:
> 
> > Here it is:
> > 
> > % gtk-config --libs gthread
> > -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lgthread
> > -lglib -lpthread -ldl -lXi -lXext -lX11 -lm
> > 
> > % python -c 'import thread'
> > Traceback (innermost last):
> >   File "<string>", line 1, in ?
> > ImportError: No module named thread
> > 
> > % rpm -q python python-devel
> > python-1.5.1-5
> > python-devel-1.5.1-22
> > 
> > Obviously the fact that there's no thread module would be a problem. 
> > I'm running the stock python installed with Red Hat 5.2 (python-devel is
> > newer though).
> > 
> > thanks for the help...
> > 
> > Miles
> > 
> > James Henstridge wrote:
> > > 
> > > Could you post the output of "gtk-config --libs gthread" and the output of
> > > "python -c 'import thread'"?  This would be helpful in diagnosing the
> > > problem.
> > > 
> > > James.
> > > 
> > > --
> > > Email: [EMAIL PROTECTED]
> > > WWW:   http://www.daa.com.au/~james/
> > > 
> > > On Sat, 22 May 1999, mmc wrote:
> > > 
> > > >
> > > > Hi -
> > > >
> > > > I'm attempting to install and use pygtk 0.6.1, and I'm running into the
> > > > following problem:
> > > >
> > > > I'm able to compile and install, but running any of the sample apps
> > > > (hello?.py, simple1.py, etc.) results in the following import error:
> > > >
> > > >    from _gtk import *
> > > > ImportError: /usr/lib/python1.5/site-packages/_gtkmodule.so: undefined
> > > > symbol: g_thread_init
> > > >
> > > > Has anyone seen this?  I apologize if it's been covered before...
> > > >
> > > > I'm running: Red Hat 5.2, Gnome 1.0, gtk+ 1.2.2, pygtk-0.6.1
> > > >
> > > > Thanks,
> > > >
> > > > Miles
> > > >
> > > >
> > > > To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> > > >
> > > 
> > > To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> > To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> > 
> 
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to