drikqlis / SubSyncStarter

Post-processing script for Bazarr to start SubSync.
9 stars 4 forks source link

subsync.log not found but it's there #6

Closed kopiezzo closed 1 year ago

kopiezzo commented 1 year ago

Hi, is this still under development? Im trying it out again and it's working pretty good but im getting one error i can't fix. After subs are synced im getting an error about subsync.log missing, but it's created in correct folder (as per readme) and i can manually write and read the file, but bazarr throws this error:

11/03/2023 00:03:27|ERROR   |root                            |BAZARR Post-processing result for file /home/lukasz/data/merger/sonarr/Lucifer/Season 3/Lucifer (2016) - S03E07 - Off the Record [Bluray-1080p]-YAWNiX.mkv : 
00:01:34.782:   MainThread:    ERROR:                       root: invalid log file path '/opt/SubSyncStarter/subsync.log', ignoring Traceback (most recent call last):   File "/snap/subsync/11/lib/python3.5/site-packages/subsync/loggercfg.py", line 43, in init     logging.basicConfig(**config, filename=path)   File "/snap/subsync/11/usr/lib/python3.5/logging/__init__.py", line 1744, in basicConfig     h = FileHandler(filename, mode)   File "/snap/subsync/11/usr/lib/python3.5/logging/__init__.py", line 1008, in __init__     StreamHandler.__init__(self, self._open())   File "/snap/subsync/11/usr/lib/python3.5/logging/__init__.py", line 1037, in _open     return open(self.baseFilename, self.mode, encoding=self.encoding) FileNotFoundError: [Errno 2] No such file or directory: '/opt/SubSyncStarter/subsync.log'

Here's my config:

[General]
# DEBUG, INFO, WARNING, ERROR
LoggingLevel = DEBUG
Logfile = /opt/SubSyncStarter/SubSyncStarter.log
BazarrApiKey = *****
BazarrUrl = http://*****:6767/
[SubSync]
Location = /snap/bin/subsync
LoggingLevel = 1
Logfile = /opt/SubSyncStarter/subsync.log
Effort = 1
WindowSize = 300
MaxPointDistance = 1

Also, is it possible to run it besides dockerized bazarr? When i tried to use it with bazarr in docker i got "ModuleNotFoundError No module named 'requests'" error. For now it only works for me when bazarr is installed locally