[Python-modules-team] Bug#636719: python-scrapy: provide ipython 0.11 compatibility

Julian Taylor jtaylor.debian at googlemail.com
Fri Aug 5 15:41:13 UTC 2011


Package: python-scrapy
Version: 0.12.0.2542-1
Severity: normal
Tags: patch
User: jtaylor.debian at googlemail.com
Usertags: ipython-0.11

IPython 0.11 has been released last week [0,1]. It is currently
available in debian experimental.

In order to upgrade IPython in unstable your package needs to be updated
to deal with the new api and configuration system.
Some hints for migrating applications are available here:
http://wiki.ipython.org/Cookbook/Updating_code_that_uses_IPython_for_0.11

The documentation for the new version can be found here:
http://ipython.org/ipython-doc/rel-0.11/index.html

The patch applied upstream in
https://github.com/insophia/scrapy/commit/3191a0856003e8298d9d4b74aec56ffb5ed38432
is not correct.
I forwarded this patch:
Index: console.py
===================================================================
--- console.py	2011-08-05 17:32:47.877221950 +0200
+++ console.py	2011-08-05 17:38:08.567221910 +0200
@@ -11,8 +11,11 @@
             if noipython:
                 raise ImportError
             import IPython
-            shell = IPython.Shell.IPShellEmbed(argv=[], user_ns=namespace)
-            shell()
+            try:
+                IPython.embed(user_ns=namespace)
+            except AttributeError:
+                shell = IPython.Shell.IPShellEmbed(argv=[], user_ns=namespace)
+                shell()
         except ImportError:
             import code
             try: # readline module is only available on unix systems

[0] http://mail.scipy.org/pipermail/ipython-dev/2011-July/008041.html
[1] http://ipython.org/ipython-doc/rel-0.11/whatsnew/version0.11.html






-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20110805/bdb7b143/attachment.pgp>


More information about the Python-modules-team mailing list