unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#57786: 28.1; run-python fails when using tramp-sshfs
@ 2022-09-13 22:55 sbaugh
  2022-09-14  7:29 ` Michael Albinus
  0 siblings, 1 reply; 4+ messages in thread
From: sbaugh @ 2022-09-13 22:55 UTC (permalink / raw)
  To: 57786


1. Open a remote Python file with /sshfs:hostname:/path/to/file.py
2. Hit C-c C-p (run-python) to start a Python REPL
3. Observe a failure with the message:
tramp-send-string: Process *tramp/sshfs earth* not running



In GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars)
Windowing system distributor 'The X.Org Foundation', version 11.0.12013000
System Description: NixOS 21.11 (Porcupine)

Configured using:
 'configure
 --prefix=/nix/store/mdi1yi5y3nnm2bwm34qv41nxgpnvqb2s-emacs-28.1
 --disable-build-details --with-modules --with-x-toolkit=lucid
 --with-xft --with-cairo'

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY
PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE
XIM XPM LUCID ZLIB

Important settings:
  value of $EMACSLOADPATH: 
  value of $EMACSNATIVELOADPATH: /nix/store/lxhvfz483p69srg7xnqai2ycni628v8a-emacs-packages-deps/share/emacs/native-lisp::
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#57786: 28.1; run-python fails when using tramp-sshfs
  2022-09-13 22:55 bug#57786: 28.1; run-python fails when using tramp-sshfs sbaugh
@ 2022-09-14  7:29 ` Michael Albinus
  2022-09-14 11:25   ` Spencer Baugh
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Albinus @ 2022-09-14  7:29 UTC (permalink / raw)
  To: sbaugh; +Cc: 57786

sbaugh@catern.com writes:

Hi,

> 1. Open a remote Python file with /sshfs:hostname:/path/to/file.py
> 2. Hit C-c C-p (run-python) to start a Python REPL
> 3. Observe a failure with the message:
> tramp-send-string: Process *tramp/sshfs earth* not running

I can reproduce it with Emacs 28.1, 28.2 and 29.0.50.

However, it seems that this isn't supported by python.el. It uses
internal Tramp functions from tramp-sh.el, so it is unlikely it will run
over an sshfs connection.

Perhaps an error message from python.el is needed, saying "Remote
connection `sshfs' isn't supported for processes". or alike.

Best regards, Michael.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#57786: 28.1; run-python fails when using tramp-sshfs
  2022-09-14  7:29 ` Michael Albinus
@ 2022-09-14 11:25   ` Spencer Baugh
  2022-09-14 11:39     ` Michael Albinus
  0 siblings, 1 reply; 4+ messages in thread
From: Spencer Baugh @ 2022-09-14 11:25 UTC (permalink / raw)
  To: Michael Albinus; +Cc: 57786

Michael Albinus <michael.albinus@gmx.de> writes:
> sbaugh@catern.com writes:
>> 1. Open a remote Python file with /sshfs:hostname:/path/to/file.py
>> 2. Hit C-c C-p (run-python) to start a Python REPL
>> 3. Observe a failure with the message:
>> tramp-send-string: Process *tramp/sshfs earth* not running
>
> I can reproduce it with Emacs 28.1, 28.2 and 29.0.50.
>
> However, it seems that this isn't supported by python.el. It uses
> internal Tramp functions from tramp-sh.el, so it is unlikely it will run
> over an sshfs connection.
>
> Perhaps an error message from python.el is needed, saying "Remote
> connection `sshfs' isn't supported for processes". or alike.

Seems like a bug in python.el then; the sshfs TRAMP method has better
performance than the ssh method, so it would be nice to be able to use
it when editing Python files...





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#57786: 28.1; run-python fails when using tramp-sshfs
  2022-09-14 11:25   ` Spencer Baugh
@ 2022-09-14 11:39     ` Michael Albinus
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Albinus @ 2022-09-14 11:39 UTC (permalink / raw)
  To: Spencer Baugh; +Cc: Fabián E. Gallina, Augusto Stoffel, 57786

Spencer Baugh <sbaugh@catern.com> writes:

Hi Spencer,

>>> 1. Open a remote Python file with /sshfs:hostname:/path/to/file.py
>>> 2. Hit C-c C-p (run-python) to start a Python REPL
>>> 3. Observe a failure with the message:
>>> tramp-send-string: Process *tramp/sshfs earth* not running
>>
>> I can reproduce it with Emacs 28.1, 28.2 and 29.0.50.
>>
>> However, it seems that this isn't supported by python.el. It uses
>> internal Tramp functions from tramp-sh.el, so it is unlikely it will run
>> over an sshfs connection.
>>
>> Perhaps an error message from python.el is needed, saying "Remote
>> connection `sshfs' isn't supported for processes". or alike.
>
> Seems like a bug in python.el then; the sshfs TRAMP method has better
> performance than the ssh method, so it would be nice to be able to use
> it when editing Python files...

Perhaps. I'm adding Fabián and Augusto to Cc.

Note that there were discsussions in the emacs-devel ML to "normalize"
the Tramp use in Python. This is mainly stalled, because I have no real
insight what Python needs.

Best regards, Michael.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-14 11:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-13 22:55 bug#57786: 28.1; run-python fails when using tramp-sshfs sbaugh
2022-09-14  7:29 ` Michael Albinus
2022-09-14 11:25   ` Spencer Baugh
2022-09-14 11:39     ` Michael Albinus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).