[pygtk] Possible error in PyGnome (Gnome-Python 1.0.53)

Lionel Elie Mamane lionel@mamane.lu
Sun, 23 Jul 2000 14:03:00 +0200


--Fba/0zbH8Xs+Fj9o
Content-Type: multipart/mixed; boundary="wac7ysb48OaltWcw"
Content-Disposition: inline


--wac7ysb48OaltWcw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

When trying to launch PyBiff 0.2.1 (Mail checker that uses
gnome-python), I get this error message:

Traceback (innermost last):
  File "/opt/gnome/bin/pybiff_applet", line 25, in ?
    app =3D Applet()
  File "/opt/gnome/share/pybiff/PyBiffApplet.py", line 342, in
  __init__
    self.propertybox.iconentry[0].gtk_entry().connect("changed",
  self.on_anyentry_changed)
  File "/usr/lib/python1.5/site-packages/gnome/ui.py", line 945, in
  gtk_entry
    return GtkEntry(_obj=3D
NameError: GtkEntry

Looks like the problem is in ui.py, which is part of PyGnome.

If I understand this well (I have absolutely no Python knowledge),
this means that the "identifier" GtkEntry has no meaning for Python at
this stage. To me, it looks like it is defined in
/usr/lib/python1.5/site-packages/gtk.py

The header of that file says 'Just type "from gtk import *"', so I
added this to gnome/ui.py (fourth line, just after the other
"import"'s, and now it works. Diff file attached.

P.S.: I'm not subscribed to the PyGtk ML. If you want to get to me,
e-mail directly.

--=20
Lionel Elie Mamane
RFC 1991 (PGP 2.x) 2048 bits Key Fingerprint (KeyID: 20C897E9): 85CF 986F 2=
63E 8CD0 80FD 4B8C F5F9 C17D
OpenPGP DH/DSS 4096/1024 Key Fingerprint (KeyID: 3E7B4B73): 9DAD 3131 3ADA =
F50B D096 002A B1C4 7317 3E7B 4B73
--wac7ysb48OaltWcw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="ui.py.diff"

3a4
> from gtk import *

--wac7ysb48OaltWcw--

--Fba/0zbH8Xs+Fj9o
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.2 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE5et70scRzFz57S3MRAlDGAKCxK3cYc5jd5maE7eFfcied1OF52QCg35xp
LcCb34yewxTZQ7AMJGoh9KA=
=u/8y
-----END PGP SIGNATURE-----

--Fba/0zbH8Xs+Fj9o--