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

Cannot initialize 'Chromecast' class #742

Open
TheonlyIcebear opened this issue Aug 30, 2023 · 2 comments
Open

Cannot initialize 'Chromecast' class #742

TheonlyIcebear opened this issue Aug 30, 2023 · 2 comments

Comments

@TheonlyIcebear
Copy link

While looking at this issue: #372

I tried using the code here:

import by Chromecast

cast = pychromecast.Chromecast('192.168.0.164')
cast.wait()
print(cast.device)

but then I get this error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\ekila\AppData\Local\Programs\Python\Python310\lib\site-packages\pychromecast\__init__.py", line 269, in __init__
    if not cast_info.cast_type:
AttributeError: 'str' object has no attribute 'cast_type'

I'm sure this isn't a problem with how I'm using the module and just a general error, that needs fixing. I am also not able to detect any of my Smart TVs with the module. When I got to cast on YouTube I could see all three of them but when this module I couldn't see any of them. Perhaps it's the fact that I have a Wi-Fi card installed into my PC with no antennas, I'm not sure though

@Kaelorn
Copy link

Kaelorn commented Dec 14, 2023

I have the same issue

@Reupireup
Copy link

same here :(

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