core.py line# 108 not being execute and causing error-> local variable 'cmd' referenced before assignment*
palindro opened this issue · 3 comments
Line# 108 not being execute -> cmd = self.build_cmd(path)
And therefore Error coming while executing Line# 113 -> output = check_output(cmd)
UnboundLocalError: local variable 'cmd' referenced before assignment**
The complete error is shown below:
multiav-scan.py eicer.com
Traceback (most recent call last):
File "/bin/multiav-scan.py", line 25, in
main(sys.argv[1])
File "/bin/multiav-scan.py", line 11, in main
ret = multi_av.scan(path, AV_SPEED_ALL)
File "/usr/lib/python2.7/site-packages/multiav/core.py", line 593, in scan
return self.single_scan(path, max_speed)
File "/usr/lib/python2.7/site-packages/multiav/core.py", line 598, in single_scan
results = self.scan_one(av_engine, path, results, max_speed)
File "/usr/lib/python2.7/site-packages/multiav/core.py", line 607, in scan_one
av.scan(path)
File "/usr/lib/python2.7/site-packages/multiav/core.py", line 118, in scan
output = check_output(cmd)
UnboundLocalError: local variable 'cmd' referenced before assignment
Read the next line please: https://github.com/joxeankoret/multiav/blob/master/multiav/core.py#L109
except: # There is no entry in the *.cfg file for this AV engine?
Got it. It worked.
No worries, it's usual to have problems setting it up. I will try to add something to, at the very least, say where is it failing.