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 info not working, 'CastStatus' object has no attribute '_asdict' #443

Open
0-andy-0 opened this issue May 4, 2024 · 3 comments
Open

Comments

@0-andy-0
Copy link

0-andy-0 commented May 4, 2024

After an update it seems everything is working except "catt info" - have I done something silly?

Traceback (most recent call last):
File "/usr/bin/catt", line 8, in
sys.exit(main())
^^^^^^
File "/usr/lib/python3.12/site-packages/catt/cli.py", line 667, in main
return cli(obj=get_config_as_dict())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/click/decorators.py", line 45, in new_func
return f(get_current_context().obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/catt/cli.py", line 490, in info
info = cst.info
^^^^^^^^
File "/usr/lib/python3.12/site-packages/catt/controllers.py", line 303, in info
status.update(self._cast.status._asdict())
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'CastStatus' object has no attribute '_asdict'

@vredesbyyrd
Copy link

I also ran into the same issue. Did you have any luck fixing this?

I wonder if it's compatibility issue with python 3.12.

@0-andy-0
Copy link
Author

no, I found no fix...
odd that everything except status seems to work

@vredesbyyrd
Copy link

It looks like pychromecast release 14.0.0 had many breaking changes. I do not know catt or pychromecasts codebase enough to know for sure, but I do wonder if the following change could be responsible:

Most user facing functions accepting an optional callback function have been changed such that the optional arguments are now kwarg only

As a workaround, downgrading pychromecast to 13.1.0 works for me. If I have time I may dig into the issue more.

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

2 participants