{"action":"closed","issue":{"url":"https://api.github.com/repos/opencog/opencog/issues/2398","repository_url":"https://api.github.com/repos/opencog/opencog","labels_url":"https://api.github.com/repos/opencog/opencog/issues/2398/labels{/name}","comments_url":"https://api.github.com/repos/opencog/opencog/issues/2398/comments","events_url":"https://api.github.com/repos/opencog/opencog/issues/2398/events","html_url":"https://github.com/opencog/opencog/issues/2398","id":173671900,"number":2398,"title":"REST API in examples","user":{"login":"StrangeTcy","id":2532099,"avatar_url":"https://avatars.githubusercontent.com/u/2532099?v=3","gravatar_id":"","url":"https://api.github.com/users/StrangeTcy","html_url":"https://github.com/StrangeTcy","followers_url":"https://api.github.com/users/StrangeTcy/followers","following_url":"https://api.github.com/users/StrangeTcy/following{/other_user}","gists_url":"https://api.github.com/users/StrangeTcy/gists{/gist_id}","starred_url":"https://api.github.com/users/StrangeTcy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StrangeTcy/subscriptions","organizations_url":"https://api.github.com/users/StrangeTcy/orgs","repos_url":"https://api.github.com/users/StrangeTcy/repos","events_url":"https://api.github.com/users/StrangeTcy/events{/privacy}","received_events_url":"https://api.github.com/users/StrangeTcy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-28T22:33:40Z","updated_at":"2016-08-28T23:00:32Z","closed_at":"2016-08-28T23:00:32Z","body":"I'm running Ubuntu 16.04 x64. To the best of my ability, I've made sure I've installed opencog correctly.\r\nWhen I tried to run `python ~/opencog/examples/restapi/start_restapi.py`, I got an error \r\n\r\n> Traceback (most recent call last):\r\n>   File \"start_restapi.py\", line 1, in <module>\r\n>     from web.api.apimain import RESTAPI\r\n> ImportError: No module named web.api.apimain\r\n\r\nThen I did `sudo pip install flask`, and now the same code returns\r\n\r\n> /usr/local/lib/python2.7/dist-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.restful is deprecated, use flask_restful instead.\r\n>   .format(x=modname), ExtDeprecationWarning\r\n> Traceback (most recent call last):\r\n>   File \"start_restapi.py\", line 1, in <module>\r\n>     from web.api.apimain import RESTAPI\r\n>   File \"/home/enoch/opencog/opencog/python/web/api/apimain.py\", line 4, in <module>\r\n>     from flask.ext.restful import Api\r\n>   File \"/usr/local/lib/python2.7/dist-packages/flask/exthook.py\", line 110, in load_module\r\n>     raise ImportError('No module named %s' % fullname)\r\n> ImportError: No module named flask.ext.restful\r\n\r\nWhen I tried to replace `flask.ext.restful` with `flask_restful `in `start_restapi.py`, I got\r\n\r\n> Traceback (most recent call last):\r\n>   File \"start_restapi.py\", line 1, in <module>\r\n>     from web.api.apimain import RESTAPI\r\n>   File \"/home/enoch/opencog/opencog/python/web/api/apimain.py\", line 4, in <module>\r\n>     from flask_restful import Api\r\n> ImportError: No module named flask_restful\r\n\r\n\r\nWhat am I doing wrong?\r\n"}}
{"actor":{"display_login":"StrangeTcy"}}