[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

zip archive in python search path



Hi *, 

Today I got the attached two mails. I wonder how this happens and how to
fix it. Is it correct that zip archives are supported in sys.path now?
In that case probably python-gtk needs fixing. Otherwise something in
python is wicked.

Greetings

	Torsten
--- Begin Message ---
Don't know, might be a python problem:

LibGimp-WARNING **: gimp: wire_read: unexpected EOF
Traceback (most recent call last):
File "/usr/lib/gimp/1.2/plug-ins/foggify.py", line 3, in ?
from gimpfu import *
File "/usr/lib/python2.3/site-packages/gimpfu.py", line 48, in ?
pygtk.require('1.2')
File "/usr/lib/python2.3/site-packages/pygtk.py", line 47,
  in require
versions = _get_available_versions()
  File "/usr/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/lib/python23.zip'
  ^^^^^^^^^^^^^^^^^^^^^^^

gimp: 1.2.5-2
gimp-python: 1.2-6
python: 2.3-4

Any clue?

-- 
'(wave++ "Yuri D'Elia" "http://www.yuv.info/";)


--- End Message ---
--- Begin Message ---
On Wed, Sep 10, 2003 at 02:23:48PM +0200, Torsten Landschoff wrote:
> > Any clue?
> 
> Looks like your python path is messed up for some reason. What does
> 
> $ python
> >>> import sys
> >>> print sys.path
> 
> say?

% python
Python 2.3+ (#2, Aug 10 2003, 11:33:47) 
[GCC 3.3.1 (Debian)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.path
['', '/usr/lib/python23.zip', '/usr/lib/python2.3',
'/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk',
'/usr/lib/python2.3/lib-dynload',
'/usr/local/lib/python2.3/site-packages',
'/usr/lib/python2.3/site-packages',
'/usr/lib/python2.3/site-packages/HTMLgen',
'/usr/lib/python2.3/site-packages/Numeric',
'/usr/lib/python2.3/site-packages/PIL',
'/usr/lib/python2.3/site-packages/gtk-1.2']

-- 
'(wave++ "Yuri D'Elia" "http://www.yuv.info/";)



--- End Message ---

Attachment: pgpdwcR4tTW37.pgp
Description: PGP signature


Reply to: