Bug 12438 - upnp-inspector don't show any dlna servers in LAN
Summary: upnp-inspector don't show any dlna servers in LAN
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
Depends on:
Blocks:
 
Reported: 2014-01-25 22:48 CET by Florian Bauer
Modified: 2015-10-27 06:58 CET (History)
6 users (show)

See Also:
Source RPM: upnp-inspector-0.2.2-6.mga4
CVE:
Status comment:


Attachments

Description Florian Bauer 2014-01-25 22:48:05 CET
Description of problem:
I've installed upnp-inspector to check DLNA servers running in my LAN.
Upnp-inspector doesn't list any server (Android smartphones, Twonky, rygel). I get only an empty program window...
Servers are running as I can access and use them with my Philips-TV, an hardware streaming box and XBMC on my computers.

Version-Release number of selected component (if applicable):
0.2.2-6.mga4 running on x86 and x64

How reproducible:
I've checked it first on my x64 MGA4 RC1. As it doesn't work, I've tried it also on a x86 installation of MGA4 RC1.

Steps to Reproduce:
1. urpmi upnp-inspector
2. start upnp-inspector



Reproducible: 

Steps to Reproduce:
Manuel Hiebel 2014-01-28 18:51:03 CET

Keywords: (none) => Triaged
CC: (none) => erwanaliasr1, fundawang, pterjan, zen25000
Source RPM: upnp-inspector 0.2.2-6.mga4 => upnp-inspector-0.2.2-6.mga4

Comment 1 Stuart Morgan 2014-08-28 18:03:51 CEST
This appears to be because something about the python environment is broken. It throws errors in 'twisted' (python-twisted).

$ upnp-inspector 
Gtk-Message: Failed to load module "canberra-gtk-module"
/usr/lib/python2.7/site-packages/coherence/extern/louie.py:44: UserWarning: extern.louie will soon be deprecated in favor of coherence.dispatcher.
  warnings.warn("extern.louie will soon be deprecated in favor of coherence.dispatcher.")
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 380, in callback
    self._startRunCallbacks(result)
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 488, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 575, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/site-packages/coherence/dispatcher.py", line 81, in deferred_emit
    dfrs.append(defer.maybeDeferred(receiver, *args, **kwargs))
--- <exception caught here> ---
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 137, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/lib/python2.7/site-packages/coherence/dispatcher.py", line 17, in __call__
    return self.callback(*args, **kw)
  File "/usr/lib/python2.7/site-packages/coherence/base.py", line 621, in create_device
    root = RootDevice(infos)
  File "/usr/lib/python2.7/site-packages/coherence/upnp/core/device.py", line 450, in __init__
    self.parse_description()
  File "/usr/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 "/usr/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'
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 380, in callback
    self._startRunCallbacks(result)
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 488, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 575, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/site-packages/coherence/dispatcher.py", line 81, in deferred_emit
    dfrs.append(defer.maybeDeferred(receiver, *args, **kwargs))
--- <exception caught here> ---
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 137, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/lib/python2.7/site-packages/coherence/dispatcher.py", line 17, in __call__
    return self.callback(*args, **kw)
  File "/usr/lib/python2.7/site-packages/coherence/base.py", line 621, in create_device
    root = RootDevice(infos)
  File "/usr/lib/python2.7/site-packages/coherence/upnp/core/device.py", line 450, in __init__
    self.parse_description()
  File "/usr/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 "/usr/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'

CC: (none) => smorgan

Stuart Morgan 2014-08-28 18:04:45 CEST

Hardware: i586 => All
Version: Cauldron => 4

Comment 2 Pascal Terjan 2014-08-28 18:07:21 CEST
The error is in upnp not twisted:

  File "/usr/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'
Comment 3 Pascal Terjan 2014-08-28 18:08:42 CEST
(That's from python-coherence)
Comment 5 Stuart Morgan 2014-09-02 17:22:57 CEST
I can confirm that the patch fixes the issue for me.
Comment 6 Olivier Blin 2015-01-08 19:28:08 CET
Thanks Pascal for the link.
I had a local workaround but the upstream fix is better.

I have applied this patch and others (to fix description downloading) in cauldron.

This is fixed in python-coherence-0.6.6.2-13.mga5

Keeping the bug open for a Mageia 4 backport, if needed.

CC: (none) => mageia

Comment 7 Samuel Verschelde 2015-09-21 13:21:33 CEST
Mageia 4 changed to end-of-life (EOL) status on 2015-09-19. It is is no longer 
maintained, which means that it will not receive any further security or bug 
fix updates.

Package Maintainer: If you wish for this bug to remain open because you plan to 
fix it in a currently maintained version, simply change the 'version' to a later 
Mageia version.

Bug Reporter: Thank you for reporting this issue and we are sorry that we weren't 
able to fix it before Mageia 4's end of life. If you are able to reproduce it 
against a later version of Mageia, you are encouraged to click on "Version" and 
change it against that version of Mageia. If it's valid in several versions, 
select the highest and add MGAxTOO in whiteboard for each other valid release.
Example: it's valid in cauldron and Mageia 5, set to cauldron and add MGA5TOO.

Although we aim to fix as many bugs as possible during every release's lifetime, 
sometimes those efforts are overtaken by events. Often a more recent Mageia 
release includes newer upstream software that fixes bugs or makes them obsolete.

If you would like to help fixing bugs in the future, don't hesitate to join the
packager team via our mentoring program [1] or join the teams that fit you 
most [2].

[1] https://wiki.mageia.org/en/Becoming_a_Mageia_Packager
[2] http://www.mageia.org/contribute/
Comment 8 Marja Van Waes 2015-10-27 06:58:32 CET
As announced over a month ago, Mageia 4 changed to end-of-life (EOL) status on 2015-09-19. It is is no longer maintained, which means that it will not receive any further security or bug fix updates.

This issue may have been fixed in a later Mageia release, so, if you still see it and didn't already do so: please upgrade to Mageia 5 (or, if you read this much later than this is written: make sure you run a currently maintained Mageia version)

If you are able to reproduce it against a maintained version of Mageia, you are encouraged to 
1. reopen this bug report, by changing the "Status" from "RESOLVED - OLD" to "REOPENED"
2. click on "Version" and change it against that version of Mageia. If you know it's valid in several versions, select the highest and add MGAxTOO in whiteboard for each other valid release.
Example: it's valid in cauldron and Mageia 5, set to cauldron and add MGA5TOO.
3. give as much relevant information as possible. If you're not an experienced bug reporter and have some time: please read this page:
https://wiki.mageia.org/en/How_to_report_a_bug_properly

If you see a similar issue, but are _not_sure_ it is the same, with the same cause, then please file a new bug report and mention this one in it (please include the bug number, too). 


If you would like to help fixing bugs in the future, don't hesitate to join the
packager team via our mentoring program [1] or join the teams that fit you 
most [2].
[1] https://wiki.mageia.org/en/Becoming_a_Mageia_Packager
[2] http://www.mageia.org/contribute/

Status: NEW => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.