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

module 'pychromecast' has no attribute 'get_chromecasts_as_dict'. #419

Open
tkalfaoglu opened this issue Jul 20, 2023 · 0 comments
Open

Comments

@tkalfaoglu
Copy link

When I launch mkchromecast on Fedora 38, I get:

/usr/lib/python3.11/site-packages/mkchromecast/cast.py:102: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if iface is not None and iface[0]['addr'] is not '127.0.0.1':
Mkchromecast v0.3.9
Creating Pulseaudio Sink...
Open Pavucontrol and Select the Mkchromecast Sink.
Starting Local Streaming Server
[Done]
Selected backend: parec
Selected audio codec: mp3
Default bitrate used: 192k
Default sample rate used: 44100Hz.
PID of main process: 39337
PID of streaming process: 39341

  • Serving Flask app 'mkchromecast.audio'
  • Debug mode: off
    WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Running on all addresses (0.0.0.0)
  • Running on http://127.0.0.1:5000
  • Running on http://192.168.1.114:5000
    Press CTRL+C to quit
    Traceback (most recent call last):
    File "/usr/lib/python3.11/site-packages/mkchromecast/cast.py", line 112, in _get_chromecasts
    return list(pychromecast.get_chromecasts_as_dict().keys())
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AttributeError: module 'pychromecast' has no attribute 'get_chromecasts_as_dict'. Did you mean: 'get_chromecast_from_host'?

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/mkchromecast", line 302, in
mk()
File "/usr/bin/mkchromecast", line 59, in init
self.audio_linux()
File "/usr/bin/mkchromecast", line 78, in audio_linux
self.cc.initialize_cast()
File "/usr/lib/python3.11/site-packages/mkchromecast/cast.py", line 134, in initialize_cast
self.cclist = self._get_chromecasts()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/mkchromecast/cast.py", line 114, in _get_chromecasts
self._chromecasts_by_name = {c.name: c for c in
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/mkchromecast/cast.py", line 114, in
self._chromecasts_by_name = {c.name: c for c in
^^^^^^
AttributeError: 'list' object has no attribute 'name'

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

1 participant