{"action":"created","issue":{"url":"https://api.github.com/repos/PyCQA/pylint-django/issues/201","repository_url":"https://api.github.com/repos/PyCQA/pylint-django","labels_url":"https://api.github.com/repos/PyCQA/pylint-django/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/PyCQA/pylint-django/issues/201/comments","events_url":"https://api.github.com/repos/PyCQA/pylint-django/issues/201/events","html_url":"https://github.com/PyCQA/pylint-django/issues/201","id":384110679,"node_id":"MDU6SXNzdWUzODQxMTA2Nzk=","number":201,"title":"Error when using Astroid 2.1.0","user":{"login":"clintonb","id":910510,"node_id":"MDQ6VXNlcjkxMDUxMA==","avatar_url":"https://avatars0.githubusercontent.com/u/910510?v=4","gravatar_id":"","url":"https://api.github.com/users/clintonb","html_url":"https://github.com/clintonb","followers_url":"https://api.github.com/users/clintonb/followers","following_url":"https://api.github.com/users/clintonb/following{/other_user}","gists_url":"https://api.github.com/users/clintonb/gists{/gist_id}","starred_url":"https://api.github.com/users/clintonb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clintonb/subscriptions","organizations_url":"https://api.github.com/users/clintonb/orgs","repos_url":"https://api.github.com/users/clintonb/repos","events_url":"https://api.github.com/users/clintonb/events{/privacy}","received_events_url":"https://api.github.com/users/clintonb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-25T19:36:43Z","updated_at":"2018-11-26T11:20:13Z","closed_at":null,"author_association":"NONE","body":"I get the following error when running `pylint` for a fresh install:\r\n\r\n```\r\npylint --rcfile=pylintrc todo_project_name *.py\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/pylint\", line 11, in <module>\r\n    sys.exit(run_pylint())\r\n  File \"/usr/local/lib/python3.6/site-packages/pylint/__init__.py\", line 20, in run_pylint\r\n    Run(sys.argv[1:])\r\n  File \"/usr/local/lib/python3.6/site-packages/pylint/lint.py\", line 1568, in __init__\r\n    linter.load_plugin_modules(plugins)\r\n  File \"/usr/local/lib/python3.6/site-packages/pylint/lint.py\", line 650, in load_plugin_modules\r\n    module = modutils.load_module_from_name(modname)\r\n  File \"/usr/local/lib/python3.6/site-packages/astroid/modutils.py\", line 202, in load_module_from_name\r\n    return load_module_from_modpath(dotted_name.split(\".\"), path, use_sys)\r\n  File \"/usr/local/lib/python3.6/site-packages/astroid/modutils.py\", line 245, in load_module_from_modpath\r\n    module = imp.load_module(curname, mp_file, mp_filename, mp_desc)\r\n  File \"/usr/local/lib/python3.6/imp.py\", line 245, in load_module\r\n    return load_package(name, filename)\r\n  File \"/usr/local/lib/python3.6/imp.py\", line 217, in load_package\r\n    return _load(spec)\r\n  File \"<frozen importlib._bootstrap>\", line 684, in _load\r\n  File \"<frozen importlib._bootstrap>\", line 665, in _load_unlocked\r\n  File \"<frozen importlib._bootstrap_external>\", line 678, in exec_module\r\n  File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\r\n  File \"/usr/local/lib/python3.6/site-packages/pylint_django/__init__.py\", line 6, in <module>\r\n    from pylint_django import plugin\r\n  File \"/usr/local/lib/python3.6/site-packages/pylint_django/plugin.py\", line 5, in <module>\r\n    from pylint_django.checkers import register_checkers\r\n  File \"/usr/local/lib/python3.6/site-packages/pylint_django/checkers/__init__.py\", line 3, in <module>\r\n    from pylint_django.checkers.models import ModelChecker\r\n  File \"/usr/local/lib/python3.6/site-packages/pylint_django/checkers/models.py\", line 11, in <module>\r\n    from pylint_django.utils import node_is_subclass, PY3\r\n  File \"/usr/local/lib/python3.6/site-packages/pylint_django/utils.py\", line 4, in <module>\r\n    from astroid.util import YES\r\nImportError: cannot import name 'YES'\r\n```\r\n\r\nThe offending code is at \r\nhttps://github.com/PyCQA/pylint-django/blob/2ef61325fa2f0ca291099a599c197f79f01c5bb1/pylint_django/utils.py#L4\r\n\r\nAstroid 2.1.0 was released a couple hours ago.\r\n\r\nGiven this project's dependency on Astroid, should it be listed in `setup.py`? That dependency needs to be limited to 2.0.4 for the time being."},"comment":{"url":"https://api.github.com/repos/PyCQA/pylint-django/issues/comments/441605356","html_url":"https://github.com/PyCQA/pylint-django/issues/201#issuecomment-441605356","issue_url":"https://api.github.com/repos/PyCQA/pylint-django/issues/201","id":441605356,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTYwNTM1Ng==","user":{"login":"kerrermanisNL","id":1745824,"node_id":"MDQ6VXNlcjE3NDU4MjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1745824?v=4","gravatar_id":"","url":"https://api.github.com/users/kerrermanisNL","html_url":"https://github.com/kerrermanisNL","followers_url":"https://api.github.com/users/kerrermanisNL/followers","following_url":"https://api.github.com/users/kerrermanisNL/following{/other_user}","gists_url":"https://api.github.com/users/kerrermanisNL/gists{/gist_id}","starred_url":"https://api.github.com/users/kerrermanisNL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerrermanisNL/subscriptions","organizations_url":"https://api.github.com/users/kerrermanisNL/orgs","repos_url":"https://api.github.com/users/kerrermanisNL/repos","events_url":"https://api.github.com/users/kerrermanisNL/events{/privacy}","received_events_url":"https://api.github.com/users/kerrermanisNL/received_events","type":"User","site_admin":false},"created_at":"2018-11-26T11:20:13Z","updated_at":"2018-11-26T11:20:13Z","author_association":"NONE","body":"Just so it's very explicitly placed here, you can fix this by setting `astroid==2.0.4` in your requirements."}}
{"actor":{"display_login":"kerrermanisNL"}}