spotcast icon indicating copy to clipboard operation
spotcast copied to clipboard

Spotcast won't load after upgrade to 2022.4.6

Open codypet opened this issue 2 years ago • 10 comments

Bug Ticket

Describe the bug

The upgrade to 2022.4 caused a problem with both nest and Spotcast with Spotcast showing the error below. It was working prior to the upgrade

  • [X] Using latest version of spotcast
  • [X] I have setup the Spotify integration in Home Assistant
  • [X] I am using multiple accounts
  • [X] Using latest stable version of Home Assistant
  • [X] I have Spotify Premium
  • [X] I'm attaching relevant logs with level debug for component spotcast (see README)
  • [X] I'm using entity_id in the service call and have tried device_name but the issue remains

Environment

  • Installation type: [|Supervised|]
  • HA version: [ 2022.4.6]
  • spotcast version: [3.6.29 ]

Configuration

spotcast:
  sp_dc:  ####
  sp_key: ####
  accounts:
    codypet: 
      sp_dc: ####
      sp_key: ####
    rory: 
      sp_dc: ####
      sp_key: ####

Service Call

If relevant, provide a yaml of the service call or explain the action taken to replicate the issue.

Additional context

Logger: homeassistant.loader Source: components/cast/init.py:7 First occurred: 11:15:29 AM (1 occurrences) Last logged: 11:15:29 AM

Unexpected exception importing component custom_components.spotcast
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 584, in get_component
    cache[self.domain] = importlib.import_module(self.pkg_path)
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/config/custom_components/spotcast/__init__.py", line 44, in <module>
    from .helpers import async_wrap, get_cast_devices, get_spotify_devices
  File "/config/custom_components/spotcast/helpers.py", line 11, in <module>
    from homeassistant.components.cast.media_player import CastDevice
  File "/usr/src/homeassistant/homeassistant/components/cast/__init__.py", line 7, in <module>
    from pychromecast import Chromecast
  File "/usr/local/lib/python3.9/site-packages/pychromecast/__init__.py", line 14, in <module>
    from . import socket_client
  File "/usr/local/lib/python3.9/site-packages/pychromecast/socket_client.py", line 23, in <module>
    from . import cast_channel_pb2
  File "/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py", line 20, in <module>
    _SIGNATUREALGORITHM = DESCRIPTOR.enum_types_by_name['SignatureAlgorithm']
AttributeError: 'NoneType' object has no attribute 'enum_types_by_name'

codypet avatar Apr 23 '22 15:04 codypet