Wed 06 Mar 2013 03:34:52 PM UTC, original submission:
This commit: http://git.savannah.gnu.org/gitweb/?p=libcdio/pycdio.git;a=commitdiff;h=1e1c7975c799e9daa595b99aa6ab989a9d4f0959
changed the return type for get_devices_with_cap from list of str to list of unicode.
However, other functions do not accept unicode.
See the below python shell session to demonstrate the issue:
>>> import cdio
>>> cdio.get_devices_with_cap(pycdio.FS_MATCH_ALL, False)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'pycdio' is not defined
>>> import pycdio
>>> cdio.get_devices_with_cap(pycdio.FS_MATCH_ALL, False)
[u'/dev/cdrom']
>>> pycdio.open_cd(u'/dev/cdrom')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pycdio.py", line 835, in open_cd
return _pycdio.open_cd(*args)
TypeError: in method 'open_cd', argument 1 of type 'char const *'
>>> pycdio.open_cd('/dev/cdrom')
<Swig Object of type 'CdIo_t *' at 0x7f6e2eb1a720>
|