{"action":"opened","issue":{"url":"https://api.github.com/repos/DamnWidget/anaconda/issues/432","repository_url":"https://api.github.com/repos/DamnWidget/anaconda","labels_url":"https://api.github.com/repos/DamnWidget/anaconda/issues/432/labels{/name}","comments_url":"https://api.github.com/repos/DamnWidget/anaconda/issues/432/comments","events_url":"https://api.github.com/repos/DamnWidget/anaconda/issues/432/events","html_url":"https://github.com/DamnWidget/anaconda/issues/432","id":132869110,"number":432,"title":"ImportValidator doesn't like relative imports","user":{"login":"wsanchez","id":50002,"avatar_url":"https://avatars.githubusercontent.com/u/50002?v=3","gravatar_id":"","url":"https://api.github.com/users/wsanchez","html_url":"https://github.com/wsanchez","followers_url":"https://api.github.com/users/wsanchez/followers","following_url":"https://api.github.com/users/wsanchez/following{/other_user}","gists_url":"https://api.github.com/users/wsanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/wsanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsanchez/subscriptions","organizations_url":"https://api.github.com/users/wsanchez/orgs","repos_url":"https://api.github.com/users/wsanchez/repos","events_url":"https://api.github.com/users/wsanchez/events{/privacy}","received_events_url":"https://api.github.com/users/wsanchez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-11T01:47:06Z","updated_at":"2016-02-11T01:47:06Z","closed_at":null,"body":"If I have an import such as:\r\n\r\n```python\r\nfrom .scope import Scope\r\n```\r\n\r\nI get an error:\r\n\r\n```\r\n[E] ImportValidator (801): can't import .scope Scope\r\n```\r\n\r\nI suspect, but don't know how to confirm, that this may be related to how one invokes the python interpreter; for example:\r\n\r\n```console\r\nwsanchez$ python deps/component.py\r\nTraceback (most recent call last):\r\n  File \"deps/component.py\", line 10, in <module>\r\n    from .scope import Scope\r\nValueError: Attempted relative import in non-package\r\nwsanchez$ python -m deps.component\r\nwsanchez$ \r\n```\r\n"}}