There was an error in the log saying that the function couldn't be found
[2020-01-20 17:45:13:345] [ERROR] Python function 'deduction_formula' not
found in module '__main__'! (/home/rasberry/git/atomspace/opencog/cython/
PythonEval.cc:1003)
that was a helpful hint
(I had stopped looking at it
Well, OK, I'm not sure if that's a bug or not, and at any rate, there
should be some error message that would make this clear for the next
person. Anatoly, Vitaly, opinions? Can you fix this so that this kind of
user-error is easier to track down?
--linas
(I can't cc Anatoly, can't find his
Thanks!
what I found out is: the function needs to be defined in the python file
that is actually run, not any of those that are imported, even if all the
rest of the interaction happens in imported modules and files.
Am Montag, 20. Januar 2020 22:07:04 UTC schrieb linas:
>
> It goes here:
>
It goes here:
https://github.com/opencog/atomspace/blob/873431bdae3b3f44ed26c47993fee8b2979d7cf9/opencog/atoms/execution/ExecutionOutputLink.cc#L202-L211
and then into here
https://github.com/opencog/atomspace/blob/873431bdae3b3f44ed26c47993fee8b2979d7cf9/opencog/cython/PythonEval.cc#L995
and
Hiya,
with your help I got most of my reasoning running in a test setting,
running it under my ROS node though, fails due to the python function
(which calculates truth values) not being called.
Does anyone have a clue how the code searches for the function name when we
call it like so: