Ipython: IO-error right on startup

Bug #1398530 reported by Zeitlinie
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
High
Andreas Roehler

Bug Description

Hi,

for this minimal init.el

(add-to-list 'load-path "~/temporary/py/python-mode/")
(require 'python-mode)
(setq-default py-shell-name "ipython")
(setq-default py-which-bufname "IPython")

and right after C-c ! the ipython buffer displays:

Python 2.7.6 (default, Nov 21 2013, 15:55:38) [GCC]
... snip ... snap ....

In [1]: ---------------------------------------------------------------------------
IOError Traceback (most recent call last)
<ipython-input-1-4788a515c69f> in <module>()
----> 1 __pyfile = open('''/tmp/c6b5ea7f5aa7e5186799acd128cfc714-psss-temp.py''');exec(compile(__pyfile.read(), '''/tmp/c6b5ea7f5aa7e5186799acd128cfc714-psss-temp.py''', 'exec'));__pyfile.close()

IOError: [Errno 2] No such file or directory: '/tmp/c6b5ea7f5aa7e5186799acd128cfc714-psss-temp.py'

right after start-up.

My setup:
C-h v: py-version is = "6.2.1"
bzr log -l 1 = revno: 1747
C-h v: emacs-version = "24.3.1"

Any suggestions?

Revision history for this message
Andreas Roehler (a-roehler) wrote :

Thanks!

IPython shell itself should start nonetheless, right?
Error relates to setup-code, completion will be broken.

BTW py-which-bufname is an internal variable, kind of legacy too.
Does not affect this bug, rather don't touch it.

Setting py-shell-name is all needed WRT default.

Changed in python-mode:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Andreas Roehler (a-roehler)
milestone: none → 6.2.1
Revision history for this message
Zeitlinie (zeitlinie) wrote :

> IPython shell itself should start nonetheless, right?

Yes.

> BTW py-which-bufname is an internal variable, kind of legacy too.

Oops ;)

Changed in python-mode:
status: In Progress → Fix Committed
Revision history for this message
York Zhao (gtdplatform) wrote :

I can attest that the latest bzr version addressed this issue. Thank you very much!

Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.