aleix's blog

ropemacs and remote files (fuse)

16 November 2010 8:27 pm (emacs | python)

This morning I needed to edit some python scripts from a local server at work and, as always, used the TRAMP Emacs mode, but immediately found a problem. A few months ago I installed the great python refactoring library rope and its Emacs mode ropemacs. It comes out that ropemacs asks you for the location of your rope project if it cannot find it (this always happens the first time you start a project).

TRAMP URLs look like this:

/ssh:user@server:/path

So, you can now imagine what happens when Emacs gives an URL like this to rope (which is a python library and doesn't know anything about TRAMP URLs) as if it was a local file name...

Traceback (most recent call last):
  ...
  ...
  File "/usr/lib/python2.6/.../ropemode/interface.py", line 88, in open_project
    self.project = rope.base.project.Project(root)
  File "/usr/lib/python2.6/.../rope/base/project.py", line 134, in __init__
    os.mkdir(self._address)
OSError: [Errno 2] No such file or directory: '/ssh:user@server:/path'

The worst is that you are continuously being asked by Emacs to enter a valid rope project location.

The solution? Simply use the FUSE SSH Filesystem.

$ sudo apt-get install sshfs
$ sshfs user@server:path mountpoint

FUSE stands for Filesystem in Userspace. With FUSE you will end up editing remote files as if they were in your computer and the great thing is that you don't need root access, so any user can mount a FUSE filesystem.

Update 2010/11/17: FUSE mounted directory can be unmounted with:

$ fusermount -u mountpoint

16 responses

  1. Master Paper Writers offers Writing Help says:

    It can unlock a wide collection of proceedings in the administrator, and that incorporate SNES ROMs with the SMC document sort.

  2. https://admissionessays.xyz says:

    My friend recommended this blog and he was totally right keep up the fantastic work!Admissionessays.xyz

  3. Accounting Dissertation Help says:

    Get the dissertation writing service students look for these days with the prime focus being creating a well researched and lively content on any topic.

  4. Help With Psychology Homework says:

    Really i appreciate the effort you made to share the knowledge. This is really a great stuff for sharing. Keep it up . Thanks for sharing.

  5. Robert Hunter says:

    This morning I had to edit a few python scripts from a local server at paintings and, as continually, used the TRAMP Emacs mode, but right now located a problem. A few months ago I established the super python refactoring library rope and its Emacs mode ropemacs. It do my coursework UK comes out that ropemacs asks you for the area of your rope undertaking if it cannot discover it (this always occurs the primary time you begin a challenge).

  6. online statistics assignment help says:

    This is really great work. Thank you for sharing such a useful information here in the blog.

  7. Steven says:

    You have posted a great tutorial about python scripts. I like reading it. I have learned a lot which i did not know before. Keep up your good work.rubber matting with anti slip surface

  8. Enterprise Model Project Help says:

    Really i appreciate the effort you made to share the knowledge. This is really a great stuff for sharing. Keep it up . Thanks for sharing.

  9. mirecek332 says:

    You are creating amazing content these Days.

  10. Eliana Hermione says:

    Python is good for learning the fundamentals for programming without worrying too much about the semantics in a simple interactive environment. It is also good for general-purpose scripting web application development and prototyping law essay help uk.

  11. Assignment Writing says:

    With version manage, you have to nearly always be capable of edit files domestically after which push your changes to the server on commit. It's far hard for far flung enhancing to fit the speed and convenience of neighborhood editing. That stated, i have had exact experiences using Emacs in NX classes to remote servers.

  12. Assignment help Reviews says:

    Going through a review of websites will give you much insight about it which you can’t know by simply visiting it. Our expert Assignment help Reviews go through many websites each month to select only the best. This makes students aware of websites offering best Assignments.

  13. Law Dissertation Writing Services UK says:

    With the adaptation adapt, you ought to quite often have the capacity to alter the records inside the nation, after which push your server changes on the exchange. Far troublesome for a far-off relinquished fortification to coordinate the speed and comfort of altering the region. This expressed, I had precise utilization of Emacs occasions in NX classes to remote servers.

  14. Managerial Accounting Homework Help says:

    Those Who Come To Read Your Article Will Find Lots Of Helpful And Informative Tips

  15. BBA Capstone Project Help says:

    My Friend Recommended This Blog And He Was Totally Right Keep Up The Fantastic Work!

  16. AngelaHolt says:

    Thanks a lot for sharing this useful information. Download towel app

Leave a Reply