-
Notifications
You must be signed in to change notification settings - Fork 12
Multiline config options not supported #29
Comments
Do you not get a "Could not load ini file!" error message in your log before the traceback? That's the only situation where the variable isn't defined. And that could be because you |
Short answer: yes, the error kicks off with: Sorry, I've been busy. So let me state my situation.
|
The readme contains a little bit of guidence on this but maybe its not as clear as it could be:
The config file being referred to in the above is the "ini file" referred to in the error message (Mopidy's config file is formatted as an .ini file). Basically, you need to set the websettings config setting to point to where your Mopidy config file is located on your system. Normally this is simply the location of the file you are editing. If you are running Mopidy as a service then the default should already be correct. Otherwise you'll need to change it to something like There are a few other reasons that reading the file can fail so let me know if this still isn't working. I'll change the docs and error message to be more explicit anyway so thanks for reporting. Oh, and to be clear, don't worry about "settingspec.ini", that shouldn't be the problem. Users don't have to do anything with that file. |
Figured it out. If running on a default Pi config of Mopidy, it loads configuration files from the default settings. The only way to ensure the web settings work is to actually export the values of
are entered as a comma separated value e.g.
Maybe adding this to the Readme might actually make the installation somewhat easier. But many thanks for pointing me in the right direction! |
This isn't supposed to be required so this sounds like is a functional bug rather than a documentation issue. Those multi-line options are totally unsupported in PiMusicbox (which this project was originally created for) but I thought ConfigObj itself supported them so I'm a bit puzzled why this falls over. |
Turns out ConfigObj's support for multiline values is really limited and requires you to quote the list. Which is not what Mopidy does with it's lists. I'm not sure there's a way we can keep using ConfigObj, I'm going to look at using Mopidy internal config routines. |
I'm getting this error message, which makes no sense to me.
Originally posted by @gmkey in #26 (comment)
The text was updated successfully, but these errors were encountered: