[MacPorts] #30702: ipython-2.7 gives runtime error: No module named Shell
#30702: ipython-2.7 gives runtime error: No module named Shell -------------------------------+-------------------------------------------- Reporter: njbutko@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: | Port: -------------------------------+-------------------------------------------- I recently installed py27-ipython. On starting it, I receive the following error: {{{ $ /opt/local/bin/ipython-2.7 Traceback (most recent call last): File "/opt/local/bin/ipython-2.7", line 27, in <module> import IPython.Shell ImportError: No module named Shell }}} Googling, I found: https://github.com/ipython/ipython/issues/286 This suggests that the ipython-2.7 script itself is out of date. Replacing {{{ import IPython.Shell IPython.Shell.start().mainloop() }}} with {{{ import IPython IPython.embed() }}} in /opt/local/bin/ipython-2.7 seems to fix the problem, and give a normal ipython shell. -- Ticket URL: <https://trac.macports.org/ticket/30702> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30702: py27-ipython: No module named Shell -------------------------------+-------------------------------------------- Reporter: njbutko@… | Owner: akitada@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: | Port: py27-ipython -------------------------------+-------------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => akitada@… * port: => py27-ipython Comment: I wonder if py26-ipython, py25-ipython and py-ipython are also affected. -- Ticket URL: <https://trac.macports.org/ticket/30702#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30702: py27-ipython: No module named Shell -------------------------------+-------------------------------------------- Reporter: njbutko@… | Owner: akitada@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: | Port: py27-ipython -------------------------------+-------------------------------------------- Comment(by njbutko@…): So I think this is the wrong fix. The correct script should read: {{{ __requires__ = 'ipython==0.11.dev' import sys from pkg_resources import load_entry_point sys.exit( load_entry_point('ipython==0.11.dev', 'console_scripts', 'ipython')() ) }}} This allows for correct parsing of command line arguments, including the new "qtconsole" argument, which works great! The above comes from the ipython script you get via easy_install. -- Ticket URL: <https://trac.macports.org/ticket/30702#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30702: py27-ipython: No module named Shell --------------------------------+------------------------------------------- Reporter: njbutko@… | Owner: akitada@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: fixed | Keywords: Port: py27-ipython | --------------------------------+------------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: The port was updated to 0.11 in r83528. -- Ticket URL: <https://trac.macports.org/ticket/30702#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts