{"action":"created","issue":{"url":"https://api.github.com/repos/Flexget/Flexget/issues/1093","repository_url":"https://api.github.com/repos/Flexget/Flexget","labels_url":"https://api.github.com/repos/Flexget/Flexget/issues/1093/labels{/name}","comments_url":"https://api.github.com/repos/Flexget/Flexget/issues/1093/comments","events_url":"https://api.github.com/repos/Flexget/Flexget/issues/1093/events","html_url":"https://github.com/Flexget/Flexget/issues/1093","id":151012247,"number":1093,"title":"Crash on start flexget 2.0.2","user":{"login":"danageis","id":18620188,"avatar_url":"https://avatars.githubusercontent.com/u/18620188?v=3","gravatar_id":"","url":"https://api.github.com/users/danageis","html_url":"https://github.com/danageis","followers_url":"https://api.github.com/users/danageis/followers","following_url":"https://api.github.com/users/danageis/following{/other_user}","gists_url":"https://api.github.com/users/danageis/gists{/gist_id}","starred_url":"https://api.github.com/users/danageis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danageis/subscriptions","organizations_url":"https://api.github.com/users/danageis/orgs","repos_url":"https://api.github.com/users/danageis/repos","events_url":"https://api.github.com/users/danageis/events{/privacy}","received_events_url":"https://api.github.com/users/danageis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-04-26T00:21:58Z","updated_at":"2016-05-10T09:17:14Z","closed_at":"2016-04-29T06:06:47Z","body":"After upgrade (via pip), launching flexget crashes with:\r\n```\r\nflexget\r\nTraceback (most recent call last):\r\nFile \"/usr/lib/flexget\", line 7, in \r\nfrom flexget import main\r\nFile \"/usr/lib/python2.7/site-packages/flexget/__init__.py\", line 11, in \r\nfrom flexget import logger, plugin\r\nFile \"/usr/lib/python2.7/site-packages/flexget/logger.py\", line 3, in \r\nfrom past.builtins import basestring\r\nFile \"/usr/lib/python2.7/site-packages/past/__init__.py\", line 88, in \r\nfrom past.translation import install_hooks as autotranslate\r\nFile \"/usr/lib/python2.7/site-packages/past/translation/__init__.py\", line 41, in \r\nfrom lib2to3.pgen2.parse import ParseError\r\nImportError: No module named lib2to3.pgen2.parse\r\n```\r\nSeem to be fixed (temporarily) by commenting out the following lines in these 2 files:\r\n```\r\n/usr/lib/python2.7/site-packages/past/translation/__init__.py\r\n     #from lib2to3.pgen2.parse import ParseError\r\n     #from lib2to3.refactor import RefactoringTool\r\n/usr/lib/python2.7/site-packages/libfuturize/fixes/__init__.py\r\n     #from lib2to3 import refactor\r\n```\r\nThis is on a NAS running generic linux w/ busybox and python 2.7.2"},"comment":{"url":"https://api.github.com/repos/Flexget/Flexget/issues/comments/218103110","html_url":"https://github.com/Flexget/Flexget/issues/1093#issuecomment-218103110","issue_url":"https://api.github.com/repos/Flexget/Flexget/issues/1093","id":218103110,"user":{"login":"programatix","id":3293865,"avatar_url":"https://avatars.githubusercontent.com/u/3293865?v=3","gravatar_id":"","url":"https://api.github.com/users/programatix","html_url":"https://github.com/programatix","followers_url":"https://api.github.com/users/programatix/followers","following_url":"https://api.github.com/users/programatix/following{/other_user}","gists_url":"https://api.github.com/users/programatix/gists{/gist_id}","starred_url":"https://api.github.com/users/programatix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/programatix/subscriptions","organizations_url":"https://api.github.com/users/programatix/orgs","repos_url":"https://api.github.com/users/programatix/repos","events_url":"https://api.github.com/users/programatix/events{/privacy}","received_events_url":"https://api.github.com/users/programatix/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T09:17:14Z","updated_at":"2016-05-10T09:17:14Z","body":"Does this mean that flexget is discontinuing support for python 2? This is because devices with python 2 only wouldn't be built with lib2to3, no? I suppose the before importing lib2to3 modules, a check should be done to see if it is running on python 2 or 3 and only import it if python 3 is being used."}}