#12735: django shell is broken with IPython 0.11.x (bzr.r1219)
--------------------------------------+-------------------------------------
Reporter: alperkanat | Owner: nobody
Status: new | Milestone:
Component: django-admin.py | Version: SVN
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------+-------------------------------------
Changes (by ramiro):
* needs_better_patch: => 0
* component: Core framework => django-admin.py
* needs_tests: => 0
* needs_docs: => 0
Old description:
> [15:33] (tu...@penguix raptiye)$ ./manage.py shell
> Traceback (most recent call last):
> File "./manage.py", line 14, in <module>
> execute_manager(settings)
> File "/Users/tunix/Projects/django/core/management/__init__.py", line
> 438, in execute_manager
> utility.execute()
> File "/Users/tunix/Projects/django/core/management/__init__.py", line
> 379, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
> File "/Users/tunix/Projects/django/core/management/base.py", line 195,
> in run_from_argv
> self.execute(*args, **options.__dict__)
> File "/Users/tunix/Projects/django/core/management/base.py", line 222,
> in execute
> output = self.handle(*args, **options)
> File "/Users/tunix/Projects/django/core/management/base.py", line 351,
> in handle
> return self.handle_noargs(**options)
> File "/Users/tunix/Projects/django/core/management/commands/shell.py",
> line 29, in handle_noargs
> shell = IPython.Shell.IPShell(argv=[])
> AttributeError: 'module' object has no attribute 'Shell'
>
> It seems that Shell module is deprecated:
>
> In [1]: from IPython import Shell
> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
> packages/IPython/Shell.py:31: DeprecationWarning:
> This module (IPython.Shell) is deprecated. The classes that were in this
> module have been replaced by:
>
> IPShell->IPython.core.iplib.InteractiveShell
> IPShellEmbed->IPython.core.embed.InteractiveShellEmbed
>
> Please migrate your code to use these classes instead.
>
> warn(msg, category=DeprecationWarning, stacklevel=1)
New description:
{{{
[15:33] (tu...@penguix raptiye)$ ./manage.py shell
Traceback (most recent call last):
File "./manage.py", line 14, in <module>
execute_manager(settings)
File "/Users/tunix/Projects/django/core/management/__init__.py", line
438, in execute_manager
utility.execute()
File "/Users/tunix/Projects/django/core/management/__init__.py", line
379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/tunix/Projects/django/core/management/base.py", line 195,
in run_from_argv
self.execute(*args, **options.__dict__)
File "/Users/tunix/Projects/django/core/management/base.py", line 222,
in execute
output = self.handle(*args, **options)
File "/Users/tunix/Projects/django/core/management/base.py", line 351,
in handle
return self.handle_noargs(**options)
File "/Users/tunix/Projects/django/core/management/commands/shell.py",
line 29, in handle_noargs
shell = IPython.Shell.IPShell(argv=[])
AttributeError: 'module' object has no attribute 'Shell'
}}}
It seems that Shell module is deprecated:
{{{
In [1]: from IPython import Shell
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/IPython/Shell.py:31: DeprecationWarning:
This module (IPython.Shell) is deprecated. The classes that were in this
module have been replaced by:
IPShell->IPython.core.iplib.InteractiveShell
IPShellEmbed->IPython.core.embed.InteractiveShellEmbed
Please migrate your code to use these classes instead.
warn(msg, category=DeprecationWarning, stacklevel=1)
}}}
Comment:
(reformatted description)
no 0.11 version of ipython has been released yet, should we wait for a
stable release before thinking about adding compatibility code to Django?
--
Ticket URL: <http://code.djangoproject.com/ticket/12735#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.