T
Terry Hancock
I've run into something a little odd on my Debian-installed
Python 2.3.
I have deb packages "python2.3", "python-gtk2", and
"python2.3-glade2" installed on this machine. Among other
things, these DO give me the following (verified):
/usr/lib/python2.3/site-packages/pygtk.pth
/usr/lib/python2.3/site-packages/gtk-2.0
/usr/lib/python2.3/site-packages/gtk-2.0/gtk
/usr/lib/python2.3/site-packages/gtk-2.0/gtk/glade.so
The gtk directory has an __init__.py (fairly long one),
pygtk.pth has simply "gtk-2.0" in it.
Which all looks right to me. But...
samwise:/usr/share/doc/python2.3-glade2/examples/glade>
python Python 2.3.5 (#2, Sep 4 2005, 22:01:42)
[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.Traceback (most recent call last):
Huh? Have I missed something here?
BTW, I just noticed that it does work fine if you happen to
be in /usr/lib/python2.3/site-packages/gtk-2.0
so apparently it is some kind of path issue. But shouldn't
it be able to find glade.so if it can find gtk? What else
could be missing? (I've ruled out the things I know can go
wrong, so there must be something else required -- I
haven't tried to figure out gtk/__init__.py, does it do
something peculiar that might get tripped up?).
AFAIK, I haven't touched this installation, so whatever is
going on is the result of the Debian installer (or at least
I think that's true). It is the "unstable" branch, though.
I hope I've provided enough information -- like I said, it
looks to me like it should work now, but it doesn't.
Any suggestions welcome.
Cheers,
Terry
Python 2.3.
I have deb packages "python2.3", "python-gtk2", and
"python2.3-glade2" installed on this machine. Among other
things, these DO give me the following (verified):
/usr/lib/python2.3/site-packages/pygtk.pth
/usr/lib/python2.3/site-packages/gtk-2.0
/usr/lib/python2.3/site-packages/gtk-2.0/gtk
/usr/lib/python2.3/site-packages/gtk-2.0/gtk/glade.so
The gtk directory has an __init__.py (fairly long one),
pygtk.pth has simply "gtk-2.0" in it.
Which all looks right to me. But...
samwise:/usr/share/doc/python2.3-glade2/examples/glade>
python Python 2.3.5 (#2, Sep 4 2005, 22:01:42)
[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.Traceback (most recent call last):
Huh? Have I missed something here?
BTW, I just noticed that it does work fine if you happen to
be in /usr/lib/python2.3/site-packages/gtk-2.0
so apparently it is some kind of path issue. But shouldn't
it be able to find glade.so if it can find gtk? What else
could be missing? (I've ruled out the things I know can go
wrong, so there must be something else required -- I
haven't tried to figure out gtk/__init__.py, does it do
something peculiar that might get tripped up?).
AFAIK, I haven't touched this installation, so whatever is
going on is the result of the Debian installer (or at least
I think that's true). It is the "unstable" branch, though.
I hope I've provided enough information -- like I said, it
looks to me like it should work now, but it doesn't.
Any suggestions welcome.
Cheers,
Terry