Package: python-scrapy Version: 0.8-2 Severity: normal I tried to use Scrapy interactive shell according to: http://doc.scrapy.org/topics/shell.html
When you try to use: view(response) : View response in a browser in Python 2.5 it fails: [...] In [7]: view(response) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /home/miernik/cf/src/uweam_scrapy/<ipython console> in <module>() /usr/lib/pymodules/python2.5/scrapy/utils/response.pyc in open_in_browser(response) 105 if '<base' not in body: 106 body = body.replace('<head>', '<head><base href="%s">' % response.url) --> 107 with NamedTemporaryFile(suffix='.html', delete=False) as f: 108 f.write(body) 109 webbrowser.open("file://%s" % f.name) TypeError: NamedTemporaryFile() got an unexpected keyword argument 'delete' According to http://bugs.python.org/issue6357 'delete' keyword argument is new in 2.6. The 2.6 docs mention it as being new in 2.6: http://docs.python.org/library/tempfile.html tempfile.NamedTemporaryFile([mode='w+b'[, bufsize=-1[, suffix=''[, prefix='tmp'[, dir=None[, delete=True]]]]]]) [...] New in version 2.6: The delete parameter. But this package of python-scrapy depends only on default python: 2.5, so it fails. After installing python2.6 and starting the shell with it, it works. -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (990, 'unstable'), (200, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-2-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages python-scrapy depends on: ii python 2.5.4-9 An interactive high-level object-o ii python-beautifulsoup 3.1.0.1-2 error-tolerant HTML parser for Pyt ii python-clientform 0.2.10-2.1 module for handling HTML forms on ii python-libxml2 2.7.6.dfsg-2+b1 Python bindings for the GNOME XML ii python-support 1.0.6.1 automated rebuilding support for P ii python-twisted-conch 1:10.0.0-2 The Twisted SSH Implementation ii python-twisted-core 10.0.0-2 Event-based framework for internet ii python-twisted-mail 10.0.0-1 An SMTP, IMAP and POP protocol imp ii python-twisted-web 10.0.0-1 An HTTP protocol implementation to Versions of packages python-scrapy recommends: ii ipython 0.10-1 enhanced interactive Python shell ii python 2.5.4-9 An interactive high-level object-o ii python-boto 1.9b-2 Python interface to Amazon's Web S ii python-django 1.1.1-4 High-level Python web development pn python-guppy <none> (no description available) pn python-imaging <none> (no description available) pn python-lxml <none> (no description available) ii python-mysqldb 1.2.2-10+b1 A Python interface to MySQL pn python-pygments <none> (no description available) Versions of packages python-scrapy suggests: ii python-openssl 0.10-1 Python wrapper around the OpenSSL -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org