Traceback (most recent call last):
File "......autodetect/autodetect.py", line 4, in
devices = upnp.discover()
File "......lib\site-packages\upnpy\upnp\UPnP.py", line 33, in discover
for device in self.ssdp.m_search(discover_delay=delay, st='upnp:rootdevice', headers):
File "......lib\site-packages\upnpy\ssdp\SSDPRequest.py", line 52, in m_search
devices = self._send_request(req)
File "......lib\site-packages\upnpy\ssdp\SSDPRequest.py", line 102, in _send_request
device = SSDPDevice(addr, response.decode())
File "......lib\site-packages\upnpy\ssdp\SSDPDevice.py", line 87, in init
self._get_services_request()
File "......lib\site-packages\upnpy\ssdp\SSDPDevice.py", line 23, in wrapper
return func(device, *args, *kwargs)
File "......lib\site-packages\upnpy\ssdp\SSDPDevice.py", line 54, in wrapper
return func(instance, args, kwargs)
File "......lib\site-packages\upnpy\ssdp\SSDPDevice.py", line 171, in _get_services_request
event_sub_url = service.getElementsByTagName('eventSubURL')[0].firstChild.nodeValue
AttributeError: 'NoneType' object has no attribute 'nodeValue'
In this case an Canon T6100 Printer produces the Response.
Traceback (most recent call last): File "......autodetect/autodetect.py", line 4, in
devices = upnp.discover()
File "......lib\site-packages\upnpy\upnp\UPnP.py", line 33, in discover
for device in self.ssdp.m_search(discover_delay=delay, st='upnp:rootdevice', headers):
File "......lib\site-packages\upnpy\ssdp\SSDPRequest.py", line 52, in m_search
devices = self._send_request(req)
File "......lib\site-packages\upnpy\ssdp\SSDPRequest.py", line 102, in _send_request
device = SSDPDevice(addr, response.decode())
File "......lib\site-packages\upnpy\ssdp\SSDPDevice.py", line 87, in init
self._get_services_request()
File "......lib\site-packages\upnpy\ssdp\SSDPDevice.py", line 23, in wrapper
return func(device, *args, *kwargs)
File "......lib\site-packages\upnpy\ssdp\SSDPDevice.py", line 54, in wrapper
return func(instance, args, kwargs)
File "......lib\site-packages\upnpy\ssdp\SSDPDevice.py", line 171, in _get_services_request
event_sub_url = service.getElementsByTagName('eventSubURL')[0].firstChild.nodeValue
AttributeError: 'NoneType' object has no attribute 'nodeValue'
In this case an Canon T6100 Printer produces the Response.