Bug 180212 - dev-python/pyclamav-0.3.3 & 0.2.1 broken
Bug#: 180212 Product:  Gentoo Linux Version: 2007.0 Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: python@gentoo.org Reported By: dragonheart@gentoo.org
Component: Unspecified
URL:  http://packages.debian.org/stable/python/python-clamav
Summary: dev-python/pyclamav-0.3.3 & 0.2.1 broken
Keywords:  STABLEREQ
Status Whiteboard: 
Opened: 2007-05-29 12:33 0000
Description:   Opened: 2007-05-29 12:33 0000
$ 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.

------- Comment #1 From Ali Polatel (RETIRED) 2007-06-29 16:46:31 0000 -------
  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 :-) 

------- Comment #2 From Christian Faulhammer 2007-07-02 22:07:21 0000 -------
x86 stable and closing

------- Comment #3 From Ali Polatel (RETIRED) 2007-07-02 23:35:24 0000 -------
> 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 

------- Comment #4 From Christian Faulhammer 2007-07-02 23:39:45 0000 -------
I simply forgot.  Thanks for pointing out.