On Tue, 12 Jul 2005 12:28:32 -0500
Joe Wreschnig <[EMAIL PROTECTED]> wrote:

> Can you try (on the console) running:
> $ python
> <copyright stuff...>
> >>> import zipfile
> >>> z = zipfile.open("/usr/lib/quodlibet/quodlibet.zip")
> >>> z.infolist()
> 
> And see if it also prints the error?

NOTE: This is using quodlibet 0.12, but I receive the same error as with 0.11

>From what I gather, zipfile doesn't provide an open(). Here is what I
ran instead to make sure zipfile wasn't broken: 

>>> import zipfile
>>> z = zipfile.ZipFile("/usr/lib/quodlibet/quodlibet.zip","r")
>>> z.namelist()
['config.py', 'const.py', 'library.py', 'match.py', 'parser.py',
'player.py', 'plugins.py', 'qltk.py', 'util.py', 'widgets.py',
'formats/__init__.py', 'formats/audio.py', 'formats/flac.py',
'formats/mod.py', 'formats/mp3.py', 'formats/mpc.py',
'formats/oggvorbis.py', 'mutagen/__init__.py', 'mutagen/_constants.py',
'mutagen/id3.py']

To test importing from a zip, I used an example I found with google,
which worked fine.

In file named test_mod.py:
  class Test:
    def __init__(self):
      print 'hi'

I zipped this file into test_mod.zip, then ran:
  >>> import sys
  >>> sys.path.insert(0, '/home/lordjoe/Temp/test_mod.zip')
  >>> import test_mod
  >>> test_mod.__file__
  '/home/lordjoe/Temp/test_mod.zip/test_mod.py'
  >>> test.mod.Test()
  hi
  <test_mod.Test instance at 0x2aaaaab27fc8>
  >>>

I tried importing util from /usr/lib/quodlibet/quodlibet.zip and
received the OverflowError. To confirm what the original bug submitter
said, it works fine if I manually unzip the files from quodlibet.zip
and modify the path entry to point to the directory that contains the
files.

Versions of packages quodlibet depends on:
ii  libgtk2.0-0                   2.6.8-1    The GTK+ graphical user interface 
ii  python                        2.3.5-3    An interactive high-level object-o
ii  python-gtk2                   2.6.2-1    Python bindings for the GTK+ widge
ii  python-pymad                  0.5.4-1    Python wrapper to the MPEG Audio D
ii  python-pyvorbis               1.3-1      A Python interface to the Ogg Vorb
ii  python2.3-pymad [python-pymad 0.5.4-1    Python wrapper to the MPEG Audio D

Versions of packages quodlibet recommends:
ii  python-pyao                 0.82-1       A Python interface to the Audio Ou
ii  quodlibet-ext               0.11-1       extensions for the Quod Libet audi
ii  ttf-freefont                20031008-1.1 Freefont Serif, Sans and Mono True


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to