Quantcast
Channel: help - Forum - FlexGet
Viewing all articles
Browse latest Browse all 837

Flexget / Python broken on Synology

$
0
0

@Cinder wrote:

I just discovered that the Flexget installation on my Synology NAS is broken, and reading previous threads on the issue I can sum up what the problem is and what I've tried. When running flexget --version I get:

synology> flexget --version
Traceback (most recent call last):
  File "/opt/bin/flexget", line 7, in
    from flexget import main
  File "/opt/lib/python2.7/site-packages/flexget/__init__.py", line 11, in
    from flexget import logger, plugin
  File "/opt/lib/python2.7/site-packages/flexget/logger.py", line 3, in
    from past.builtins import basestring
  File "/opt/lib/python2.7/site-packages/past/__init__.py", line 88, in
    from past.translation import install_hooks as autotranslate
  File "/opt/lib/python2.7/site-packages/past/translation/__init__.py", line 41, in
    from lib2to3.pgen2.parse import ParseError
ImportError: No module named lib2to3.pgen2.parse

So I commented out lines from pythons init.py files where lib2to3 was imported, since this seems to be causing the above error. This takes care of that error, and flexget --version works correctly. But when running flexget check (or execute) I instead get this error:

flexget check
2017-04-14 22:51 VERBOSE  check                         Pre-checked 79 configuration lines
2017-04-14 22:51 INFO     manager                       Database upgrade is required. Attempting now.
2017-04-14 22:51 ERROR    schema                        Failed to upgrade database for plugin simple_persistence: value
Traceback (most recent call last):
  File "/opt/lib/python2.7/site-packages/flexget/db_schema.py", line 150, in upgrade_wrapper
    new_ver = upgrade_func(current_ver, session)
  File "/opt/lib/python2.7/site-packages/flexget/utils/simple_persistence.py", line 42, in upgrade
    for row in session.execute(select([table.c.id, table.c.plugin, table.c.key, table.c.value])):
  File "/opt/lib/python2.7/site-packages/sqlalchemy/util/_collections.py", line 212, in __getattr__
    raise AttributeError(key)
AttributeError: value
Traceback (most recent call last):
  File "/opt/bin/flexget", line 11, in <module>
    sys.exit(main())
  File "/opt/lib/python2.7/site-packages/flexget/__init__.py", line 42, in main
    manager.start()
  File "/opt/lib/python2.7/site-packages/flexget/manager.py", line 326, in start
    self.initialize()
  File "/opt/lib/python2.7/site-packages/flexget/manager.py", line 214, in initialize
    fire_event('manager.upgrade', self)
  File "/opt/lib/python2.7/site-packages/flexget/event.py", line 106, in fire_event
    result = event(*args, **kwargs)
  File "/opt/lib/python2.7/site-packages/flexget/event.py", line 23, in __call__
    return self.func(*args, **kwargs)
  File "/opt/lib/python2.7/site-packages/flexget/db_schema.py", line 158, in upgrade_wrapper
    manager.shutdown(finish_queue=False)
  File "/opt/lib/python2.7/site-packages/flexget/manager.py", line 910, in shutdown
    raise RuntimeError('Cannot shutdown manager that was never initialized.')
RuntimeError: Cannot shutdown manager that was never initialized.

I have currently installed Flexget 2.10.31 and Python 2.7.13. I tried installing python 3 via pip (I use opkg and pip for all installations according to the flexget installation guide for Synology), but Python 3 throws the same error, and opkg now installs Python 3.6 which I read in some other posts is not supported by Flexget which supports up to 3.5? I also tried downgrading to Flexget 1.2.521, as suggested in some other thread but still it won't work.

So any ideas of what I should try to get Flexget running again? I dont even know why it broke to begin with, as to my knowledge there should have been no updates downloaded for neither flexget or python on my NAS, but maybe that just slipped under my radar.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 837

Trending Articles