Package: python3-pychromecast
Version: 7.7.1-2 
Severity: important
X-Debbugs-Cc: ankos...@gmail.com


Dear Maintainer,

The package pulseaudio-dlna raises an exception while discovering a chromecast
device in the local network:

udio/core1/sink0 finished!
02-13 20:39:58 pychromecast                                   INFO     Querying
device status
Exception in thread zeroconf-ServiceBrowser__googlecast._tcp.local.:
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3/dist-packages/zeroconf/__init__.py", line 1557, in run
    self._service_state_changed.fire(
  File "/usr/lib/python3/dist-packages/zeroconf/__init__.py", line 1333, in
fire
    h(**kwargs)
  File "/usr/lib/python3/dist-packages/zeroconf/__init__.py", line 1427, in
on_change
    listener.add_service(*args)
  File "/usr/lib/python3/dist-packages/pychromecast/discovery.py", line 65, in
add_service
    self._add_update_service(zconf, typ, name, self.add_callback)
  File "/usr/lib/python3/dist-packages/pychromecast/discovery.py", line 123, in
_add_update_service
    callback(uuid, name)
  File "/usr/lib/python3/dist-packages/pychromecast/__init__.py", line 246, in
internal_callback
    callback(
  File "/usr/lib/python3/dist-packages/pulseaudio_dlna/plugins/__init__.py",
line 36, in wrapper
    device = f(*args, **kwargs)
  File "/usr/lib/python3/dist-
packages/pulseaudio_dlna/plugins/chromecast/__init__.py", line 47, in
_on_device_added
    return ChromecastRendererFactory.from_pychromecast(device)
  File "/usr/lib/python3/dist-
packages/pulseaudio_dlna/plugins/chromecast/renderer.py", line 183, in
from_pychromecast
    ip=pychromecast.host,
AttributeError: 'Chromecast' object has no attribute 'host'


The problem disappears when i downloaded and pip-install `mkchromecast` in its
place (needs hackish path surgery) because it is a dependency of `pulseaudio-
dlna), or
when  installing the sources from `pulseaudio-dlna` from the new taken-over
repository: https://github.com/Cygn/pulseaudio-dlna


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-3-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-pychromecast depends on:
ii  python3           3.9.1-1
ii  python3-protobuf  3.12.4-1
ii  python3-requests  2.25.1+dfsg-2
ii  python3-zeroconf  0.26.1-1

python3-pychromecast recommends no packages.

Reply via email to