Package Details: pulseaudio-dlna 0.5.2.r152.gb0db813-6

Git Clone URL: https://aur.archlinux.org/pulseaudio-dlna.git (read-only, click to copy)
Package Base: pulseaudio-dlna
Description: Small DLNA server which brings DLNA/UPnP support to PulseAudio
Upstream URL: https://github.com/masmu/pulseaudio-dlna
Keywords: dlna multimedia pulseaudio upnp
Licenses: GPL3
Submitter: yegorius
Maintainer: polyzen
Last Packager: polyzen
Votes: 64
Popularity: 0.072417
First Submitted: 2015-04-11 23:54 (UTC)
Last Updated: 2022-05-10 16:31 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 Next › Last »

veikok commented on 2020-09-18 06:03 (UTC)

Package doesn't build at the moment since the following package is unavailable: 'python-pychromecast<7'. Replacing it in the PKGBUILD with 'python-pychromecast6' fixes the problem

Wild_Penguin commented on 2020-09-06 18:23 (UTC) (edited on 2020-09-07 12:59 (UTC) by Wild_Penguin)

Indeed python-pychromecast6 does work.

Maybe the dependencies in this PKGBUILD should be changed so that it depends on python-pychromecast<7? I can see that the 7 series appeared in AUR in June... or, perhaps pulseaudio-dlna (upstream) will catch up soon.

senorsnor commented on 2020-09-06 14:58 (UTC)

@Wild_Penguin You could try python-pychromecast6 instead of python-pychromecast. There have been major breaking changes in python-pychromecast 7. I never updated pychromecast for that reason and am still on version 5.0 and it works great.

Wild_Penguin commented on 2020-09-05 15:27 (UTC) (edited on 2020-09-05 16:02 (UTC) by Wild_Penguin)

Does not seem to work for me atm for streaming to Chromecast, does this work for others?

Whenever I try to stream my audio (a single application or all audio on the computer), I get this:

