Opened 10 years ago

Closed 4 years ago

Last modified 4 years ago

#44565 closed defect (fixed)

upnp-inspector @0.2.2 does not show any devices

Reported by: macports-mail@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), olv.bonnet@…
Port: upnp-inspector coherence py-twisted

Description

My network has several uPnP media servers installed. The upnp-inspector global log shows that SSDP messages are being sent and replies received. This is also confirmed at the network level using Wireshark. However, the upnp-inspector Devices window does not show any devices.

Installing upnp-inspector automatically pulls in the dependent ports py27-twisted (v13.2.0) and coherence (v0.6.6.2). These 2 ports appear to be incompatible. Downgrading py27-twisted to v12.0.0 makes everything work again.

I am running Mavericks currently using Xcode6-beta5. Although the latter is beta code it is not relevant to this case as this is not a build issue but a compatibility issue between the installed versions of coherence and py-twisted.

On the Terminal, exceptions like the following are seen:

  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/coherence/base.py", line 621, in create_device
    root = RootDevice(infos)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/coherence/upnp/core/device.py", line 450, in __init__
    self.parse_description()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/coherence/upnp/core/device.py", line 538, in parse_description
    utils.getPage(self.location).addCallbacks(gotPage, gotError, None, None, [self.location], None)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/coherence/upnp/core/utils.py", line 588, in getPage
    scheme, host, port, path = client._parse(url)
exceptions.AttributeError: 'module' object has no attribute '_parse'

Change History (5)

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Cc: mcalhoun@… olv.bonnet@… added
Owner: changed from macports-tickets@… to devans@…
Port: upnp-inspector, coherence, py-twistedupnp-inspector coherence py-twisted

In the future, please Cc the port maintainers (port info --maintainers upnp-inspector coherence py-twisted).

comment:2 Changed 10 years ago by dbevans (David B. Evans)

Status: newassigned
Version: 2.3.1

Will take a look. From your description, it looks like coherence, upnp-inspector, et al. need to be fixed to work with latest py-twisted.

comment:3 Changed 10 years ago by macports-mail@…

The coherence fix required could be the one list in https://github.com/coherence-project/Coherence/search?q=17e1867&type=Issues

comment:4 Changed 10 years ago by dbevans (David B. Evans)

Yes, have confirmed the problem is due to API changes in twisted.web 13.2 that dropped the _parse method in favor of a new _URI class. The fix cited in comment:3 seems to address this issue. Will test over the weekend and hopefully have a fix early next week if not sooner. Plan to update the coherence related ports to the new github repository as well.

Last edited 10 years ago by dbevans (David B. Evans) (previous) (diff)

comment:5 Changed 4 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: assignedclosed

This issue was fixed some time ago by updating coherence, upnp-inspector as follows:

coherence updated in https://github.com/macports/macports-ports/commit/7dc861ed104ddeb2cae1324ef54937506d2ee4ec
upnp-inspector updated in commit https://github.com/macports/macports-ports/commit/46aa631941830f295f5c99fbec655cda660c841f

Last edited 4 years ago by dbevans (David B. Evans) (previous) (diff)
Note: See TracTickets for help on using tickets.