Skip to content

ctypes.ArgumentError: argument 1: TypeError: wrong type #3

@samerkanakri

Description

@samerkanakri

I keep getting this on loadDB(), or if I pass autoreload same error appears on scanFile()
Running on ubuntu 22.04 Python3.10

import clamav
scanner = clamav.Scanner(dbpath="/var/lib/clamav",autoreload=True)
scanner.scanFile("steam.desktop")

Traceback:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/nmt/Desktop/clamav.py", line 425, in scanFile
    self.checkAndLoadDB()
  File "/home/nmt/Desktop/clamav.py", line 412, in checkAndLoadDB
    return self.loadDB()
  File "/home/nmt/Desktop/clamav.py", line 397, in loadDB
    self.cl_statinidir(self.dbpath, self.dbstats_p)
  File "/home/nmt/Desktop/clamav.py", line 322, in wrapper
    ret = func(*args)
ctypes.ArgumentError: argument 1: TypeError: wrong type

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions