Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 407715

Summary: dev-python/ipython-0.12-r1 is incompatible with > app-emacs/python-mode-6.0.3-r1
Product: Gentoo Linux Reporter: Jean-Francois Ostiguy <jfostiguy>
Component: [OLD] DevelopmentAssignee: Python Gentoo Team <python>
Status: RESOLVED OBSOLETE    
Severity: normal CC: emacs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugs.launchpad.net/python-mode/+bug/912919
Whiteboard:
Package list:
Runtime testing required: ---

Description Jean-Francois Ostiguy 2012-03-10 20:19:39 UTC
Recent versions of app-emacs/python-mode no longer define the variable  py-mode-map which dev-python/ipython assumes exists. See bug 407179 for further explanations. 

dev-python/ipython-0.12-r1 needs RDEPEND <=app-emacs/python-mode-6.0.3-r1
The ipython maintainer should probably report the issue upstream.   

Reproducible: Always
Comment 1 Ulrich Müller gentoo-dev 2012-03-10 21:38:31 UTC
The issue is already known upstream, see URL.
Comment 2 Juan 2012-08-16 02:38:04 UTC
Hi, I had the same problem and solved it by emerging ipython with useflag "-emacs". I did not find any problem with this. It seems that the problem is that ipython installs ipython.el that interacts with python-mode. May be the solution would be that the useflag "emacs" requires *only* python-mode and not install ipython.el
Juan
Comment 3 Ondrej Grover 2013-08-11 09:40:05 UTC
So far the best workaround seems to be to alias that variable in .emacs

(require 'python-mode)
(setq py-mode-map python-mode-map)


Maybe something like that should be added to a site-gentoo.d/ file for python-mode, for backwards compatibility.

something like 

(add-hook 'python-mode-hook
    (lambda () 
        (defvaralias 'py-mode-map 'python-mode-map)))

But I wasn't able to get that working.
Comment 4 Marius Brehler 2015-03-13 12:49:36 UTC
This version isn't in the tree anymore. Issue should be closed.
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2015-03-13 14:47:05 UTC
Please reopen if still exists with >ipython-2