Question

I am running Ubuntu 12.04 and emacs 24.3. I have successfully downloaded sage, and sage_mode. My problem is that when I try to run SAGE in emacs it doesn't load.

When I try to run SAGE with M-x sage it will then say: Run sage (like this): /home/path/to/sage. I hit enter then everything freezes inside of emacs with a message in the mini-buffer: Sent python-eldoc-setup-code Emacs stays frozen until I quit with C-g After that SAGE appears normally. If I run sage in the terminal everything starts up quickly and normally as I would expect.

Here is the output from my messages buffer:

Sent python-shell-completion-setup-code
Sent python-ffap-setup-code
Sent python-eldoc-setup-code
  1. Why is it freezing like this and not starting normally?

I have seen a few bug reports that look similar, which are specifically problems with the python shell (SAGE runs on top of python).

Here is one bug report.

EDIT: I am looking for specific instructions on how to fix the sage process that runs through emacs. Type M-x emacs-version I know that I have Emacs 24.3.1. Please let me know if you need any more information to help me fix my issue.

Thanks for all the help!

Était-ce utile?

La solution

I'm sorry you're experiencing this.

This sounds like a bug (in sage-mode) that I fixed a while ago in which it would get stuck waiting for the prompt. What version of sage-mode are you using? C-h v sage-mode-version RET. The latest released version is 0.10 and doesn't have such a bug to the best of my knowledge. If you are using an older version please upgrade. Otherwise I would really appreciate a bug report at https://bitbucket.org/gvol/sage-mode/issues?status=new&status=open so that I don't forget it.

Also, what version of Sage are you using, and do you have anything in your ~/.sage/init.sage?

Autres conseils

Check your config WRT to commands prefixes.

"python-" expects python.el

"py-" expects python-mode.el

(load "python") loads mode from python.el

It provides 'python

(load "python-mode") loads mode from python-mode.el

It provides 'python-mode

BTW the bug linked to doesn't exist in python-mode.el

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top