{"action":"created","issue":{"url":"https://api.github.com/repos/Flexget/Flexget/issues/1315","repository_url":"https://api.github.com/repos/Flexget/Flexget","labels_url":"https://api.github.com/repos/Flexget/Flexget/issues/1315/labels{/name}","comments_url":"https://api.github.com/repos/Flexget/Flexget/issues/1315/comments","events_url":"https://api.github.com/repos/Flexget/Flexget/issues/1315/events","html_url":"https://github.com/Flexget/Flexget/issues/1315","id":169828760,"number":1315,"title":"flexget commands fail after Ubuntu 16.04 upgrade with \"TypeError: the JSON object must be str, not 'NoneType'\"","user":{"login":"jordanade","id":2799445,"avatar_url":"https://avatars.githubusercontent.com/u/2799445?v=3","gravatar_id":"","url":"https://api.github.com/users/jordanade","html_url":"https://github.com/jordanade","followers_url":"https://api.github.com/users/jordanade/followers","following_url":"https://api.github.com/users/jordanade/following{/other_user}","gists_url":"https://api.github.com/users/jordanade/gists{/gist_id}","starred_url":"https://api.github.com/users/jordanade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordanade/subscriptions","organizations_url":"https://api.github.com/users/jordanade/orgs","repos_url":"https://api.github.com/users/jordanade/repos","events_url":"https://api.github.com/users/jordanade/events{/privacy}","received_events_url":"https://api.github.com/users/jordanade/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Flexget/Flexget/labels/Bug","name":"Bug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-08T01:38:31Z","updated_at":"2016-08-09T08:02:09Z","closed_at":null,"body":"### Expected behaviour:\r\nCommands execute properly\r\n\r\n### Actual behaviour:\r\n```\r\n$ flexget execute\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/flexget\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/local/lib/python3.5/dist-packages/flexget/__init__.py\", line 42, in main\r\n    manager.start()\r\n  File \"/usr/local/lib/python3.5/dist-packages/flexget/manager.py\", line 311, in start\r\n    self.initialize()\r\n  File \"/usr/local/lib/python3.5/dist-packages/flexget/manager.py\", line 211, in initialize\r\n    fire_event('manager.startup', self)\r\n  File \"/usr/local/lib/python3.5/dist-packages/flexget/event.py\", line 106, in fire_event\r\n    result = event(*args, **kwargs)\r\n  File \"/usr/local/lib/python3.5/dist-packages/flexget/event.py\", line 23, in __call__\r\n    return self.func(*args, **kwargs)\r\n  File \"/usr/local/lib/python3.5/dist-packages/flexget/utils/simple_persistence.py\", line 183, in load_taskless\r\n    SimplePersistence.load()\r\n  File \"/usr/local/lib/python3.5/dist-packages/flexget/utils/simple_persistence.py\", line 145, in load\r\n    cls.class_store[task][skv.plugin][skv.key] = skv.value\r\n  File \"/usr/local/lib/python3.5/dist-packages/sqlalchemy/orm/attributes.py\", line 293, in __get__\r\n    return self.descriptor.__get__(instance, owner)\r\n  File \"/usr/local/lib/python3.5/dist-packages/flexget/utils/database.py\", line 139, in getter\r\n    return json.loads(getattr(self, name), decode_datetime=True)\r\n  File \"/usr/local/lib/python3.5/dist-packages/flexget/utils/json.py\", line 112, in loads\r\n    return json.loads(*args, **kwargs)\r\n  File \"/usr/lib/python3.5/json/__init__.py\", line 312, in loads\r\n    s.__class__.__name__))\r\nTypeError: the JSON object must be str, not 'NoneType'\r\n```\r\n### Steps to reproduce:\r\n- Step 1: ...\r\nUpgrade Ubuntu from 15.10 to 16.04. Run flexget execute or other command.\r\n\r\n#### Config:\r\nN/A\r\n\r\n#### Log:\r\n```\r\n$ flexget -L debug execute\r\n2016-08-07 21:36 DEBUG    manager                       Figuring out config load paths\r\n2016-08-07 21:36 DEBUG    manager                       Found config: /home/jordan/.flexget/config.yml\r\n2016-08-07 21:36 DEBUG    manager                       Config file /home/jordan/.flexget/config.yml selected\r\n2016-08-07 21:36 DEBUG    manager                       sys.defaultencoding: utf-8\r\n2016-08-07 21:36 DEBUG    manager                       sys.getfilesystemencoding: utf-8\r\n2016-08-07 21:36 DEBUG    manager                       os.path.supports_unicode_filenames: False\r\n2016-08-07 21:36 DEBUG    plugin                        Trying to load plugins from: ['/home/jordan/.flexget/plugins', '/usr/local/lib/python3.5/dist-packages/flexget/plugins']\r\n2016-08-07 21:36 DEBUG    plugin                        ('Plugin `%s` requires `%s` to load.', 'memusage', 'ext lib `guppy`')\r\n2016-08-07 21:36 DEBUG    safe                          Reading from cache file /tmp/safe-0.4.words.cache\r\n2016-08-07 21:36 DEBUG    plugin                        Plugins took 1.88 seconds to load. 260 plugins in registry.\r\n2016-08-07 21:36 DEBUG    manager                       Connecting to: sqlite:////home/jordan/.flexget/db-config.sqlite\r\n2016-08-07 21:36 DEBUG    manager                       config_name: config\r\n2016-08-07 21:36 DEBUG    manager                       config_base: /home/jordan/.flexget\r\n2016-08-07 21:36 DEBUG    manager                       New config data loaded.\r\n2016-08-07 21:36 DEBUG    schema                        current flexget version already exist in db 2.2.11\r\n2016-08-07 21:36 DEBUG    manager                       Removed /home/jordan/.flexget/.config-lock\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/flexget\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/local/lib/python3.5/dist-packages/flexget/__init__.py\", line 42, in main\r\n    manager.start()\r\n  File \"/usr/local/lib/python3.5/dist-packages/flexget/manager.py\", line 311, in start\r\n    self.initialize()\r\n  File \"/usr/local/lib/python3.5/dist-packages/flexget/manager.py\", line 211, in initialize\r\n    fire_event('manager.startup', self)\r\n  File \"/usr/local/lib/python3.5/dist-packages/flexget/event.py\", line 106, in fire_event\r\n    result = event(*args, **kwargs)\r\n  File \"/usr/local/lib/python3.5/dist-packages/flexget/event.py\", line 23, in __call__\r\n    return self.func(*args, **kwargs)\r\n  File \"/usr/local/lib/python3.5/dist-packages/flexget/utils/simple_persistence.py\", line 183, in load_taskless\r\n    SimplePersistence.load()\r\n  File \"/usr/local/lib/python3.5/dist-packages/flexget/utils/simple_persistence.py\", line 145, in load\r\n    cls.class_store[task][skv.plugin][skv.key] = skv.value\r\n  File \"/usr/local/lib/python3.5/dist-packages/sqlalchemy/orm/attributes.py\", line 293, in __get__\r\n    return self.descriptor.__get__(instance, owner)\r\n  File \"/usr/local/lib/python3.5/dist-packages/flexget/utils/database.py\", line 139, in getter\r\n    return json.loads(getattr(self, name), decode_datetime=True)\r\n  File \"/usr/local/lib/python3.5/dist-packages/flexget/utils/json.py\", line 112, in loads\r\n    return json.loads(*args, **kwargs)\r\n  File \"/usr/lib/python3.5/json/__init__.py\", line 312, in loads\r\n    s.__class__.__name__))\r\nTypeError: the JSON object must be str, not 'NoneType'\r\n```\r\n\r\n### Additional information:\r\n\r\n- Flexget Version: 2.2.11\r\n- Python Version: 3.5.2\r\n- Installation method: pip\r\n- OS and version: Xubuntu 16.04.1\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Flexget/Flexget/issues/comments/238481924","html_url":"https://github.com/Flexget/Flexget/issues/1315#issuecomment-238481924","issue_url":"https://api.github.com/repos/Flexget/Flexget/issues/1315","id":238481924,"user":{"login":"cvium","id":675118,"avatar_url":"https://avatars.githubusercontent.com/u/675118?v=3","gravatar_id":"","url":"https://api.github.com/users/cvium","html_url":"https://github.com/cvium","followers_url":"https://api.github.com/users/cvium/followers","following_url":"https://api.github.com/users/cvium/following{/other_user}","gists_url":"https://api.github.com/users/cvium/gists{/gist_id}","starred_url":"https://api.github.com/users/cvium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvium/subscriptions","organizations_url":"https://api.github.com/users/cvium/orgs","repos_url":"https://api.github.com/users/cvium/repos","events_url":"https://api.github.com/users/cvium/events{/privacy}","received_events_url":"https://api.github.com/users/cvium/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T08:02:09Z","updated_at":"2016-08-09T08:02:09Z","body":"Did you only upgrade OS or also Flexget? If so, what was the old version of Flexget?"}}
{"actor":{"display_login":"cvium"}}