私はこのガイドに従い、これらの既存のスタックオーバーフローの質問を調べました:
- Pymacs ヘルパーが 30 秒後に起動しませんでした
- Windows 8 + Emacs 24.3 + emacs-for-python: Pymacs ヘルパーが 30 秒以内に起動しませんでした
しかし残念ながら、これらは私の問題を解決しませんでした。そのため、エラーの詳細を記載してこの質問を投稿しました。
emacs が提供するデバッグ情報に従って、--debug-init を実行しました。結果は次のとおりです。
Debugger entered--Lisp error: (error "Pymacs helper did not start within 30 seconds")
signal(error ("Pymacs helper did not start within 30 seconds"))
pymacs-report-error("Pymacs helper did not start within %d seconds" 30)
pymacs-start-services()
pymacs-serve-until-reply("eval" (pymacs-print-for-apply (quote "pymacs_load_helper") (quote ("ropemacs" "rope-" nil))))
pymacs-call("pymacs_load_helper" "ropemacs" "rope-" nil)
pymacs-load("ropemacs" "rope-")
eval-buffer(#<buffer *load*> nil "/home/mittenchops/.emacs.d/init.el" nil t) ; Reading at buffer position 1936
load-with-code-conversion("/home/mittenchops/.emacs.d/init.el" "/home/mittenchops/.emacs.d/init.el" t t)
load("/home/mittenchops/.emacs.d/init" t t)
#[0 "\205\262
私のinit.elはここにリンクされています。
ロープ、ropemacs、pymacs などをインストールしましたが、まだこのエラーが発生します。さらに、pymacs は一般的に Python にインポートされていないようです。
>>> import Pymacs
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named Pymacs
しかし、これは奇妙です。
$ git clone https://github.com/pinard/Pymacs.git
$ sudo pip install -e Pymacs
正常にインストールされました!