* running python in emacs @ 2006-04-11 23:02 hasanito 2006-04-12 8:13 ` Peter Dyballa 0 siblings, 1 reply; 3+ messages in thread From: hasanito @ 2006-04-11 23:02 UTC (permalink / raw) G'day I've downloaded the python.el mode for emacs but when I M-x run-python I get the following error.... Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> Traceback (most recent call last): File "<stdin>", line 1, in ? File "c:\Emacs\etc\emacs.py", line 23, in ? import os, sys, traceback, inspect, rlcompleter, __main__ File "c:\Python24\lib\rlcompleter.py", line 42, in ? import readline ImportError: No module named readline >>> >>> any suggestions on how to correct this problem? cheers ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: running python in emacs 2006-04-11 23:02 running python in emacs hasanito @ 2006-04-12 8:13 ` Peter Dyballa 0 siblings, 0 replies; 3+ messages in thread From: Peter Dyballa @ 2006-04-12 8:13 UTC (permalink / raw) Cc: help-gnu-emacs Am 12.04.2006 um 01:02 schrieb hasanito: > File "c:\Python24\lib\rlcompleter.py", line 42, in ? > import readline > ImportError: No module named readline > >>> >>> > > > any suggestions on how to correct this problem? > Could be you need to install libreadline ... -- Greetings Pete Bake Pizza not war! ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <mailman.325.1144825790.9609.help-gnu-emacs@gnu.org>]
* Re: running python in emacs [not found] <mailman.325.1144825790.9609.help-gnu-emacs@gnu.org> @ 2006-04-13 12:19 ` Stefan Monnier 0 siblings, 0 replies; 3+ messages in thread From: Stefan Monnier @ 2006-04-13 12:19 UTC (permalink / raw) > I've downloaded the python.el mode for emacs but when I > M-x run-python > I get the following error.... > Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on > win32 > Type "help", "copyright", "credits" or "license" for more information. >>>> Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "c:\Emacs\etc\emacs.py", line 23, in ? > import os, sys, traceback, inspect, rlcompleter, __main__ > File "c:\Python24\lib\rlcompleter.py", line 42, in ? > import readline > ImportError: No module named readline >>>> >>> > any suggestions on how to correct this problem? Does the patch below fix your problem? Stefan Index: etc/emacs.py =================================================================== RCS file: /sources/emacs/emacs/etc/emacs.py,v retrieving revision 1.6 diff -u -r1.6 emacs.py --- etc/emacs.py 5 Feb 2006 23:44:47 -0000 1.6 +++ etc/emacs.py 13 Apr 2006 12:20:20 -0000 @@ -20,7 +20,10 @@ # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, # Boston, MA 02110-1301, USA. -import os, sys, traceback, inspect, rlcompleter, __main__ +import os, sys, traceback, inspect, __main__ +# The rlcompleter module seems to only be available in Unix for now. +try: import rlcompleter +except: pass __all__ = ["eexecfile", "args", "complete", "ehelp", "eimport"] @@ -69,8 +72,8 @@ """Complete TEXT in NAMESPACE and print a Lisp list of completions. NAMESPACE is currently not used.""" if namespace is None: namespace = __main__.__dict__ - c = rlcompleter.Completer (namespace) try: + c = rlcompleter.Completer (namespace) if '.' in text: matches = c.attr_matches (text) else: ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-04-13 12:19 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-04-11 23:02 running python in emacs hasanito 2006-04-12 8:13 ` Peter Dyballa [not found] <mailman.325.1144825790.9609.help-gnu-emacs@gnu.org> 2006-04-13 12:19 ` Stefan Monnier
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.