Skip to content

trakt_lookup: Unhandled error in lazy lookup plugin: None #2606

@shotfirer

Description

@shotfirer

After updating from 3.1.22 to 3.1.33 got a lot of errors on every run.

Log:

(click to expand)
2020-02-13 12:06:21 ERROR    lazy_lookup   RARBG           Unhandled error in lazy lookup plugin: None
2020-02-13 12:06:21 CRITICAL manager       RARBG           An unexpected crash has occurred. Writing crash report to /home/orangepi/.flexget/crash_report.2020.02.13.120621719898.log. Please verify you are running the latest version of flexget by using "flexget -V" from CLI or by using version_checker plugin at http://flexget.com/wiki/Plugins/version_checker. You are currently using version 3.1.23
2020-02-13 12:06:21 DEBUG    manager       RARBG           Traceback:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 884, in _bootstrap
    self._bootstrap_inner()
    │    └ <function Thread._bootstrap_inner at 0xb67a8c90>
    └ <Thread(task_queue, started daemon -1641814944)>
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
    │    └ <function Thread.run at 0xb67a8b70>
    └ <Thread(task_queue, started daemon -1641814944)>
  File "/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
    │    │        │    │        │    └ {}
    │    │        │    │        └ <Thread(task_queue, started daemon -1641814944)>
    │    │        │    └ ()
    │    │        └ <Thread(task_queue, started daemon -1641814944)>
    │    └ <bound method TaskQueue.run of <flexget.task_queue.TaskQueue object at 0xacfc95f0>>
    └ <Thread(task_queue, started daemon -1641814944)>

  File "/usr/local/lib/python3.6/dist-packages/flexget/task_queue.py", line 45, in run
    self.current_task.execute()
    │    │            └ <function Task.execute at 0xb53e2660>
    │    └ <flexget.task.Task object at 0xacfc99f0>
    └ <flexget.task_queue.TaskQueue object at 0xacfc95f0>

  File "/usr/local/lib/python3.6/dist-packages/flexget/task.py", line 80, in wrapper
    return func(self, *args, **kw)
           │    │      │       └ {}
           │    │      └ ()
           │    └ <flexget.task.Task object at 0xacfc99f0>
           └ <function Task.execute at 0xb53e2618>

  File "/usr/local/lib/python3.6/dist-packages/flexget/task.py", line 697, in execute
    self._execute()
    │    └ <function Task._execute at 0xb53e25d0>
    └ <flexget.task.Task object at 0xacfc99f0>

  File "/usr/local/lib/python3.6/dist-packages/flexget/task.py", line 663, in _execute
    self.__run_task_phase(phase)
    │                     └ 'filter'
    └ <flexget.task.Task object at 0xacfc99f0>

  File "/usr/local/lib/python3.6/dist-packages/flexget/task.py", line 489, in __run_task_phase
    response = self.__run_plugin(plugin, phase, args)
               │                 │       │      └ (<flexget.task.Task object at 0xacfc99f0>, [{"title | re_search('(?i)(1080p)(.*)(WEB)(?!.?DL|.?RIP)') and not ('264-TBS' in t...
               │                 │       └ 'filter'
               │                 └ <PluginInfo(name=if)>
               └ <flexget.task.Task object at 0xacfc99f0>

  File "/usr/local/lib/python3.6/dist-packages/flexget/task.py", line 522, in __run_plugin
    result = method(*args, **kwargs)
             │       │       └ {}
             │       └ (<flexget.task.Task object at 0xacfc99f0>, [{"title | re_search('(?i)(1080p)(.*)(WEB)(?!.?DL|.?RIP)') and not ('264-TBS' in t...
             └ <Event(name=plugin.if.filter,func=handle_phase,priority=80)>

  File "/usr/local/lib/python3.6/dist-packages/flexget/event.py", line 22, in __call__
    return self.func(*args, **kwargs)
           │    │     │       └ {}
           │    │     └ (<flexget.task.Task object at 0xacfc99f0>, [{"title | re_search('(?i)(1080p)(.*)(WEB)(?!.?DL|.?RIP)') and not ('264-TBS' in t...
           │    └ <function FilterIf.__getattr__.<locals>.handle_phase at 0xb1793390>
           └ <Event(name=plugin.if.filter,func=handle_phase,priority=80)>

  File "/usr/local/lib/python3.6/dist-packages/flexget/plugins/filter/if_condition.py", line 74, in handle_phase
    for entry in passed_entries:
                 └ <generator object FilterIf.__getattr__.<locals>.handle_phase.<locals>.<genexpr> at 0x9ede2240>

  File "/usr/local/lib/python3.6/dist-packages/flexget/plugins/filter/if_condition.py", line 69, in <genexpr>
    passed_entries = (e for e in task.entries if self.check_condition(requirement, e))
                      │     │                    │    │               │            └ <Entry(title=The.Dead.Lands.S01E05.Generational.Warfare.1080p.AMZN.WEBRip.DDP2.0.x264-NTG[rartv],state=undecided)>
                      │     │                    │    │               └ 'trakt_watched'
                      │     │                    │    └ <function FilterIf.check_condition at 0xb24b1030>
                      │     │                    └ <flexget.plugins.filter.if_condition.FilterIf object at 0xb1796150>
                      │     └ <Entry(title=The.Dead.Lands.S01E05.Generational.Warfare.1080p.AMZN.WEBRip.DDP2.0.x264-NTG[rartv],state=undecided)>
                      └ <Entry(title=The.Dead.Lands.S01E05.Generational.Warfare.1080p.AMZN.WEBRip.DDP2.0.x264-NTG[rartv],state=undecided)>

  File "/usr/local/lib/python3.6/dist-packages/flexget/plugins/filter/if_condition.py", line 46, in check_condition
    passed = evaluate_expression(condition, eval_locals)
             │                   │          └ <Entry(title=The.Dead.Lands.S01E05.Generational.Warfare.1080p.AMZN.WEBRip.DDP2.0.x264-NTG[rartv],state=undecided)>
             │                   └ 'trakt_watched'
             └ <function evaluate_expression at 0xb55209c0>

  File "/usr/local/lib/python3.6/dist-packages/flexget/utils/template.py", line 296, in evaluate_expression
    return compiled_expr(**context)
           │               └ {'original_url': 'magnet:?xt=urn:btih:d057e3ef7c56babe473655cf39ca8e3c27bc6179&dn=The.Dead.Lands.S01E05.Generational.Warfare....
           └ <jinja2.environment.TemplateExpression object at 0xaed96530>

  File "/usr/local/lib/python3.6/dist-packages/jinja2/environment.py", line 1183, in __call__
    consume(self._template.root_render_func(context))
    │       │    │         │                └ <Context <flexget.utils.lazy_dict.LazyDict object at 0xaedc4670> of None>
    │       │    │         └ <function root at 0xad94aed0>
    │       │    └ <FlexGetTemplate memory:aed96bd0>
    │       └ <jinja2.environment.TemplateExpression object at 0xaed96530>
    └ <function consume at 0xb55c9df8>

  File "/usr/local/lib/python3.6/dist-packages/jinja2/utils.py", line 107, in consume
    for event in iterable:
                 └ <generator object root at 0xa854dab0>

  File "<template>", line 9, in root

  File "/usr/local/lib/python3.6/dist-packages/jinja2/runtime.py", line 217, in resolve_or_missing
    return resolve_or_missing(self, key)
           │                  │     └ 'trakt_watched'
           │                  └ <Context <flexget.utils.lazy_dict.LazyDict object at 0xaedc4670> of None>
           └ <function resolve_or_missing at 0xb5592348>

  File "/usr/local/lib/python3.6/dist-packages/jinja2/runtime.py", line 128, in resolve_or_missing
    if key in context.parent:
       │      │       └ <flexget.utils.lazy_dict.LazyDict object at 0xaedc4670>
       │      └ <Context <flexget.utils.lazy_dict.LazyDict object at 0xaedc4670> of None>
       └ 'trakt_watched'

  File "/usr/lib/python3.6/_collections_abc.py", line 666, in __contains__
    self[key]
    │    └ 'trakt_watched'
    └ <flexget.utils.lazy_dict.LazyDict object at 0xaedc4670>

  File "/usr/local/lib/python3.6/dist-packages/flexget/utils/lazy_dict.py", line 75, in __getitem__
    return item[key]
           │    └ 'trakt_watched'
           └ <LazyLookup([LazyCallee(func=<function lazy_lookup at 0xb1950f60>, keys=['trakt_actors'], args=('movie_actors', 'movie'), kwa...

> File "/usr/local/lib/python3.6/dist-packages/flexget/utils/lazy_dict.py", line 39, in __getitem__
    callee.func(self.store, *(callee.args or []), **(callee.kwargs or {}))
    │      │    │    │        │      │               │      └ <property object at 0xb55292d0>
    │      │    │    │        │      │               └ LazyCallee(func=<function trakt_user_data_lookup at 0xb1950bb8>, keys=['trakt_watched'], args=('trakt_watched', 'watched', No...
    │      │    │    │        │      └ <property object at 0xb55292a0>
    │      │    │    │        └ LazyCallee(func=<function trakt_user_data_lookup at 0xb1950bb8>, keys=['trakt_watched'], args=('trakt_watched', 'watched', No...
    │      │    │    └ <Entry(title=The.Dead.Lands.S01E05.Generational.Warfare.1080p.AMZN.WEBRip.DDP2.0.x264-NTG[rartv],state=undecided)>
    │      │    └ <LazyLookup([LazyCallee(func=<function lazy_lookup at 0xb1950f60>, keys=['trakt_actors'], args=('movie_actors', 'movie'), kwa...
    │      └ <property object at 0xb5515c60>
    └ LazyCallee(func=<function trakt_user_data_lookup at 0xb1950bb8>, keys=['trakt_watched'], args=('trakt_watched', 'watched', No...

  File "/usr/local/lib/python3.6/dist-packages/flexget/components/trakt/trakt_lookup.py", line 51, in trakt_user_data_lookup
    user_data_lookup = trakt.lookup_map[data_type][media_type]
                       │     │          │          └ None
                       │     │          └ 'watched'
                       │     └ <property object at 0xb193e330>
                       └ <flexget.components.trakt.api_trakt.ApiTrakt object at 0xaedc4230>

KeyError: None

Additional information:

  • FlexGet version: 3.1.23
  • Python version: 3.6
  • Installation method: pip
  • Using daemon (yes/no): yes
  • OS and version: Armbian Linux 4.19.62-sunxi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions