i get a segfault also, you should post a githubb issue.
On Thursday, December 28, 2017 at 11:59:36 AM UTC-5, Xabush Semrie wrote:
>
> I have MOSES training results in scheme format that is I want to import to
> the atomspace. I am using the OpenCog python api to access the atomsapce
> and import the results, However, in trying to do I am getting *"Segmentation
> fault (core dumped)" *error. To demonstrate what I am trying to do, here
> is a snippet of code I am using.
>
> from opencog.scheme_wrapper import scheme_eval, scheme_eval_as
>
> atomspace = scheme_eval_as('(cog-atomspace)')
>
>
>
> with open('/path/to/the/result_file', 'r') as fp:
> scm = fp.read()
> response = scheme_eval(atomspace, scm) #this is line is the cause of the
> error.
>
>
> When I instantiate the atomspace using its constructor, the above error
> does NOT happen. The problem in instantiating the atomspace through the
> constructor is that I cannot get response when I use the atomspace instance
> with the OpenCog REST API. What can be the cause this error? How can I
> resolve it?
>
> P.S: I have attached the results file so that you can take a look at it.
>
>
> Thanks in advance.
>
>
--
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/aee8dde5-def8-4539-ac9b-eea75e197cd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.