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

Unhandled exception in Audio: 'TypeError: cannot convert 'Error' object to bytes' #1924

Closed
kingosticks opened this issue Jul 14, 2020 · 3 comments · Fixed by #2040
Closed
Labels
A-audio Area: Audio layer A-config Area: Config management C-bug Category: This is a bug good first issue Call for participation
Milestone

Comments

@kingosticks
Copy link
Member

kingosticks commented Jul 14, 2020

Reported at MiczFlor/RPi-Jukebox-RFID#1038 (comment)

Jul 09 13:46:56 raspberrypi mopidy[510]: ERROR    [Audio-2] mopidy.audio.actor Failed to create audio output "Headphone": gst_parse_error: no element "Headph
Jul 09 13:46:56 raspberrypi mopidy[510]: ERROR    [Audio-2] pykka Unhandled exception in Audio (urn:uuid:40bdf253-6264-45b3-bfb1-41f03423c3c1):
Jul 09 13:46:56 raspberrypi mopidy[510]: Traceback (most recent call last):
Jul 09 13:46:56 raspberrypi mopidy[510]:   File "/usr/lib/python3/dist-packages/mopidy/audio/actor.py", line 125, in add_output
Jul 09 13:46:56 raspberrypi mopidy[510]:     description, ghost_unlinked_pads=True
Jul 09 13:46:56 raspberrypi mopidy[510]: gi.repository.GLib.GError: gst_parse_error: no element "Headphone" (1)
Jul 09 13:46:56 raspberrypi mopidy[510]: During handling of the above exception, another exception occurred:
Jul 09 13:46:56 raspberrypi mopidy[510]: Traceback (most recent call last):
Jul 09 13:46:56 raspberrypi mopidy[510]:   File "/usr/lib/python3/dist-packages/pykka/_actor.py", line 186, in _actor_loop
Jul 09 13:46:56 raspberrypi mopidy[510]:     self.on_start()
Jul 09 13:46:56 raspberrypi mopidy[510]:   File "/usr/lib/python3/dist-packages/mopidy/audio/actor.py", line 458, in on_start
Jul 09 13:46:56 raspberrypi mopidy[510]:     self._setup_outputs()
Jul 09 13:46:56 raspberrypi mopidy[510]:   File "/usr/lib/python3/dist-packages/mopidy/audio/actor.py", line 507, in _setup_outputs
Jul 09 13:46:56 raspberrypi mopidy[510]:     self._outputs.add_output(self._config["audio"]["output"])
Jul 09 13:46:56 raspberrypi mopidy[510]:   File "/usr/lib/python3/dist-packages/mopidy/audio/actor.py", line 131, in add_output
Jul 09 13:46:56 raspberrypi mopidy[510]:     raise exceptions.AudioException(bytes(ex))
Jul 09 13:46:56 raspberrypi mopidy[510]: TypeError: cannot convert 'Error' object to bytes
@kingosticks kingosticks added A-audio Area: Audio layer A-config Area: Config management C-bug Category: This is a bug labels Jul 14, 2020
@jodal jodal added this to the v3.0.3 milestone Jul 14, 2020
@kingosticks kingosticks added the good first issue Call for participation label Oct 3, 2020
@rohitgeddam
Copy link

I want to work on this!!

@kingosticks
Copy link
Member Author

Please feel free to do so.

@abidahmadq
Copy link

@kingosticks I can start working on this if you can point me to a direction. I am a new contributor.

kingosticks added a commit to kingosticks/mopidy that referenced this issue Jan 13, 2022
Fixes mopidy#1924
TypeError: cannot convert 'Error' object to bytes
kingosticks added a commit to kingosticks/mopidy that referenced this issue Jan 13, 2022
Fixes mopidy#1924
TypeError: cannot convert 'Error' object to bytes
kingosticks added a commit to kingosticks/mopidy that referenced this issue Jan 13, 2022
Fixes mopidy#1924
TypeError: cannot convert 'Error' object to bytes
kingosticks added a commit to kingosticks/mopidy that referenced this issue Jan 13, 2022
Fixes mopidy#1924
TypeError: cannot convert 'Error' object to bytes
kingosticks added a commit to kingosticks/mopidy that referenced this issue Jan 13, 2022
Fixes mopidy#1924
TypeError: cannot convert 'Error' object to bytes
@jodal jodal modified the milestones: Next bug fix release, v3.3.0 Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-audio Area: Audio layer A-config Area: Config management C-bug Category: This is a bug good first issue Call for participation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants