pyClamd 0.1.1 doesn't work with Python 2.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyclamd (Debian) |
Fix Released
|
Unknown
|
|||
pyclamd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Lucid |
Fix Released
|
Medium
|
Stefano Rivera |
Bug Description
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.
>>> pyclamd.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
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.
Related branches
Changed in pyclamd (Debian): | |
status: | Unknown → Fix Released |
This was fixed in 0.1.1-2, which is in maverick. I suppose it's probably worth preparing a fix for Lucid.
Would you prepare instructions on testing the bug? I.e. minimal instructions for triggering it, expected and unexpected (broken) responses.
https:/ /wiki.ubuntu. com/StableRelea seUpdates# Procedure