{"action":"closed","issue":{"url":"https://api.github.com/repos/Alignak-monitoring-contrib/alignak-backend/issues/3","labels_url":"https://api.github.com/repos/Alignak-monitoring-contrib/alignak-backend/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Alignak-monitoring-contrib/alignak-backend/issues/3/comments","events_url":"https://api.github.com/repos/Alignak-monitoring-contrib/alignak-backend/issues/3/events","html_url":"https://github.com/Alignak-monitoring-contrib/alignak-backend/issues/3","id":107466556,"number":3,"title":"Script cfg_to_backend installation / configuration","user":{"login":"mohierf","id":2932687,"avatar_url":"https://avatars.githubusercontent.com/u/2932687?v=3","gravatar_id":"","url":"https://api.github.com/users/mohierf","html_url":"https://github.com/mohierf","followers_url":"https://api.github.com/users/mohierf/followers","following_url":"https://api.github.com/users/mohierf/following{/other_user}","gists_url":"https://api.github.com/users/mohierf/gists{/gist_id}","starred_url":"https://api.github.com/users/mohierf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohierf/subscriptions","organizations_url":"https://api.github.com/users/mohierf/orgs","repos_url":"https://api.github.com/users/mohierf/repos","events_url":"https://api.github.com/users/mohierf/events{/privacy}","received_events_url":"https://api.github.com/users/mohierf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Alignak-monitoring-contrib/alignak-backend/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-21T08:39:17Z","updated_at":"2015-10-20T15:27:10Z","closed_at":"2015-10-20T15:27:10Z","body":"1/ alignak should be included in the requirements.txt\r\n\r\n2/ after having installed alignak (`pip install .` in alignak repo directory, the script raises an error: \r\n```\r\n$python cfg_to_backend.py\r\nTraceback (most recent call last):\r\n  File \"cfg_to_backend.py\", line 25, in <module>\r\n    from alignak.objects.config import Config\r\n  File \"/usr/local/lib/python2.7/dist-packages/alignak/objects/config.py\", line 121, in <module>\r\n    from alignak.daemon import get_cur_user, get_cur_group\r\n  File \"/usr/local/lib/python2.7/dist-packages/alignak/daemon.py\", line 157, in <module>\r\n    from alignak import __version__\r\nImportError: cannot import name __version__\r\n```\r\n\r\n3/ first login is refused\r\n```\r\ncurl -H \"Content-Type: application/json\" -X POST -d '{\"username\":\"admin\",\"password\":\"admin\"}' http://localhost:5000/login\r\n```"}}