spotcast: Update 2024.11.0b0 Error

Bug Ticket

Describe the bug

Troubleshooting

Make sure to validate all the elements before submitting the ticket (Exception to the steps marked as optional)

Logs

Logger: homeassistant.setup Source: setup.py:334 First occurred: 20:49:26 (1 occurrences) Last logged: 20:49:26

Setup failed for custom integration ‘spotcast’: Unable to import component: No module named ‘spotipy’ Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/setup.py”, line 334, in _async_setup_component component = await integration.async_get_component() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/src/homeassistant/homeassistant/loader.py”, line 1031, in async_get_component self._component_future.result() File “/usr/src/homeassistant/homeassistant/loader.py”, line 1011, in async_get_component comp = await self.hass.async_add_import_executor_job( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.12/concurrent/futures/thread.py”, line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/src/homeassistant/homeassistant/loader.py”, line 1071, in _get_component ComponentProtocol, importlib.import_module(self.pkg_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/src/homeassistant/homeassistant/util/loop.py”, line 200, in protected_loop_func return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.12/importlib/init.py”, line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “<frozen importlib._bootstrap>”, line 1387, in _gcd_import File “<frozen importlib._bootstrap>”, line 1360, in _find_and_load File “<frozen importlib._bootstrap>”, line 1331, in _find_and_load_unlocked File “<frozen importlib._bootstrap>”, line 935, in _load_unlocked File “<frozen importlib._bootstrap_external>”, line 995, in exec_module File “<frozen importlib._bootstrap>”, line 488, in _call_with_frames_removed File “/config/custom_components/spotcast/init.py”, line 55, in <module> from .helpers import ( File “/config/custom_components/spotcast/helpers.py”, line 15, in <module> import spotipy ModuleNotFoundError: No module named ‘spotipy’

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 33 (12 by maintainers)

Most upvoted comments

@hmmbob

HA beta 3 was just released and contains a bump for spotifyaio to 0.8.3

thanks for the heads up, shouldn’t from what I’m seeing.

I see you bumped version to 3.9.1, but there’s no release with that version number. Are you aware?

Yes this is normal, I pushed the change, but realised I forgot 1 integration test I normally run (category) and didn’t want a send the new release without confirming its working. Just done with integration testing this morning, I’ll start to draft the release.

3.9.0 should be compatible with HA 2024.10.4.

You could download it from the releases section here on github and place the files in your /custom_componens/spotcast/ folder. See: https://github.com/fondberg/spotcast?tab=readme-ov-file#manual-installation

Confirming the issue is fixed with Spotcast 3.9.1 and HA 2024.11.0b3

Had to manually update the files though, HACS is not allowing to update Spotcast while on beta as you set 2024.11.0 as minimum version (not sure if 2024.11.0b2 is an acceptable format for that check, but stable 2024.11.0 will release in 2 days anyways)

Whoa, that’s some cool news!

Just not to raise false hope, the integration testing I’m talking about is the spotipy requirements, I’m still a couple of weeks away from being ready to release a beta for Spotcast V4

@tsvi @hmmbob almost done with v4 we’ll be completely independent from the main spotify integration at this point.

I’ll do the integration test tomorrow morning

It loads correctly. There might be some more issues happening. I tried testing more, but then discovered I had issues with the updated Spotify integration as well, so I reverted my install back to 2024.10.