-
Notifications
You must be signed in to change notification settings - Fork 18
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
example gives error #7
Comments
I get a different error but another issue with
|
Confirming this happens on Linux, too:
|
Got another error "(invalid token)": Python 3.7.2 (default, Jan 17 2019, 23:30:57)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import upnpy
>>> upnp = upnpy.UPnP()
>>> devices = upnp.discover()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/media/upnpy/upnpy/upnp/UPnP.py", line 33, in discover
for device in self.ssdp.m_search(discover_delay=delay, st='upnp:rootdevice', **headers):
File "/media/upnpy/upnpy/ssdp/SSDPRequest.py", line 50, in m_search
devices = self._send_request(self._get_raw_request())
File "/media/upnpy/upnpy/ssdp/SSDPRequest.py", line 100, in _send_request
device = SSDPDevice(addr, response.decode())
File "/media/upnpy/upnpy/ssdp/SSDPDevice.py", line 84, in __init__
self._get_friendly_name_request()
File "/media/upnpy/upnpy/ssdp/SSDPDevice.py", line 23, in wrapper
return func(device, *args, **kwargs)
File "/media/upnpy/upnpy/ssdp/SSDPDevice.py", line 127, in _get_friendly_name_request
root = minidom.parseString(self.description)
File "/usr/local/lib/python3.7/xml/dom/minidom.py", line 1968, in parseString
return expatbuilder.parseString(string)
File "/usr/local/lib/python3.7/xml/dom/expatbuilder.py", line 925, in parseString
return builder.parseString(string)
File "/usr/local/lib/python3.7/xml/dom/expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 6
>>> |
Same error here on Linux Mint 20.1. |
I was able to recreate all of these errors. Arch Linux (20210819). Python v3.9.6 UPnPy v1.1.8 installed with Pip. |
Raising this from the dead, you can search for just IGDs with |
Hi, I installed upnpy, and ran the script from you example:
and on line 7 I get the following error:
The text was updated successfully, but these errors were encountered: