Hello, emacswatc...@gmail.com writes:
> Given emacs -Q with this file: > > +++ test.org > > #+TITLE: Babel remote processing test > #+AUTHOR: jjh > > #+EMAIL: emacswatc...@gmail.com > > * python > > #+BEGIN_SRC python :dir /ssh:root@[some remote host]: > import socket > return ("Hostname is %s" % socket.gethostname()) > #+END_SRC > > --- test.org > > and with python added to org-babel-language-list: > > (setq org-babel-load-languages > ((python . t) > (sh . t) > (emacs-lisp . t))) > > executing the source block with a valid remote host returns in *Messsages*: > > executing Python code block... > Tramp: Encoding local file ‘/tmp/tramp.1353PZN’ using > ‘base64-encode-region’...done > Tramp: Decoding remote file ‘/ssh:root@[my remote host]:/tmp/python-1353CPH’ > using ‘base64 -d -i >%s’...done > org-babel-local-file-name: Invalid function: with-parsed-tramp-file-name This sounds like an issue with Emacs/Tramp, not Org. Org calls `file-local-name', if it exists (since Emacs 26.0.50) or `file-remote-p' otherwise. In particular, it doesn't call `with-parsed-tramp-file-name' directly. Regards, -- Nicolas Goaziou