oscarr icon indicating copy to clipboard operation
oscarr copied to clipboard

Sonarr + Bazarr connect issue

Open DarkAllMan opened this issue 6 years ago • 9 comments

I'm unable to connect to Sonarr/Bazarr. Sonarr error: AttributeError("'NoneType' object has no attribute 'append'",)

Traceback (most recent call last): File "C:\Python27\lib\site-packages\bottle.py", line 862, in _handle return route.call(**args) File "C:\Python27\lib\site-packages\bottle.py", line 1740, in wrapper rv = callback(*a, **ka) File "C:\Oscarr\oscarr\oscarr.py", line 232, in sonarr rootfolder_list.append([rootfolder['path'], sizeof_fmt(rootfolder['freeSpace']), sizeof_fmt(rootfolder['totalSpace']), int(percent)]) AttributeError: 'NoneType' object has no attribute 'append'

Bazarrerror: SyntaxError('EOL while scanning string literal', ('<unknown>', 1, 10, "['en', 'nl"))

Traceback (most recent call last): File "C:\Python27\lib\site-packages\bottle.py", line 862, in _handle return route.call(**args) File "C:\Python27\lib\site-packages\bottle.py", line 1740, in wrapper rv = callback(*a, **ka) File "C:\Oscarr\oscarr\oscarr.py", line 365, in bazarr output = template('bazarr', __file__=__file__, oscarr_version=oscarr_version, base_url=base_url, missing_list=missing_list, history_list=history_list) File "C:\Python27\lib\site-packages\bottle.py", line 3622, in template return TEMPLATES[tplid].render(kwargs) File "C:\Python27\lib\site-packages\bottle.py", line 3411, in render self.execute(stdout, env) File "C:\Python27\lib\site-packages\bottle.py", line 3398, in execute eval(self.co, env) File "C:\Oscarr\oscarr\views\bazarr.tpl", line 89, in <module> subs_languages = ast.literal_eval(str(row[3])) File "C:\Python27\lib\ast.py", line 49, in literal_eval node_or_string = parse(node_or_string, mode='eval') File "C:\Python27\lib\ast.py", line 37, in parse return compile(source, filename, mode, PyCF_ONLY_AST) File "<unknown>", line 1 ['en', 'nl ^ SyntaxError: EOL while scanning string literal

DarkAllMan avatar Jan 16 '19 13:01 DarkAllMan

What version of Sonarr are you using?

morpheus65535 avatar Jan 16 '19 15:01 morpheus65535

Sonarr Ver. 2.0.0.5252

DarkAllMan avatar Jan 16 '19 15:01 DarkAllMan

I have the same issue with Bazarr I do use a base url here, which is "/bazarr/" And I have a password set.

In the Bazarr settings there is no option to set API key or password, could this cause the issue?

TheFes avatar Jan 16 '19 16:01 TheFes

Something changed on my side, it works now. Only change I made myself is that I forgot to add a / at the end of the Oscarr base url. For that reason my reverse proxy setup did not work. So I added a / for that reason. I don't know if there was an update at your side, or that this was the cause for my error, but the Bazarr integration in Oscarr does work now.

TheFes avatar Jan 17 '19 13:01 TheFes

Hijacking this issue since I have the same issue, but with bazarr.

The error is similar:

Exception:

SyntaxError('EOL while scanning string literal', ('<unknown>', 1, 10, "['en', 'pb"))

I'm running Bazarr Ver. 0.8.4.3.

Please let me know if I can help with any logs.

edualm avatar Jul 21 '20 09:07 edualm

Hijacking this issue since I have the same issue, but with bazarr.

The error is similar:

Exception:

SyntaxError('EOL while scanning string literal', ('<unknown>', 1, 10, "['en', 'pb"))

I'm running Bazarr Ver. 0.8.4.3.

Please let me know if I can help with any logs.

Update to 0.8.4.4

morpheus65535 avatar Jul 21 '20 12:07 morpheus65535

@morpheus65535 Done, same error.

edualm avatar Jul 21 '20 13:07 edualm

@morpheus65535 Done, same error.

Open an issue on Bazarr Github.

morpheus65535 avatar Jul 21 '20 14:07 morpheus65535

Done. https://github.com/morpheus65535/bazarr/issues/1030

edualm avatar Jul 21 '20 16:07 edualm