Hi Dne Tue, 10 Mar 2009 22:57:37 +0200 Adam Szojda <adam.szo...@gmail.com> napsal(a):
> Package: python-tagpy > Version: 0.94.5-2 > Severity: normal > > Hi > > tagpy.FileRef(..) is crashing when called with unicode object as argument. > I have a script, created and used without problems on Ubuntu 8.04. It's now > crashing on Debian Lenny... > > Simple test script: > > aszo...@aszojda-laptop:/tmp$ cat test.py > #!/usr/bin/python > # -*- coding: utf-8 -*- > > import tagpy > > f = tagpy.FileRef(u"la.mp3") > > > Running it results in a crash: > > aszo...@aszojda-laptop:/tmp$ python test.py > Traceback (most recent call last): > File "test.py", line 6, in <module> > f = tagpy.FileRef(u"la.mp3") > File "/usr/lib/python2.5/site-packages/tagpy/__init__.py", line 53, in > __init__ > audioPropertiesStyle) > File "/usr/lib/python2.5/site-packages/tagpy/__init__.py", line 115, in > create > return module.File(fileName, readAudioProperties, audioPropertiesStyle) > Boost.Python.ArgumentError: Python argument types in > mpeg_File.__init__(mpeg_File, unicode, bool, _tagpy.ReadStyle) > did not match C++ signature: > __init__(_object*, char const*, TagLib::ID3v2::FrameFactory*) > __init__(_object*, char const*, TagLib::ID3v2::FrameFactory*, bool) > __init__(_object*, char const*, TagLib::ID3v2::FrameFactory*, bool, > TagLib::AudioProperties::ReadStyle) > __init__(_object*, char const*) > __init__(_object*, char const*, bool) > __init__(_object*, char const*, bool, TagLib::AudioProperties::ReadStyle) > aszo...@aszojda-laptop:/tmp$ What is correct according to upstream, your application should take care of conversion unicode sting to whatever is proper representation of it on filesystem. -- Michal Čihař | http://cihar.com | http://blog.cihar.com
signature.asc
Description: PGP signature