09-05 18:21:39 pulseaudio_dlna.pulseaudio                     INFO     Instructing the device "Olohuone (Chromecast)" to play ...
09-05 18:21:39 pychromecast                                   INFO     Querying device status
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/pulseaudio_dlna/plugins/chromecast/renderer.py", line 75, in play
    chromecast = self._create_pychromecast()
  File "/usr/lib/python3.8/site-packages/pulseaudio_dlna/plugins/chromecast/renderer.py", line 66, in _create_pychromecast
    chromecast = pychromecast._get_chromecast_from_host(
  File "/usr/lib/python3.8/site-packages/pychromecast/__init__.py", line 53, in get_chromecast_from_host
    return Chromecast(
  File "/usr/lib/python3.8/site-packages/pychromecast/__init__.py", line 298, in __init__
    dev_status = get_device_status(self.host, services, zconf)
  File "/usr/lib/python3.8/site-packages/pychromecast/dial.py", line 75, in get_device_status
    status = _get_status(host, services, zconf, "/setup/eureka_info?options=detail")
  File "/usr/lib/python3.8/site-packages/pychromecast/dial.py", line 41, in _get_status
    for service in services.copy():
AttributeError: 'NoneType' object has no attribute 'copy'
09-05 18:21:39 pulseaudio_dlna.pulseaudio                     ERROR    The device "Olohuone (Chromecast)" failed to play! (500) - Unknown exception.

senorsnor commented on 2020-04-18 20:55 (UTC)

@polyzen: I just tested that fix and it solves the issue for me indeed! Thanks a lot.

polyzen commented on 2020-04-14 22:16 (UTC)

If this fixes the issue for Chromecast users, I could add it to the package: https://github.com/masmu/pulseaudio-dlna/pull/398/commits/d46f419abd5105e48342ee45219cbf557d342af4

bubuntux commented on 2020-03-05 03:01 (UTC)

i tried downgrading to pychromecast to 2.3.0 but still getting issue with Chromecast

polyzen commented on 2020-02-03 05:36 (UTC)

Thank you, Le_Birlante. Please report this upstream: https://github.com/masmu/pulseaudio-dlna/issues

Le_Birlante commented on 2020-02-01 15:50 (UTC) (edited on 2020-02-02 20:01 (UTC) by polyzen)

Came here from good 'old python2-esque pulseaudio-dlna. It mostly works ok for my devices: it's able to detect and stream to my smart TVs (two samsungs and one Pana), and a Beoplay A9 too.

However, this python-3 version fails while trying to detect a Maranzt AV7702 a/v receiver, a device which worked flawlessly with the old phyton2 pulseaudio-dlna version.

If it's of some help, here is the error trace. This happens whenever I run pulseaudio-dlna with the Marantz turned on (if the Marantz is turned off, no errors will appear):

--------------------------------------------------
02-01 16:33:59 pulseaudio_dlna.application                    INFO     Using version: 0.6.0

02-01 16:33:59 pulseaudio_dlna.application                    INFO     Binding to *:8080

02-01 16:33:59 pulseaudio_dlna.application                    INFO     Starting discovery ...

02-01 16:33:59 pulseaudio_dlna.plugins.chromecast             INFO     ChromecastPlugin.discover()

02-01 16:33:59 pychromecast                                   INFO     Querying device status

Exception in thread Thread-3:

Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/pulseaudio_dlna/plugins/dlna/pyupnpv2/__init__.py", line 716, in from_xml

    xml_root = lxml.etree.fromstring(xml)

  File "src/lxml/etree.pyx", line 3236, in lxml.etree.fromstring

  File "src/lxml/parser.pxi", line 1876, in lxml.etree._parseMemoryDocument

  File "src/lxml/parser.pxi", line 1764, in lxml.etree._parseDoc

  File "src/lxml/parser.pxi", line 1127, in lxml.etree._BaseParser._parseDoc

  File "src/lxml/parser.pxi", line 601, in lxml.etree._ParserContext._handleParseResultDoc

  File "src/lxml/parser.pxi", line 711, in lxml.etree._handleParseResult

  File "src/lxml/parser.pxi", line 640, in lxml.etree._raiseParseError

  File "<string>", line 4

lxml.etree.XMLSyntaxError: xmlns:ms: ' urn:microsoft-com:wmc-1-0' is not a valid URI, line 4, column 40


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.8/site-packages/pulseaudio_dlna/plugins/dlna/__init__.py", line 53, in launch_discover
    discover.search(ssdp_ttl=ttl)
  File "/usr/lib/python3.8/site-packages/pulseaudio_dlna/plugins/dlna/ssdp/discover.py", line 66, in search
    self._search(self.host or '', ssdp_ttl, ssdp_mx, ssdp_amount)
  File "/usr/lib/python3.8/site-packages/pulseaudio_dlna/plugins/dlna/ssdp/discover.py", line 111, in _search
    self.cb_on_device_response(header, address)
  File "/usr/lib/python3.8/site-packages/pulseaudio_dlna/plugins/__init__.py", line 36, in wrapper
    device = f(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/pulseaudio_dlna/plugins/dlna/__init__.py", line 83, in _on_device_response
    return DLNAMediaRendererFactory.from_header(header)
  File "/usr/lib/python3.8/site-packages/pulseaudio_dlna/plugins/dlna/renderer.py", line 290, in from_header
    upnp_device = pyupnpv2.UpnpMediaRendererFactory.from_header(header)
  File "/usr/lib/python3.8/site-packages/pulseaudio_dlna/plugins/dlna/pyupnpv2/__init__.py", line 734, in from_header
    return cls.from_url(header['location'])
  File "/usr/lib/python3.8/site-packages/pulseaudio_dlna/plugins/dlna/pyupnpv2/__init__.py", line 651, in from_url
    return cls.from_xml(url, response.content)
  File "/usr/lib/python3.8/site-packages/pulseaudio_dlna/plugins/dlna/pyupnpv2/__init__.py", line 720, in from_xml
    xml = byto.repair_xml(xml)
  File "/usr/lib/python3.8/site-packages/pulseaudio_dlna/plugins/dlna/pyupnpv2/byto.py", line 38, in repair_xml
    bytes = re.sub(
  File "/usr/lib/python3.8/re.py", line 208, in sub
    return _compile(pattern, flags).sub(repl, string, count)
TypeError: cannot use a string pattern on a bytes-like object

---------------------------------------------

thanks,