[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: Babel Tramp python [8.2.10 (release_8.2.10 @ /usr/share/ema
From: |
Nicolas Goaziou |
Subject: |
Re: [O] 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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Hello,
address@hidden writes:
> Given emacs -Q with this file:
>
> +++ test.org
>
> #+TITLE: Babel remote processing test
> #+AUTHOR: jjh
>
> #+EMAIL: address@hidden
>
> * python
>
> #+BEGIN_SRC python :dir /ssh:address@hidden 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:address@hidden 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