Invoking the same function that nautilus-clamscan uses to scan the files from within python causes an error:
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pyclamav >>> ret=pyclamav.scanfile("/tmp/xpto.pdf") LibClamAV Error: cl_load: engine == NULL Traceback (most recent call last): File "<stdin>", line 1, in <module> pyclamav.error: Null argument passed to function >>>
Invoking the same function that nautilus-clamscan uses to scan the files from within python causes an error:
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) scanfile( "/tmp/xpto. pdf")
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyclamav
>>> ret=pyclamav.
LibClamAV Error: cl_load: engine == NULL
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
pyclamav.error: Null argument passed to function
>>>