Alexa-Gadgets-Raspberry-Pi-Samples icon indicating copy to clipboard operation
Alexa-Gadgets-Raspberry-Pi-Samples copied to clipboard

Install fails when bluealsa package is not available

Open NickHeap2 opened this issue 4 years ago • 5 comments

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.datakey 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'"

NickHeap2 avatar Jan 02 '21 14:01 NickHeap2

I also have this issue

dlangerm avatar Mar 05 '21 00:03 dlangerm

I also have this issue

B3TT4 avatar Mar 10 '21 15:03 B3TT4

+1 me too, is there a resolution please?

danjhd avatar Nov 09 '21 12:11 danjhd

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

NickHeap2 avatar Nov 09 '21 12:11 NickHeap2

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

NickHeap2 avatar Nov 13 '21 20:11 NickHeap2