[MacPorts] #31938: python27 rev 86868 breaks py27-ipython

MacPorts noreply at macports.org
Tue Nov 8 06:27:41 PST 2011


#31938: python27 rev  86868 breaks py27-ipython
-----------------------------------+----------------------------------------
 Reporter:  oliver.andrich@…       |       Owner:  jwa@…            
     Type:  defect                 |      Status:  new              
 Priority:  Normal                 |   Milestone:                   
Component:  ports                  |     Version:  2.0.3            
 Keywords:                         |        Port:  python27 python26
-----------------------------------+----------------------------------------

Comment(by michelle.lynn.gill@…):

 Replying to [comment:6 jmr@…]:
 > Works for me. The ipython ports now depend on py-readline. I didn't rev
 bump because ipython doesn't actually need to be rebuilt, it just needs
 the readline module installed. Feel free to do the rev bump if you think
 users would rather an unnecessary rebuild than a dependency that isn't
 automatically installed unless they upgrade a non-outdated port.

 For me this issue does not relate to py27-readline. Rather, ipython seems
 to be finding another port, libedit, which is causing this error. (I've
 listed the full error this time):

 {{{
 /Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/Current/lib/python2.7
 /site-packages/IPython/utils/rlineimpl.py:96: RuntimeWarning: Leopard
 libedit detected - readline will not be well behaved including some
 crashes on tab completion, and incorrect history navigation. It is highly
 recommended that you install readline, which is easy_installable with:
 'easy_install readline'
   RuntimeWarning)
 }}}

 Installing py27-readline and restarting ipython did not correct this
 error.

 {{{
 % port installed py27-readline
 The following ports are currently installed:
   py27-readline @6.2.1_0 (active)
 % port installed python27 | grep active
   python27 @2.7.2_2+universal (active)
 }}}

 Because libedit has a number of ports which depend on it (see below,
 including python27), I tried force uninstalling it.

 {{{
 --->  Unable to uninstall libedit @20110802-3.0_0+universal, the following
 ports depend on it:
 --->    pcre @8.12_1
 --->    sqlite3 @3.7.8_1
 --->    sqlite3 @3.7.8_1+universal
 --->    sqlite3 @3.7.9_0+universal
 --->    python26 @2.6.7_2
 --->    python27 @2.7.2_2+universal
 }}}

 After uninstalling libedit (and without readline installed), only a
 warning is generated when ipython is started:

 {{{
 WARNING: Readline services not available or not loaded.
 WARNING: The auto-indent feature requires the readline library
 }}}

 This warning is easily fixed by installing the readline library.

 Thus, it seems that ipython needs to be patched (or recompiled?) so that
 it uses readline instead of libedit? The readline dependency should also
 be added, obviously.

 Let me know if there are questions.

-- 
Ticket URL: <https://trac.macports.org/ticket/31938#comment:7>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list