On Tue, 16 May 2000, George Young wrote:
> [Solaris 2.5.1, Python-1.6a2, pygtk-0.7.0]
> make and install seemed to go fine, but examples/simple/hello1.py says:
>
> Traceback (most recent call last):
> File "./hello1.py", line 17, in ?
> gtk_init()
> NameError: gtk_init
This example won't work with the pygtk-0.7.0, as the procedural interface
has been removed.
>
> and hello2.py says:
>
> Traceback (most recent call last):
> File "./simple2.py", line 6, in ?
> from gtk import *
> ImportError: No module named gtk
>
> I know this is alpha software, but there must be something stupid I'm doing...
> Any suggestions?
>
>
> Running with PYTHONVERBOSE to see what it's loading gets:
This is using the 0.6.x version of pygtk that seems to be
installed. Either install the new pygtk, or set your PYTHONPATH so that
the not yet installed version is used.
You may also have to add the statement "import ltihooks" to the start of
the example so that python can find the actual locations of libraries from
the .la files.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]