Hello,
the exact same error occurs for me:
https://emacs.stackexchange.com/questions/72243/macos-org-babel-python-with-session-output-give-python-el-eval
I use python 3.9 so guessing switching the version won't help.
#+begin_src python :session :results output
print("yes")
#+End_src
#+Results:
: __PYTHON_EL_eval("try:\n with
open('/var/folders/16/snlwm5z17zz1b1x09vvvrdg04v6pgk/T/babel-hWQZ8X/python-sPLVoL')
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('
do you possibly have any idea on how to fix this?
Sorry to bother you and thanks for the attention!
Robert