It turns out that there's a problem with my readline installation which
causes an `ImportError`. This `ImportError` is caught and discarded by
the `except ImportError` in
`django.core.management.commands.shell.Command.handle`.
Pull request incoming.
--
Ticket URL: <https://code.djangoproject.com/ticket/27670>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => Peter Inglesby
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/27670#comment:1>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/27670#comment:2>
* needs_better_patch: 0 => 1
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/27670#comment:3>
Comment (by Tim Graham):
Peter, are you still planning to provide a patch here?
--
Ticket URL: <https://code.djangoproject.com/ticket/27670#comment:4>
Old description:
> When I run `./manage.py shell`, I get `ImportError: Couldn't load any of
> the specified interfaces.`
>
> It turns out that there's a problem with my readline installation which
> causes an `ImportError`. This `ImportError` is caught and discarded by
> the `except ImportError` in
> `django.core.management.commands.shell.Command.handle`.
>
> Pull request incoming.
New description:
If a pythonrc file (either `~/.pythonrc`, or `$PYTHONHOME`) causes an
exception, then `./manage.py shell` crashes.
By contrast, CPython prints the exception and continues.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/27670#comment:5>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
Comment:
[https://github.com/django/django/pull/8688 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/27670#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"0ba57c395796a5644cd0f880ac9fa7052d318021" 0ba57c3]:
{{{
#!CommitTicketReference repository=""
revision="0ba57c395796a5644cd0f880ac9fa7052d318021"
Fixed #27670 -- Prevented shell crash on error in .pythonrc.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27670#comment:7>