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

Re: How to find play length of .ogg file using python?

On 6/15/06, Marc Shapiro <mshapiro_42@yahoo.com> wrote:
mns@xander:~/Projects/Python$ ogg123.py --device=oss cues/MayTheWords.ogg
Module choice: ao
Playing cues/MayTheWords.ogg

Traceback (most recent call last):
  File "./ogg123.py", line 221, in ?
  File "./ogg123.py", line 218, in main
  File "./ogg123.py", line 52, in play
  File "./ogg123.py", line 59, in start
    print vi.__dict__
AttributeError: No attribute: __dict__


Sorry.  __dict__ is class metadata, so that should have been something
along the lines of:

import pyvorbis
print pyvorbis.<class name>.__dict__

I don't have pyvorbis at work, so I can't check this myself right now.

Michael A. Marsh

Reply to: