How to use emacs to open a remote python shell with python-mode and tramp?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
New
|
Medium
|
Andreas Roehler |
Bug Description
My emacs24.5 installed in Cygwin64 in a win7 and remote python27 is installed by anaconda2 on another PC with CnetOS 7. My emacs config file about python likes:
(provide 'setup-python)
(require 'python-mode)
(setq python-
(add-hook 'python-mode-hook 'anaconda-mode)
First, I should run C-x C-f /ssh:username@ip: to input password and open a remote file through Tramp. Then run M-x python to open a python shell remotely. However, there are some thing wrong responsed by remote python like:
Python 2.7.11 |Anaconda 2.4.1 (64-bit)| (default, Dec 6 2015, 18:08:32)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://
>>> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: [Errno 2] No such file or directory: '/usr/tmp/
>>> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: [Errno 2] No such file or directory: '/usr/tmp/
>>> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: [Errno 2] No such file or directory: '/usr/tmp/
>>>
Why there are many IOError? How to solve them?
information type: | Public → Public Security |
information type: | Public Security → Public |
Changed in python-mode: | |
status: | In Progress → New |
Changed in python-mode: | |
milestone: | 6.2.3 → 6.2.4 |
On 22.03.2016 07:38, zhangnan wrote: shell-virtualen v-path "/ssh:<email address hidden> :/home/ username/ anaconda2/ ") continuum. io/thanks and https:/ /anaconda. org py-shell- completion- setup-code. py' py-ffap- setup-code. py' py-eldoc- setup-code. py'
> Public bug reported:
>
> My emacs24.5 installed in Cygwin64 in a win7 and remote python27 is
> installed by anaconda2 on another PC with CnetOS 7. My emacs config file
> about python likes:
>
> (provide 'setup-python)
> (require 'python-mode)
>
> (setq python-
> (add-hook 'python-mode-hook 'anaconda-mode)
>
> First, I should run C-x C-f /ssh:username@ip: to input password and open
> a remote file through Tramp. Then run M-x python to open a python shell
> remotely. However, there are some thing wrong responsed by remote python
> like:
>
> Python 2.7.11 |Anaconda 2.4.1 (64-bit)| (default, Dec 6 2015, 18:08:32)
> [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> Anaconda is brought to you by Continuum Analytics.
> Please check out: http://
> >>> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> IOError: [Errno 2] No such file or directory: '/usr/tmp/
> >>> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> IOError: [Errno 2] No such file or directory: '/usr/tmp/
> >>> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> IOError: [Errno 2] No such file or directory: '/usr/tmp/
> >>>
>
> Why there are many IOError? How to solve them?
>
> ** Affects: python-mode
> Importance: Undecided
> Status: New
>
Thanks reporting. Please follow recipe given at
http:// stackoverflow. com/questions/ 36118022/ using-tramp- in-python- shell-from- cygwin- emacs24- 5/36131293? noredirect= 1#comment599271 66_36131293
starting from emacs -Q