Public bug reported:
Binary package hint: python-pyclamd
The version of pyClamd included in Ubuntu 10.04 uses old-style Python
exceptions (raise ExceptionType, string), but Python 2.6 won't allow
that:
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyclamd
>>> pyclamd.init_unix_socket("/var/run/clamav/clamd.ctl")
>>> pyclamd.scan_file("cats")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/pymodules/python2.6/pyclamd.py", line 286, in scan_file
raise ScanError, virusname
TypeError: exceptions must be old-style classes or derived from BaseException,
not str
It works fine in version 2.2 (latest). As it stands now, the module is
completely unusable.
** Affects: pyclamd (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/771955
Title:
pyClamd 0.1.1 doesn't work with Python 2.6
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs