Branch/Commit: v2018.05.11-1-1-g5a9a634
OS: CentOS 7.5
Browser: Firefox 61
What you did: Clicked 'Search Providers'
What happened:
File /opt/SickRage/gui/slick/views/config_providers.mako:183, in render_pages:
${('', 'checked="checked"')[curNewznabProvider.enable_daily]}
TypeError: tuple indices must be integers, not unicode
What you expected: To see the search providers and their settings
Logs: nothing in the log file relating to this at all even with debug logging enabled, the only error is via the browser.
I would have expected some better output about this error, e.g. if it's something in the database causing the issue, where in the database it is.
sqlite> select * from db_version;
44|0
The config file is already ascii with no unicode characters:
# iconv --from-code UTF-8 --to-code US-ASCII -c config.ini > config.ascii
# diff config.ini config.ascii
Any idea what is causing this?
I am also experiencing this one :(
Temp fix:
cd /opt/sickrage/ (or different in your setup)
nano -c /gui/slick/views/config_providers.mako
Edit line 183:
${('', 'checked="checked"')[curNewznabProvider.enable_daily]} to ${('', 'checked="checked"')[int(curNewznabProvider.enable_daily)]}
And edit line 247:
id="${curNewznabProvider.get_id("_search_fallback")}" ${('', 'checked="checked"')[curNewznabProvider.search_fallback]}/> to id="${curNewznabProvider.get_id("_search_fallback")}" ${('', 'checked="checked"')[int(curNewznabProvider.search_fallback)]}/>
Save (Ctrl+x, press y and enter) and reload page.
I can confirm that the patch @SudoHenk suggested is working.
This worked for me also, Thank you @SudoHenk.
SudoHenk - Thanks a lot
The other day I went to my search provider screen and I saw this message.
So I looked it up and found this.
I'm running this on a DROBO5N , I just opened with notepad++ on my windows machine and edited the file then saved it refreshed the page and it worked :)
Thanks :) again A+
Any ideas when the patch will be applied to the main branch?
Bloody legend @SudoHenk 🎉
Really keen for this to work any, any ETA @SickRage ?
Looks like this still wasn't fixed in the latest version?
Yeah it’s broken again for me now too.
--
Sam McLeod
On 19 Jul 2018, at 11:40, Shawn notifications@github.com wrote:
Looks like this still wasn't fixed in the latest version?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
Hey there guys!
@SudoHenk
I have the exact same issue on Docker AND on Synology... but i cant seem to find a config_providers.mako...
Can anyone help me?
im in /volume1/@appstore/sickrage
and in here i only find
app
build
env
shar
var
but no gui or slick or anything like that
even the search function didnt help...
pls help me
THANKS!
Open your config.ini and make sure there are no spaces in curNewznabProvider.enable_daily and curNewznabProvider.search_fallback. Not sure where it's located on your system, but you can check with this on normal linux systems:
locate config.ini
This should list your sickrage config.ini and then you can edit with e.g. vi or nano.
@SudoHenk
Thanks!
I finally understand how it works... but well sadly there still are some problems...
After comparing the original .ini file with the modified .ini file i found that the problem where not the search_fallback or enable_daily.. but some other option further down...
so i replaced it with the original ini file and it started again...
but as soon as i change anything in the settings an press save.. the next time it wont start again...
I want to set my Privoxy as Proxy but i cant because everytime i save everything crashes again....
any suggestions?
Thanks!
Likely you have a special/unicode character in the password for the proxy? That may still be unsupported, try an ascii only username/password
Most helpful comment
Temp fix:
cd /opt/sickrage/ (or different in your setup)
nano -c /gui/slick/views/config_providers.mako
Edit line 183:
${('', 'checked="checked"')[curNewznabProvider.enable_daily]}to${('', 'checked="checked"')[int(curNewznabProvider.enable_daily)]}And edit line 247:
id="${curNewznabProvider.get_id("_search_fallback")}" ${('', 'checked="checked"')[curNewznabProvider.search_fallback]}/>toid="${curNewznabProvider.get_id("_search_fallback")}" ${('', 'checked="checked"')[int(curNewznabProvider.search_fallback)]}/>Save (Ctrl+x, press y and enter) and reload page.