From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Babel Tramp python [8.2.10 (release_8.2.10 @ /usr/share/emacs/25.3/lisp/org/)] Date: Wed, 20 Sep 2017 12:35:23 +0200 Message-ID: <87poal64k4.fsf@nicolasgoaziou.fr> References: <83d16mpd5u.fsf@slabber.insubstantialarts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dufFr-0006Sh-H5 for emacs-orgmode@gnu.org; Wed, 20 Sep 2017 09:41:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dufFo-0004Li-F1 for emacs-orgmode@gnu.org; Wed, 20 Sep 2017 09:41:31 -0400 Received: from slow1-d.mail.gandi.net ([217.70.178.86]:47699) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dufFo-0004Kd-7b for emacs-orgmode@gnu.org; Wed, 20 Sep 2017 09:41:28 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by slow1-d.mail.gandi.net (Postfix) with ESMTP id 18C1947EACE for ; Wed, 20 Sep 2017 12:35:25 +0200 (CEST) In-Reply-To: <83d16mpd5u.fsf@slabber.insubstantialarts.com> (emacswatcher@gmail.com's message of "Tue, 19 Sep 2017 14:54:37 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacswatcher@gmail.com Cc: emacs-orgmode@gnu.org Hello, emacswatcher@gmail.com writes: > Given emacs -Q with this file: > > +++ test.org > > #+TITLE: Babel remote processing test > #+AUTHOR: jjh > > #+EMAIL: emacswatcher@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 =E2=80=98/tmp/tramp.1353PZN=E2=80=99 using =E2= =80=98base64-encode-region=E2=80=99...done > Tramp: Decoding remote file =E2=80=98/ssh:root@[my remote host]:/tmp/pyth= on-1353CPH=E2=80=99 using =E2=80=98base64 -d -i >%s=E2=80=99...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, --=20 Nicolas Goaziou