alexa-samples / Alexa-Gadgets-Raspberry-Pi-Samples

This repository enables you to prototype an Alexa Gadget using Raspberry Pi. It includes Python-based software, sample projects, and step-by-step instructional guides that walk you through how to use key features of the Alexa Gadgets Toolkit to create new, engaging customer interactions with gadget devices.
Other
91 stars 29 forks source link

Install fails when bluealsa package is not available #19

Open NickHeap2 opened 3 years ago

NickHeap2 commented 3 years ago

When running "sudo python3 launch.py --setup" if bluealsa isn't available in apt then the setup fails. Commenting lines 157 to 163 allows the setup to succeed.

Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apt/cache.py", line 289, in getitem return self._weakref[key] File "/usr/lib/python3.6/weakref.py", line 137, in getitem o = self.data[key]() KeyError: 'bluealsa'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apt/cache.py", line 292, in getitem rawpkg = self._cache[key] KeyError: 'bluealsa'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "launch.py", line 157, in if cache['bluealsa'].is_installed: File "/usr/lib/python3/dist-packages/apt/cache.py", line 294, in getitem raise KeyError('The cache has no package named %r' % key) KeyError: "The cache has no package named 'bluealsa'"

dlangerm commented 3 years ago

I also have this issue

B3TT4 commented 3 years ago

I also have this issue

danjhd commented 2 years ago

+1 me too, is there a resolution please?

NickHeap2 commented 2 years ago

I can put a PR together to fix it but it doesn't look like the owner is maintaining this anymore.

NickHeap2 commented 2 years ago

PR created to fix this: https://github.com/alexa-samples/Alexa-Gadgets-Raspberry-Pi-Samples/pull/24