Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
samerkanakri opened this issue Jan 25, 2024 · 0 comments
Open

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

samerkanakri opened this issue Jan 25, 2024 · 0 comments

Comments

@samerkanakri
Copy link

samerkanakri commented Jan 25, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant