I am trying to use partitions in MPD (version (0.23.15-1~bpo12+1)) but get "unrecognized parameter" errors. Using client.newpartition in python also does not work although it shows there is a default partion. Is this functionality implemented in MPD or is this a future feature as I can not find any documentation or examples etc? Why do I get these errors?
From the MPD manual: Example for specifying an additional partition in the configuration file:
partition {
name "foo"
}
exception: Error in /etc/mpd_lounge.conf line 4; unrecognized parameter: partition mpd_lounge.service: Main process exited, code=exited, status=1/FAILURE mpd_lounge.service: Failed with result 'exit-code'.
Another example:
# Partitions Configuration
partition {
name "partition1"
description "Main playback zone"
enabled "yes"
audio_output {
type "fifo"
name "FIFO Pipe Lounge"
path "/tmp/snap_lounge"
format "44100:16:2"
mixer_type "software"
}
}
exception: Error in /etc/mpd_lounge.conf line 269; unrecognized parameter: Partition mpd_lounge.service: Main process exited, code=exited, status=1/FAILURE mpd_lounge.service: Failed with result 'exit-code'.
Usage in python script:
# List existing partitions
partitions = client.listpartitions()
print("Existing Partitions:", partitions)
client.newpartition(lounge)
# List partitions again to confirm
partitions = client.listpartitions()
print("Partitions After Switch:", partitions)
Result:
Existing Partitions: [{'partition': 'default'}] Error: name 'lounge' is not defined
I am trying to use partitions in MPD (version (0.23.15-1~bpo12+1)) but get "unrecognized parameter" errors. Using client.newpartition in python also does not work although it shows there is a default partion. Is this functionality implemented in MPD or is this a future feature as I can not find any documentation or examples etc? Why do I get these errors?
From the MPD manual: Example for specifying an additional partition in the configuration file:
partition {
name "foo"
}
exception: Error in /etc/mpd_lounge.conf line 4; unrecognized parameter: partition mpd_lounge.service: Main process exited, code=exited, status=1/FAILURE mpd_lounge.service: Failed with result 'exit-code'.
Another example:
# Partitions Configuration
partition {
name "partition1"
description "Main playback zone"
enabled "yes"
audio_output {
type "fifo"
name "FIFO Pipe Lounge"
path "/tmp/snap_lounge"
format "44100:16:2"
mixer_type "software"
}
}
exception: Error in /etc/mpd_lounge.conf line 269; unrecognized parameter: Partition mpd_lounge.service: Main process exited, code=exited, status=1/FAILURE mpd_lounge.service: Failed with result 'exit-code'.
Usage in python script:
# List existing partitions
partitions = client.listpartitions()
print("Existing Partitions:", partitions)
client.newpartition(lounge)
# List partitions again to confirm
partitions = client.listpartitions()
print("Partitions After Switch:", partitions)
Result:
Existing Partitions: [{'partition': 'default'}] Error: name 'lounge' is not defined
Partition functionality does not exist.
mpd
(andmpc
)... I checked the online docs, and they don't seem to offer much beyond what you've quoted. My only suggestion is to file an "Issue" on thempd
GitHub site. In general, what I've observed so far wrt overall use ofmpd
&mpc
is not inspiring enthusiasm or confidence. – Seamus Commented Apr 10 at 2:45