I get those errors when I run:
/usr/local/bin/SquidClamAV_Red irector.py -c
/etc/squid/SquidClamAV_Red irector.conf
############### ###
Traceback (most recent call last):
File "/usr/local/bin/SquidClamAV_Red irector.py", line 573, in ?
redirector = SquidClamAV_Red irector(config)
File "/usr/local/bin/SquidClamAV_Red irector.py", line 145, in
__init__
self.__start_ur lhandler__()
File "/usr/local/bin/SquidClamAV_Red irector.py", line 454, in
__start_urlhand ler__
urllib.socket.s etdefaulttimeou t(self.timeout)
AttributeError: 'module' object has no attribute 'setdefaulttime out'
############### ##
the line that is the problem looks like this:
#############
urllib.socket.s etdefaulttimeou t(self.timeout)
#############
from the global sintax:
##############
def __start_urlhand ler__(self):
""" create the urlhandler object """
# set timeout
urllib.socket.s etdefaulttimeou t(self.timeout)
self.urlhandler = urllib.URLopene r()
if self.proxy != {}:
self.urlhandler .proxies = self.proxy
self.urlhandler .addheaders = [('User-agent',
ModuleName + ' ' + str(version))]
##############
can you give me a hint with this matter?
/usr/local/bin/SquidClamAV_Red irector.py -c
/etc/squid/SquidClamAV_Red irector.conf
############### ###
Traceback (most recent call last):
File "/usr/local/bin/SquidClamAV_Red irector.py", line 573, in ?
redirector = SquidClamAV_Red irector(config)
File "/usr/local/bin/SquidClamAV_Red irector.py", line 145, in
__init__
self.__start_ur lhandler__()
File "/usr/local/bin/SquidClamAV_Red irector.py", line 454, in
__start_urlhand ler__
urllib.socket.s etdefaulttimeou t(self.timeout)
AttributeError: 'module' object has no attribute 'setdefaulttime out'
############### ##
the line that is the problem looks like this:
#############
urllib.socket.s etdefaulttimeou t(self.timeout)
#############
from the global sintax:
##############
def __start_urlhand ler__(self):
""" create the urlhandler object """
# set timeout
urllib.socket.s etdefaulttimeou t(self.timeout)
self.urlhandler = urllib.URLopene r()
if self.proxy != {}:
self.urlhandler .proxies = self.proxy
self.urlhandler .addheaders = [('User-agent',
ModuleName + ' ' + str(version))]
##############
can you give me a hint with this matter?
Comment