Hello,
I installed gnome-python-1.4.4 with python 2.3a1. The is a problem
with pygtk.require:
>python
Python 2.3a1 (#1, Jan 9 2003, 22:40:56)
[GCC 3.2 (SuSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygtk
[16716 refs]
>>> pygtk.require("1.2")
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/python2.3/site-packages/pygtk.py", line 47, in require
versions = _get_available_versions()
File "/usr/local/lib/python2.3/site-packages/pygtk.py", line 34, in
_get_available_versions
for filename in os.listdir(dir):
OSError: [Errno 2] No such file or directory: '/usr/local/lib/python23.zip'
[16778 refs]
>>> import pdb
[23675 refs]
>>> pdb.pm()
> /usr/local/lib/python2.3/site-packages/pygtk.py(34)_get_available_versions()
-> for filename in os.listdir(dir):
(Pdb) dir
'/usr/local/lib/python23.zip'
(Pdb) sys.path
['', '/usr/local/lib/python23.zip', '/usr/local/lib/python2.3',
'/usr/local/lib/python2.3/plat-linux2', '/usr/local/lib/python2.3/lib-tk',
'/usr/local/lib/python2.3/lib-dynload', '/usr/local/lib/python2.3/site-packages',
'/usr/local/lib/python2.3/site-packages/Numeric',
'/usr/local/lib/python2.3/site-packages/gtk-1.2']
(Pdb)
require fails with the new import hook mechanism and the standard
posibility to use .ZIP archives on the import path.
Greetings
Berthold
--
[EMAIL PROTECTED] / http://starship.python.net/crew/bhoel/
It is unlawful to use this email address for unsolicited ads
(USC Title 47 Sec.227). I will assess a US$500 charge for
reviewing and deleting each unsolicited ad.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/