#+begin_src python :session :results output
print("yes")
#+end_src
With org-babel-execute-src-block
command, the result is:
#+RESULTS:
: __PYTHON_EL_eval("try:\n with open('/var/folders/hh/lnftkrwn1tv9b63ptnphj_gm0000gp/T/babel-ww4KL0/python-AICyg8') as __org_babel_python_tmpfile:\n exec(compile(__org_babel_python_tmpfile.read(), __org_babel_python_tmpfile.name, 'exec'))\nexcept:\n raise\nfinally:\n print('
not "yes".
:results value
is behaved as expected.
Error message:
error in process filter: sort: Wrong type argument: stringp, (\, "python")
error in process filter: Wrong type argument: stringp, (\, "python")
Can’t guess python-indent-offset, using defaults: 4
Version:
GNU Emacs 28.1 (build 1, x86_64-apple-darwin19.6.0, Carbon Version 162 AppKit 1894.6)
of 2022-04-28
org mode 9.5.3
Update: I find the error gone when I use python 3.9 instead of python 3.7. I do not understand the link between the issue and version of python, but it does fix the issue.