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

audioserver mopidy[962]: TypeError: __init__() got an unexpected keyword argument 'images' lines #23

Open
steinjo opened this issue May 19, 2024 · 0 comments

Comments

@steinjo
Copy link

steinjo commented May 19, 2024

Installed mopidy-cd with
sudo python3 -m pip install --break-system-packages Mopidy-Cd

on raspbian OS on RPi4 with Mopidy 3.4.1

Received errors "ImportError: cannot import name 'Mapping' from 'collections'"

changed /usr/local/lib/python3.11/dist-packages/mopidy_cd/cdrom.py line 8 from
from collections import Mapping, namedtuple
to

from collections.abc import Mapping
from collections import namedtuple

New Icon "CD" appears in menu "Browse" of iris. No errors in log so far.
When clicking on icon CD, CD-drive starts reading, CD-titles appear for 1 second in iris, then disappear again. 23 errors are added to log, each reading as follows:

May 19 15:30:12 audioserver mopidy[1225]: ERROR    [Core-10 (_actor_loop)] mopidy.core.library CdBackend backend caused an exception.
May 19 15:30:12 audioserver mopidy[1225]: Traceback (most recent call last):
May 19 15:30:12 audioserver mopidy[1225]:   File "/usr/lib/python3/dist-packages/mopidy/core/library.py", line 17, in _backend_error_handling
May 19 15:30:12 audioserver mopidy[1225]:     yield
May 19 15:30:12 audioserver mopidy[1225]:   File "/usr/lib/python3/dist-packages/mopidy/core/library.py", line 230, in lookup
May 19 15:30:12 audioserver mopidy[1225]:     result = future.get()
May 19 15:30:12 audioserver mopidy[1225]:              ^^^^^^^^^^^^
May 19 15:30:12 audioserver mopidy[1225]:   File "/usr/lib/python3/dist-packages/pykka/_threading.py", line 55, in get
May 19 15:30:12 audioserver mopidy[1225]:     raise exc_value
May 19 15:30:12 audioserver mopidy[1225]:   File "/usr/lib/python3/dist-packages/pykka/_actor.py", line 186, in _actor_loop
May 19 15:30:12 audioserver mopidy[1225]:     response = self._handle_receive(envelope.message)
May 19 15:30:12 audioserver mopidy[1225]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 19 15:30:12 audioserver mopidy[1225]:   File "/usr/lib/python3/dist-packages/pykka/_actor.py", line 286, in _handle_receive
May 19 15:30:12 audioserver mopidy[1225]:     return callee(*message.args, **message.kwargs)
May 19 15:30:12 audioserver mopidy[1225]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 19 15:30:12 audioserver mopidy[1225]:   File "/usr/local/lib/python3.11/dist-packages/mopidy_cd/backend.py", line 44, in lookup
May 19 15:30:12 audioserver mopidy[1225]:     album = CdLibrary._make_album(disc)
May 19 15:30:12 audioserver mopidy[1225]:             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 19 15:30:12 audioserver mopidy[1225]:   File "/usr/local/lib/python3.11/dist-packages/mopidy_cd/backend.py", line 114, in _make_album
May 19 15:30:12 audioserver mopidy[1225]:     return Album(
May 19 15:30:12 audioserver mopidy[1225]:            ^^^^^^
May 19 15:30:12 audioserver mopidy[1225]:   File "/usr/lib/python3/dist-packages/mopidy/models/immutable.py", line 159, in __call__
May 19 15:30:12 audioserver mopidy[1225]:     instance = super().__call__(*args, **kwargs)
May 19 15:30:12 audioserver mopidy[1225]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 19 15:30:12 audioserver mopidy[1225]:   File "/usr/lib/python3/dist-packages/mopidy/models/immutable.py", line 32, in __init__
May 19 15:30:12 audioserver mopidy[1225]:     raise TypeError(
May 19 15:30:12 audioserver mopidy[1225]: TypeError: __init__() got an unexpected keyword argument 'images'

RPi is perfectly playing CD's with mplayer, so the CD-drive seems to be ok.

I would appreciate of anybody could help. Thanks in advance.

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

1 participant