New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #30702 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

py27-ipython: No module named Shell

Reported by: njbutko@… Owned by: akitada@…
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc:
Port: py27-ipython


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:

This suggests that the ipython-2.7 script itself is out of date.


import IPython.Shell


import IPython

in /opt/local/bin/ipython-2.7 seems to fix the problem, and give a normal ipython shell.

Change History

comment:1 Changed 5 years ago by ryandesign@…

  • Owner changed from macports-tickets@… to akitada@…
  • Port set to py27-ipython
  • Summary changed from ipython-2.7 gives runtime error: No module named Shell to py27-ipython: No module named Shell

I wonder if py26-ipython, py25-ipython and py-ipython are also affected.

comment:2 Changed 5 years ago by njbutko@…

So I think this is the wrong fix. The correct script should read:

__requires__ = ''
import sys
from pkg_resources import load_entry_point

       load_entry_point('', '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.

comment:3 Changed 4 years ago by jmr@…

  • Status changed from new to closed
  • Resolution set to fixed

The port was updated to 0.11 in r83528.

Note: See TracTickets for help on using tickets.