Skip to content
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

catt errors on Python 3.10 (Arch) #373

Closed
weisserd opened this issue Dec 23, 2021 · 7 comments
Closed

catt errors on Python 3.10 (Arch) #373

weisserd opened this issue Dec 23, 2021 · 7 comments

Comments

@weisserd
Copy link

When trying any subcommand with catt (e.g. scan or cast_site) I get the following error:

$ catt scan
Scanning Chromecasts...
Traceback (most recent call last):
  File "/usr/bin/catt", line 33, in <module>
    sys.exit(load_entry_point('catt==0.12.1', 'console_scripts', 'catt')())
  File "/usr/lib/python3.10/site-packages/catt/cli.py", line 644, in main
    return cli(obj=get_config_as_dict())
  File "/usr/lib/python3.10/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.10/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.10/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.10/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/catt/cli.py", line 483, in scan
    devices = get_cast_devices_info()
  File "/usr/lib/python3.10/site-packages/catt/discovery.py", line 65, in get_cast_devices_info
    devices = get_cast_devices()
  File "/usr/lib/python3.10/site-packages/catt/discovery.py", line 50, in get_cast_devices
    devices = [
  File "/usr/lib/python3.10/site-packages/catt/discovery.py", line 51, in <listcomp>
    CastDevice(pychromecast.get_chromecast_from_cast_info(c, browser.zc), c.host, c.port) for c in cast_infos
  File "/usr/lib/python3.10/site-packages/pychromecast/__init__.py", line 69, in get_chromecast_from_cast_info
    return Chromecast(
  File "/usr/lib/python3.10/site-packages/pychromecast/__init__.py", line 272, in __init__
    cast_info = get_cast_type(cast_info, zconf)
  File "/usr/lib/python3.10/site-packages/pychromecast/dial.py", line 121, in get_cast_type
    status = _get_status(
  File "/usr/lib/python3.10/site-packages/pychromecast/dial.py", line 78, in _get_status
    host, _, _ = get_host_from_service(service, zconf)
  File "/usr/lib/python3.10/site-packages/pychromecast/dial.py", line 38, in get_host_from_service
    service_info = zconf.get_service_info("_googlecast._tcp.local.", service.data)
  File "/usr/lib/python3.10/site-packages/zeroconf/_core.py", line 523, in get_service_info
    if info.request(self, timeout, question_type):
  File "/usr/lib/python3.10/site-packages/zeroconf/_services/info.py", line 455, in request
    assert zc.loop is not None and zc.loop.is_running()
AssertionError

The versions used are:

@weisserd
Copy link
Author

Looks similar to the already closed issue #349

@skorokithakis
Copy link
Owner

Yes, sounds like the same bug, can you try the latest version and see if that solves it?

@weisserd
Copy link
Author

weisserd commented Dec 23, 2021

When switching to catt-git (https://aur.archlinux.org/packages/catt-git) it reports the following version:

  • catt v0.12.5, Zaniest Zapper.

However the problem still exists - its the same stacktrace as above

@skorokithakis
Copy link
Owner

Hmm, what's the PyChromecast version?

@weisserd
Copy link
Author

It's aur/python-pychromecast 10.2.2-1

@skorokithakis
Copy link
Owner

That's the wrong version, please either use one of the supported methods of installation or file a bug with AUR.

@juxuanu
Copy link

juxuanu commented Feb 20, 2022

@skorokithakis I am having the same issue. What is the required python-pychromecast version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants