$ python -c "import pyclamav" Traceback (most recent call last): File "<string>", line 1, in ? ImportError: /usr/lib64/python2.4/site-packages/pyclamav.so: undefined symbol: cl_scanbuff same with 0.2.1 0.4.0 works ok probably worth stabilising since debian has a newer version more stable than us ;-p.
cl_scanbuff has been removed from libclamav somewhere between version 0.88.7 and 0.90. pyclamav-0.2.1 is too old to work with any clamav version in the tree. So it should be removed. Version 0.3.3 , however , works fine with version clamav-0.88.7 . It has pyclamav.scanthis() functionality which was removed from version 0.4.0 because of the missing cl_scanbuff. I've changed pyclamav-0.3.3's DEPEND to ~app-antivirus/clamav-0.88.7 to solve the problem and I want to keep it in the tree until the mentioned clamav version is gone. cc'ing x86 team to test and mark stable pyclamav versions 0.3.3 and 0.4.0. You can use example.py to test if it's working fine. You don't need to configure clamav or start the clamd daemon. Run it in a directory with some files in it and the output should look something like: hawking@mars pyclamav % python /usr/share/doc/pyclamav-0.4.0/example.py ** A problem as occured : Argument is not a filename ("CVS") ChangeLog is not infected Manifest is not infected ** A problem as occured : Argument is not a filename ("files") metadata.xml is not infected pyclamav-0.2.1.ebuild is not infected pyclamav-0.3.3.ebuild is not infected pyclamav-0.4.0.ebuild is not infected The error: "AttributeError: 'module' object has no attribute scanthis" is OK for version 0.4.0 as upstream didn't bother to remove it from the example. Thanks for reporting :-)
x86 stable and closing
> cc'ing x86 team to test and mark stable pyclamav versions 0.3.3 and 0.4.0. Opfer: You haven't stabilized pyclamav-0.3.3, any problems about it? Reopening bug and cc'ing x86 again to test and mark stable pyclamav-0.3.3
I simply forgot. Thanks for pointing out.