Hi everyone,
I'm new to OpenCog. Knew about it for a few years and finally decided to 
start exploring!
I'm going through the tutorials now, and I'm stuck at launching the Python 
API. I could successfully run the code 
in http://wiki.opencog.org/w/Getting_Started_with_Atoms_and_the_Scheme_Shell, 
so I assume that at least some OpenCog modules are working properly.
However, now, when I try to launch the REST API as described 
in http://wiki.opencog.org/w/Using_the_REST_API, I am getting errors.

I noticed that one of the directories that should be added to PYTHONPATH
(/usr/local/share/opencog/python) does not exist on my system. The only 
directory in /usr/local/share/opencog is scm. I don't know if this is 
normal.

I located start_restapi.py in /home/pavel/opencog/examples/restapi/. Upon 
launching I got the error that the module 'opencog.cogserver' could not be 
found. I located cogserver/cogserver.py 
in /home/pavel/opencog/opencog/python/test_atomspace and added that to 
PYTHONPATH. The I got this error:

/home/pavel/opencog/opencog/python/web/api/apimain.py:4: 
ExtDeprecationWarning: Importing flask.ext.restful is deprecated, use 
flask_restful instead.
  from flask.ext.restful import Api
/home/pavel/opencog/opencog/python/web/api/apimain.py:5: 
ExtDeprecationWarning: Importing flask.ext.cors is deprecated, use 
flask_cors instead.
  from flask.ext.cors import CORS
/home/pavel/opencog/opencog/python/web/api/apiatomcollection.py:4: 
ExtDeprecationWarning: Importing flask.ext.restful.reqparse is deprecated, 
use flask_restful.reqparse instead.
  from flask.ext.restful import Resource, reqparse, marshal
/home/pavel/opencog/opencog/python/web/api/mappers.py:12: 
ExtDeprecationWarning: Importing flask.ext.restful.fields is deprecated, use 
flask_restful.fields instead.
  from flask.ext.restful import fields, marshal
/home/pavel/opencog/opencog/python/web/api/apiatomcollection.py:8: 
ExtDeprecationWarning: Importing flask.ext.restful.utils is deprecated, use 
flask_restful.utils instead.
  from flask.ext.restful.utils import cors
/home/pavel/opencog/opencog/python/web/api/apiatomcollection.py:8: 
ExtDeprecationWarning: Importing flask.ext.restful.utils.cors is deprecated, 
use flask_restful.utils.cors instead.
  from flask.ext.restful.utils import cors
Traceback (most recent call last):
  File "/home/pavel/opencog/examples/restapi/start_restapi.py", line 1, in 
<module>
    from web.api.apimain import RESTAPI
  File "/home/pavel/opencog/opencog/python/web/api/apimain.py", line 9, in 
<module>
    from apischeme import *
  File "/home/pavel/opencog/opencog/python/web/api/apischeme.py", line 5, in 
<module>
    from opencog.scheme_wrapper import scheme_eval, __init__
  File "atomspace.pxd", line 143, in init opencog.scheme_wrapper (/tmp/
atomspace-master/build/opencog/cython/opencog/scheme_wrapper.cpp:1628)
KeyError: '__pyx_vtable__'


This is where I'm stuck. Please help! :)
My system is Ubuntu 14.04 server.

Pavel



-- 
You received this message because you are subscribed to the Google Groups 
"opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/opencog/e8dec361-a638-4c8d-8dae-ca335132a30b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to