Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not having much luck connecting with run-python #22

Open
olymk2 opened this issue Apr 8, 2018 · 1 comment
Open

Not having much luck connecting with run-python #22

olymk2 opened this issue Apr 8, 2018 · 1 comment

Comments

@olymk2
Copy link

olymk2 commented Apr 8, 2018

Given up with pony and just trying to use standard run-python with out any luck.

currently getting this error

emacs-27.0.50: /docker:hackdev_django_1:/usr/local/bin/python: No such file or directory

Process Python exited abnormally with code 127

Trace back is this, whats strange is that using find file it can resolve the python binary using a docker tramp path only when calling run-python does it not work.

;; Emacs: 27.0.50 Tramp: 2.4.0-pre -*- mode: outline; -*-
16:16:40.418263 tramp-maybe-open-connection (3) # Opening connection for hackdev_django_1 using docker...
16:16:40.420056 tramp-maybe-open-connection (6) # /bin/sh -i
16:16:40.420409 tramp-wait-for-regexp (6) # 
#$ 
16:16:40.420925 tramp-maybe-open-connection (3) # Sending command ‘exec docker  exec -it  hackdev_django_1 sh’
16:16:40.421006 tramp-send-command (6) # exec docker  exec -it  hackdev_django_1 sh
16:16:40.421219 tramp-process-actions (3) # Waiting for prompts from remote shell...
16:16:40.463111 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
16:16:40.463238 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:\0? *\)\'" from remote shell
16:16:40.463361 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
16:16:40.463453 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
16:16:40.463532 tramp-process-one-action (5) # Call ‘tramp-action-succeed’
16:16:40.463625 tramp-process-actions (6) # 
$ 
16:16:40.463833 tramp-process-actions (3) # Waiting for prompts from remote shell...done
16:16:40.464003 tramp-maybe-open-connection (3) # Found remote shell prompt on ‘hackdev_django_1’
16:16:40.471252 tramp-open-shell (5) # Opening remote shell ‘/bin/sh’...
16:16:40.471419 tramp-send-command (6) # exec env TERM='dumb' INSIDE_EMACS='27.0.50,tramp:2.4.0-pre' ENV='' HISTFILE=/dev/null PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3='' /bin/sh 
16:16:40.473149 tramp-wait-for-regexp (6) # 
exec env TERM='dumb' INSIDE_EMACS='27.0.50,tramp:2.4.0-pre' ENV='' HISTFILE=/dev/null PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3='' /bin/sh 
#$ 
16:16:40.473271 tramp-send-command (6) # (cd /dev/) 2>/dev/null; echo tramp_exit_status $?
16:16:40.473844 tramp-wait-for-regexp (6) # 
(cd /dev/) 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 0
#$ 
16:16:40.473936 tramp-open-shell (5) # Opening remote shell ‘/bin/sh’...done
16:16:40.473988 tramp-open-connection-setup-interactive-shell (5) # Setting up remote shell environment
16:16:40.474039 tramp-send-command (6) # stty -inlcr -onlcr -echo kill '^U' erase '^H'
16:16:40.475446 tramp-wait-for-regexp (6) # 
stty -inlcr -onlcr -echo kill '^U' erase '^H'
#$ 
16:16:40.475520 tramp-send-command (6) # echo foo
16:16:40.475831 tramp-wait-for-regexp (6) # 
foo
#$ 
16:16:40.475908 tramp-open-connection-setup-interactive-shell (5) # Setting shell prompt
16:16:40.475987 tramp-send-command (6) # PS1=///22e5e97ef717b6a70328df4aab757fb1\#\$ PS2='' PS3='' PROMPT_COMMAND=''
16:16:40.476307 tramp-wait-for-regexp (6) # 
///22e5e97ef717b6a70328df4aab757fb1#$
16:16:40.476381 tramp-open-connection-setup-interactive-shell (5) # Checking system information
16:16:40.476444 tramp-send-command (6) # echo \"`uname -sr`\" 2>/dev/null; echo tramp_exit_status $?
16:16:40.477733 tramp-wait-for-regexp (6) # 
"Linux 4.13.0-37-generic"
tramp_exit_status 0
///22e5e97ef717b6a70328df4aab757fb1#$
16:16:40.477841 tramp-open-connection-setup-interactive-shell (5) # Determining coding system
16:16:40.478043 tramp-send-command (6) # (echo foo ; echo bar)
16:16:40.478587 tramp-wait-for-regexp (6) # 
foo
bar
///22e5e97ef717b6a70328df4aab757fb1#$
16:16:40.478669 tramp-open-connection-setup-interactive-shell (5) # Setting coding system to ‘utf-8’ and ‘utf-8-unix’
16:16:40.478733 tramp-send-command (6) # set +o vi +o emacs
16:16:40.479405 tramp-wait-for-regexp (6) # 
///22e5e97ef717b6a70328df4aab757fb1#$
16:16:40.479590 tramp-open-connection-setup-interactive-shell (5) # Checking remote host type for ‘send-process-string’ bug
16:16:40.479695 tramp-set-remote-path (5) # Setting $PATH environment variable
16:16:40.479826 tramp-send-command (6) # PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export PATH
16:16:40.480281 tramp-wait-for-regexp (6) # 
///22e5e97ef717b6a70328df4aab757fb1#$
16:16:40.480629 tramp-send-command (6) # mesg n 2>/dev/null; biff n 2>/dev/null
16:16:40.482259 tramp-wait-for-regexp (6) # 
///22e5e97ef717b6a70328df4aab757fb1#$
16:16:40.482393 tramp-send-command (6) # stty tab0
16:16:40.483736 tramp-wait-for-regexp (6) # 
///22e5e97ef717b6a70328df4aab757fb1#$
16:16:40.483849 tramp-send-command (6) # stty iutf8 2>/dev/null
16:16:40.485167 tramp-wait-for-regexp (6) # 
///22e5e97ef717b6a70328df4aab757fb1#$
16:16:40.485296 tramp-send-command (6) # echo \"`tty`\" 2>/dev/null; echo tramp_exit_status $?
16:16:40.486657 tramp-wait-for-regexp (6) # 
"not a tty"
tramp_exit_status 0
///22e5e97ef717b6a70328df4aab757fb1#$
16:16:40.486883 tramp-open-connection-setup-interactive-shell (5) # Setting default environment
16:16:40.486997 tramp-send-command (6) # while read var val; do export $var="$val"; done <<'5c9dbf6558a9d6646e56d39735ea634e'
LC_ALL C.UTF-8
ENV ''
TMOUT 0
LC_CTYPE ''
PAGER cat
5c9dbf6558a9d6646e56d39735ea634e
16:16:40.487682 tramp-wait-for-regexp (6) # 
///22e5e97ef717b6a70328df4aab757fb1#$
16:16:40.487800 tramp-send-command (6) # unset CDPATH HISTORY MAIL MAILCHECK MAILPATH autocorrect correct
16:16:40.488325 tramp-wait-for-regexp (6) # 
///22e5e97ef717b6a70328df4aab757fb1#$
16:16:40.488591 tramp-maybe-open-connection (3) # Opening connection for hackdev_django_1 using docker...done
16:16:40.488690 tramp-send-command (6) # test -d /usr/local/bin/python 2>/dev/null; echo tramp_exit_status $?
16:16:40.489189 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///22e5e97ef717b6a70328df4aab757fb1#$

Tried with emacs 25.1 and v27.0.50 now 25.1 has other problems but i can get both to the same error above about not being able to find python no file or directory.

Also raised this on stack overflow,

https://emacs.stackexchange.com/questions/40856/how-can-i-resolve-tramp-error-not-a-tramp-file-name-using-a-docker-address

running out of ideas now :/

@olessavluk
Copy link

Hi @olymk2,

Looks like this issue is the same as #24

Instead of specifying a path to executable - you need to open the file(or just some dired buffer) over TRAMP and everything should "just work"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants