{"action":"created","issue":{"url":"https://api.github.com/repos/projectatomic/atomic/issues/112","labels_url":"https://api.github.com/repos/projectatomic/atomic/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/projectatomic/atomic/issues/112/comments","events_url":"https://api.github.com/repos/projectatomic/atomic/issues/112/events","html_url":"https://github.com/projectatomic/atomic/issues/112","id":100135334,"number":112,"title":"Fix setup.py","user":{"login":"rtnpro","id":231684,"avatar_url":"https://avatars.githubusercontent.com/u/231684?v=3","gravatar_id":"","url":"https://api.github.com/users/rtnpro","html_url":"https://github.com/rtnpro","followers_url":"https://api.github.com/users/rtnpro/followers","following_url":"https://api.github.com/users/rtnpro/following{/other_user}","gists_url":"https://api.github.com/users/rtnpro/gists{/gist_id}","starred_url":"https://api.github.com/users/rtnpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtnpro/subscriptions","organizations_url":"https://api.github.com/users/rtnpro/orgs","repos_url":"https://api.github.com/users/rtnpro/repos","events_url":"https://api.github.com/users/rtnpro/events{/privacy}","received_events_url":"https://api.github.com/users/rtnpro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-10T18:23:24Z","updated_at":"2015-08-25T06:15:40Z","closed_at":"2015-08-13T09:47:22Z","body":"Issues:\r\n- Importing ``__version__`` from Atomic package causes a race condition, where a new user cannot access ``setup.py`` without pre installing dependencies.\r\n- ``python setup.py develop`` does not work.\r\n- Install Python dependencies on running ``setup.py {develop,install}``\r\n- Fix linting errors"},"comment":{"url":"https://api.github.com/repos/projectatomic/atomic/issues/comments/134492154","html_url":"https://github.com/projectatomic/atomic/issues/112#issuecomment-134492154","issue_url":"https://api.github.com/repos/projectatomic/atomic/issues/112","id":134492154,"user":{"login":"rtnpro","id":231684,"avatar_url":"https://avatars.githubusercontent.com/u/231684?v=3","gravatar_id":"","url":"https://api.github.com/users/rtnpro","html_url":"https://github.com/rtnpro","followers_url":"https://api.github.com/users/rtnpro/followers","following_url":"https://api.github.com/users/rtnpro/following{/other_user}","gists_url":"https://api.github.com/users/rtnpro/gists{/gist_id}","starred_url":"https://api.github.com/users/rtnpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtnpro/subscriptions","organizations_url":"https://api.github.com/users/rtnpro/orgs","repos_url":"https://api.github.com/users/rtnpro/repos","events_url":"https://api.github.com/users/rtnpro/events{/privacy}","received_events_url":"https://api.github.com/users/rtnpro/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T06:15:40Z","updated_at":"2015-08-25T06:15:40Z","body":"I am trying to setup this repo from scratch again, today, and I ran into this error:\r\n```\r\n(atomic)[rtnpro@rtnpro atomic]$ python setup.py develop\r\nTraceback (most recent call last):\r\n  File \"setup.py\", line 9, in <module>\r\n    from Atomic import __version__\r\n  File \"/home/rtnpro/workspace/projectatomic/atomic/Atomic/__init__.py\", line 3, in <module>\r\n    from .pulp import PulpServer, PulpConfig\r\n  File \"/home/rtnpro/workspace/projectatomic/atomic/Atomic/pulp.py\", line 2, in <module>\r\n    import requests\r\nImportError: No module named requests\r\n(atomic)[rtnpro@rtnpro atomic]$ python setup.py install\r\nTraceback (most recent call last):\r\n  File \"setup.py\", line 9, in <module>\r\n    from Atomic import __version__\r\n  File \"/home/rtnpro/workspace/projectatomic/atomic/Atomic/__init__.py\", line 3, in <module>\r\n    from .pulp import PulpServer, PulpConfig\r\n  File \"/home/rtnpro/workspace/projectatomic/atomic/Atomic/pulp.py\", line 2, in <module>\r\n    import requests\r\nImportError: No module named requests\r\n```\r\nIt seems that this bug got introduced by 106878815f5a5dd61b0e527c502fb6eeaf0c9c67 \r\n\r\nI do not see a way to execute\r\n``from Atomic import __version__``\r\nwithout installing requests beforehand. The fix in this pull request to fetch version from a common place seemed to work fine.\r\n\r\nPlease share your thoughts."}}