[python-users] [emacs-for-python] Pymacs.py nicht von Emacs erreichbar

Aroldo Souza-Leite asouzaleite at gmx.de
Do Jun 28 11:23:03 CEST 2012


Hallo Liste,

pymacs meldet bei mir immer

pymacs-report-error: Pymacs helper did not start within 30 seconds

wenn ich versuche, irgendwas auszuführen, wie z.b.

M-x pymacs-eval
Python expression?
2 + 3

oder

M-x pymacs-eval
Python expression?
"hallo"

pymacs.el is also aktiv, aber Pymacs.py ist für Emacs unerreichbar.


Ich habe Pymacs.py ausgecheckt aus

https://github.com/pinard/Pymacs
commit 4be2c15f423e0a9007fcd3c0468315313f475b27
Author: François Pinard <pinard at iro.umontreal.ca>
Date:   Sun Jun 17 22:40:47 2012 -0400

aber 'make & make install' installiert nicht. Auch 'python setup.py 
install' installiert nicht. Lediglich erscheinen im meinem Python 
'site-packages' die egg-Infos.

Daraufhin habe ich das modul Pymacs.py direkt in meinem Python 
'site-packages' kopiert.

Damit kann ich mit dem Emacs-Python-Interpreter von python.el

ohne Fehler Pymacs importieren:

 >>> import sys
 >>> sys.executable
'/home/aroldo/sync/home-aroldo-dot/local/.local/opt/Python-2.7/bin/python'
 >>> sys.version
'2.7.3 (default, Apr 20 2012, 22:44:07) \n[GCC 4.6.3]'
 >>> import Pymacs
 >>> Pymacs.__file__
'/home/aroldo/sync/home-aroldo-dot/local/.local/opt/Python-2.7/local/lib/python2.7/site-packages/Pymacs.pyc'

Ansonsten scheinen alle Parameter richtig eingestellt zu sein:

(message (getenv "PYMACS_PYTHON"))
"/home/aroldo/sync/home-aroldo-dot/local/.local/opt/Python-2.7/bin/python"
(message (getenv "PYTHONPATH"))
"/home/aroldo/sync/home-aroldo-dot/local/.local/opt/Python-2.7/lib/python2.7;/home/aroldo/sync/home-aroldo-dot/local/.local/opt/Python-2.7/lib/python2.7/site-packages"

Ich benutze

GNU Emacs 24.1.50.1 (i686-pc-linux-gnu, GTK+ Version 3.4.1) of 
2012-05-10 on radium, modified by Debian

Auf Ubuntu 12.04.

Der Bug ist bekannt, aber ich habe nirgendwo eine Lösung gefunden:

https://github.com/pinard/Pymacs/issues/9

Ich bin dankbar für jeden Hinweis.

Grüße.

Aroldo.





Mehr Informationen über die Mailingliste python-users