update to 0.4.0-1build1~dapper1 breaks programs

Bug #192130 reported by Robert Penz
2
Affects Status Importance Assigned to Milestone
python-clamav (Ubuntu)
Fix Released
Medium
Unassigned
Dapper
Fix Released
Medium
Scott Kitterman

Bug Description

Binary package hint: python-clamav

Due to removal of cl_scanbuff in libclamav, pyclamav.scanthis() had also been removed. This breaks any program which uses this method.

Changed in python-clamav:
status: New → Incomplete
Revision history for this message
Robert Penz (robert-penz-name) wrote :

incomplete: what do you need more?

following worked before the update and is still shown in the newest package as example in /usr/share/doc/python-clamav/README.txt

# python
Python 2.4.3 (#2, Oct 6 2006, 07:52:30)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyclamav
>>> pyclamav.scanthis("Buffer to test blalblabla...")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'scanthis'

Revision history for this message
Scott Kitterman (kitterman) wrote :

OK. Fair enough. I'll look into it.

Changed in python-clamav:
assignee: nobody → kitterman
status: Incomplete → Confirmed
Revision history for this message
Scott Kitterman (kitterman) wrote :

The upstream recommendation is to use python-clamd instead (it's not currently packaged). It can be found here:

http://xael.org/norman/python/pyclamd/

Please let me know if this will solve your problem. If so, I'll see about getting it packaged for Hardy and then backported to Dapper.

Revision history for this message
Robert Penz (robert-penz-name) wrote :

I've changed my code to use the pyclamd (you need to change the unix socket location for ubuntu). I reported the bug only as it broke something. As it killed a production mail server of mine, I've changed the program using that package even before I reported the bug.

so yes pyclamd helped me, it is just one python file which I copied into the same dir as my filter program.

Revision history for this message
Scott Kitterman (kitterman) wrote :

I've gotten the Feature Freeze exception to add python-clamd to Hardy (and once it's there, we can backport it to Dapper).

I appreciate the bug report and we'll get this resolved as soon as we can. I do hope the in the long run the benefits of running a current (all known security issues fixed) clamav outweigh this problem. Sorry for the inconvenience.

Changed in python-clamav:
importance: Undecided → Medium
status: Confirmed → In Progress
Revision history for this message
Scott Kitterman (kitterman) wrote :

Once python-clamd clears New in Hardy, I'll prepare a source backport for Dapper.

Changed in python-clamav:
assignee: nobody → kitterman
status: New → In Progress
Revision history for this message
Scott Kitterman (kitterman) wrote :

New package for python-clamd uploaded and waiting in New for Hardy.

Changed in python-clamav:
assignee: kitterman → nobody
status: In Progress → Fix Committed
Revision history for this message
Scott Kitterman (kitterman) wrote :

I've published a test version of the python-clamd package for Dapper in the ubuntu-clamav PPA. I'd appreciate it if you would give it a test and see if it works for you. You can either download the .deb and install it using dpkg -i from:

http://launchpadlibrarian.net/12039715/python-pyclamd_0.1.1-0ubuntu1%7Edapper1%7Eppa1_all.deb

or add deb http://ppa.launchpad.net/ubuntu-clamav/ubuntu dapper main to your /etc/apt/sources.list, update and install python-clamd. Once I've got comfirmation this works, I'll upload it to dapper-backports.

Revision history for this message
Robert Penz (robert-penz-name) wrote :

yes and no.

if I go into the directory /usr/share/python-support/python-pyclamd/ I can import it and it works, but it seems that this path is not in the lookup path for python modules in dapper or at least in my dapper installs. ;-)

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 192130] Re: update to 0.4.0-1build1~dapper1 breaks programs

You should get a ppa3 version now which puts it in /usr/lib/python2.4 and
should work just fine for Dapper (I've tried it on my Dapper box I still have
which I hadn't when I uploaded the first one). Thanks for looking and I'd
appreciate hearing back on the new one.

python-pyclamd has been accepted into Hardy, so I can do an official backport
now. I'll do it once I get confirmation from you.

Revision history for this message
Robert Penz (robert-penz-name) wrote :

the package itself works now just the update process is not perfect, but as nobody beside us two has the previous package it is ok ;-)

dpkg: warning - unable to delete old directory `/usr/share/python-support/python-pyclamd': Directory not empty
dpkg: warning - unable to delete old directory `/usr/share/python-support': Directory not empty

you forgot the .pyc file.

root@mail:~# ll /usr/share/python-support/python-pyclamd
total 12
-rw-r--r-- 1 root root 8739 Feb 20 19:09 pyclamd.pyc

Revision history for this message
Scott Kitterman (kitterman) wrote :

That's actually a bug in the Dapper python-support. Not much I can do about that. I've put in for the official backport (it'll be the same as ppa3 with an official backports version number). That's tracked in Bug #193998.

Revision history for this message
Scott Kitterman (kitterman) wrote :

Fixed in Hardy

Changed in python-clamav:
status: Fix Committed → Fix Released
Revision history for this message
Scott Kitterman (kitterman) wrote :

Backport for Dapper uploaded.

Changed in python-clamav:
importance: Undecided → Medium
status: In Progress → Fix Committed
Revision history for this message
Scott Kitterman (kitterman) wrote :

python-pyclamd is in dapper-backports now.

Changed in python-clamav:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.