Windows: py-shell-complete or ipython-complete doesn't work with emacs 24.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Medium
|
Andreas Roehler |
Bug Description
So I have been trying to get ipython completion for a while now and I can't seem to get it working on windows .
I installed python-mode 6.1.0 , ipython-2927 , on Emacs 24.1. My current ipython version is 0.10.2.
The reason I didn't switch to 0.13 is that matplotlib figures will hang my shell if in interactive mode in emacs. (they work normally if I invoke ipython from a cmd shell) (issue is described and solved here for python 0.10 http://
This is another bug which I only mention here but don't know to whom to address ( the maintainers of python-mode, matplolib or the emacs eshell for windows , ipython ). If you think it is relevant I can open a bug here.
Now back to the completion bug:
I use a bat file as the py-shell-name variable containing
[ipython.bat] @python.exe -i C:\devel\
Completion works perfectly when I run ipython from a windows cmd shell.
so for example when I invoke ipython complete on
import cv2.cv as cv
np.<TAB>
Debugger entered--Lisp error: (wrong-
format(nil "cv.")
ipython-
call-
Then if I do
np. <M-x py-shell-complete>
I get this ugly back-trace:
[ugly-return sep py-which-bufname python-process beg end nil ";" get-buffer-process get-process ...] 7 "Try to complete the python symbol before point. Only knows about the stuff
in the current *Python* session." nil], 8
Repeatedly invoking ipython-complete or py-shell-complete yields
ipython-complete: Wrong type argument: stringp, nil
Is this an active bug? Would I need to mention anything to reproduce it?
Changed in python-mode: | |
assignee: | nobody → Andreas Roehler (a-roehler) |
milestone: | none → 6.1.1 |
importance: | Undecided → Medium |
Changed in python-mode: | |
milestone: | 6.1.1 → 6.2 |
Changed in python-mode: | |
status: | Confirmed → In Progress |
assignee: | nobody → Andreas Roehler (a-roehler) |
Changed in python-mode: | |
status: | In Progress → Fix Committed |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
Checked in a fix which might not help yet, as it's against a very recent completion bug.
You could try the current trunk nonetheless.