Closed SupunLakshithe closed 5 months ago
Works?
I have the same error "Error: Error running sync command: 'liked_list'" after first run on my raspberry pi arm64. Installed with docker-compose, but same error comes with other kind of installation.
Connecting with url: http://xx.xx.xx.xx:32400, timeout 30 seconds ERROR 'liked_list'
the IP is correct. Here the full traceback:
Traceback (most recent call last) ─────────────────────────────────────╮ │ /app/plextraktsync/cli.py:26 in wrap │ │ │ │ 23 │ │ │ cmd = getattr(module, name) │ │ 24 │ │ │ │ │ 25 │ │ │ try: │ │ ❱ 26 │ │ │ │ cmd(*args, **kwargs) │ │ 27 │ │ │ except EOFError as e: │ │ 28 │ │ │ │ raise ClickException( │ │ 29 │ │ │ │ │ f"Program requested terminal, No terminal is connected: {e}" │ │ │ │ /app/plextraktsync/commands/sync.py:75 in sync │ │ │ │ 72 │ │ return │ │ 73 │ │ │ 74 │ with measure_time("Completed full sync"): │ │ ❱ 75 │ │ runner = factory.sync │ │ 76 │ │ if runner.config.need_library_walk: │ │ 77 │ │ │ w.print_plan(print=logger.info) │ │ 78 │ │ if dry_run: │ │ │ │ /usr/local/lib/python3.12/functools.py:995 in get │ │ │ │ 992 │ │ │ raise TypeError(msg) from None │ │ 993 │ │ val = cache.get(self.attrname, _NOT_FOUND) │ │ 994 │ │ if val is _NOT_FOUND: │ │ ❱ 995 │ │ │ val = self.func(instance) │ │ 996 │ │ │ try: │ │ 997 │ │ │ │ cache[self.attrname] = val │ │ 998 │ │ │ except TypeError: │ │ │ │ /app/plextraktsync/util/Factory.py:143 in sync │ │ │ │ 140 │ │ plex = self.plex_api │ │ 141 │ │ trakt = self.trakt_api │ │ 142 │ │ │ │ ❱ 143 │ │ return Sync(self.sync_config, plex, trakt) │ │ 144 │ │ │ 145 │ @cached_property │ │ 146 │ def progressbar(self): │ │ │ │ /app/plextraktsync/util/Factory.py:301 in sync_config │ │ │ │ 298 │ def sync_config(self): │ │ 299 │ │ from plextraktsync.config.SyncConfig import SyncConfig │ │ 300 │ │ │ │ ❱ 301 │ │ return SyncConfig(self.config, self.server_config) │ │ 302 │ │ │ 303 │ @cached_property │ │ 304 │ def queue(self): │ │ │ │ /app/plextraktsync/config/SyncConfig.py:19 in init │ │ │ │ 16 │ def init(self, config: Config, server_config: PlexServerConfig): │ │ 17 │ │ self.config = dict(config["sync"]) │ │ 18 │ │ self.liked_lists = config["liked_lists"] │ │ ❱ 19 │ │ self.liked_lists_overrides = config["liked_list"] or {} │ │ 20 │ │ self.server_config = server_config.sync_config │ │ 21 │ │ │ 22 │ def getitem(self, key): │ │ │ │ /app/plextraktsync/config/Config.py:54 in getitem │ │ │ │ 51 │ def getitem(self, item): │ │ 52 │ │ if not self.initialized: │ │ 53 │ │ │ self.initialize() │ │ ❱ 54 │ │ return dict.getitem(self, item) │ │ 55 │ │ │ 56 │ def contains(self, item): │ │ 57 │ │ if not self.initialized: │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ KeyError: 'liked_list' Error: Error running sync command: 'liked_list' ERROR: 1 pi@raspberrypi2:~/ptsync $
just saw that this error was solved a few hours ago with https://github.com/Taxel/PlexTraktSync/pull/1991
yes,0.31.1 has resolved this bug.
Confirmation
The problem
when run the script it gives an error saying (logging is done in both plex and trakt)
Steps to reproduce the behavior
Error trace / logs
Expected behavior
shoud run as normal.
Inspect of problematic items
No response
Workarounds
change "liked_list" to "liked_lists" on the line 19 in SyncConfig.py at /home/$user/.local/pipx/venvs/plextraktsync/lib/python3.11/site-packages/plextraktsync/config/
Config file contents
Install method
pipx
Version
0.31.0
Python Version
3.11.2
Plex Server Version
4.15.13
Operating System and Version
Linux-6.1.0-21-amd64-x86_64-with-glibc2.36