[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Advice for using python-mode with Tramp
From: |
Kirk Strauser |
Subject: |
Advice for using python-mode with Tramp |
Date: |
Mon, 11 Sep 2006 11:32:44 -0500 |
User-agent: |
KMail/1.9.3 |
I'm currently editing "/ssh:address@hidden:/tmp/invoice.py". In
python-mode, C-c C-c loads a Python interpreter on the remote machine
(assuming it's accessible) and tries to interpret the module you're working
on. Unfortunately, that results in something like:
## working on region in file /tmp/python-49468F4D.py...
Traceback (most recent call last):
File "<stdin>", line 1, in ?
IOError: [Errno 2] No such file or directory: '/tmp/python-49468F4D.py'
>>>
instead of running the file as expected. Also, running "pylint" from
pylint.el gives errors like:
cd /ssh:address@hidden:/tmp/
pylint --parseable=y "/ssh:address@hidden:/tmp/invoice.py"
/ssh:address@hidden:/tmp/invoice.py:0: [F] No module named /ssh:address@hidden
In other words, Emacs seems to be passing the entire Tramp filename to the
remote programs, rather than their local equivalents. Now, I understand
that this isn't a problem with Tramp. Still, it's incredibly annoying and
I'm hoping that someone here has dealt with this problem already.
--
Kirk Strauser
Daycos
- Advice for using python-mode with Tramp,
Kirk Strauser <=