Your message dated Sun, 16 May 2010 12:33:32 +0000
with message-id <[email protected]>
and subject line Bug#573369: fixed in python-scrapy 0.8-3
has caused the Debian Bug report #573369,
regarding python-scrapy: view response in browser required at least python2.6
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
573369: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573369
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Source: python-scrapy
Source-Version: 0.8-3
We believe that the bug you reported is fixed in the latest version of
python-scrapy, which is due to be installed in the Debian FTP archive:
python-scrapy-doc_0.8-3_all.deb
to main/p/python-scrapy/python-scrapy-doc_0.8-3_all.deb
python-scrapy_0.8-3.debian.tar.gz
to main/p/python-scrapy/python-scrapy_0.8-3.debian.tar.gz
python-scrapy_0.8-3.dsc
to main/p/python-scrapy/python-scrapy_0.8-3.dsc
python-scrapy_0.8-3_all.deb
to main/p/python-scrapy/python-scrapy_0.8-3_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Ignace Mouzannar <[email protected]> (supplier of updated python-scrapy
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Thu, 13 May 2010 14:59:09 +0200
Source: python-scrapy
Binary: python-scrapy python-scrapy-doc
Architecture: source all
Version: 0.8-3
Distribution: unstable
Urgency: low
Maintainer: Debian Python Modules Team
<[email protected]>
Changed-By: Ignace Mouzannar <[email protected]>
Description:
python-scrapy - Python web scraping and crawling framework
python-scrapy-doc - Python web scraping and crawling framework documentation
Closes: 573369
Changes:
python-scrapy (0.8-3) unstable; urgency=low
.
* debian/watch:
- Corrected regular expression to catch "Scrapy" and "scrapy".
* debian/patches:
- 01_external_modules.diff: refreshed patch.
- 02_view_response.diff: fixes bug in open_in_browser() function with
Python 2.5. (Closes: #573369).
* debian/control:
- Bumped Standards-Version to 3.8.4.
* debian/python-scrapy.lintian-overrides:
- Added overrides for 'duplicated-compressed-file' as the two suspected
files are intentionally present and used by the scrapy test suite.
Checksums-Sha1:
e0e703d4fea54a056f1e98a8487e04f2168b6ed3 1494 python-scrapy_0.8-3.dsc
c3d2e7ee90c3682f5d8925552f23ed31d5ed379b 6196 python-scrapy_0.8-3.debian.tar.gz
2495be4fc526e380d00038915d1aa375ad9d92e9 205634 python-scrapy_0.8-3_all.deb
3f6f54afe5c920ec19c24ee56d1476bfe31462d1 445582 python-scrapy-doc_0.8-3_all.deb
Checksums-Sha256:
a03d070f67fd83adc21d41cc290530922fa60eb30c4913da557a64126e63790a 1494
python-scrapy_0.8-3.dsc
f82863d52027521ec5c419bcbeb2c0a3c1459c30e34ce1deb4c7ba8326bdf011 6196
python-scrapy_0.8-3.debian.tar.gz
a5793dd0de8bf7fcf8b58a8bd71faf37c457c5cdcfc3ed64d1882bbf3672de0a 205634
python-scrapy_0.8-3_all.deb
d2f259ab6539fbdc2f7939f2f7f05bea1ab97284209a03b2d5fee17f38040d31 445582
python-scrapy-doc_0.8-3_all.deb
Files:
d373d6badad8dc1f7ef35fd3bc994911 1494 python optional python-scrapy_0.8-3.dsc
8b005876a4d736ca26ac31650558737f 6196 python optional
python-scrapy_0.8-3.debian.tar.gz
8dcf6527c7dc9e4842be3879b087d709 205634 python optional
python-scrapy_0.8-3_all.deb
207ff124f5ed16ac0624f73068b69284 445582 doc optional
python-scrapy-doc_0.8-3_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Signed by Ana Guerrero
iEYEARECAAYFAkvv40sACgkQn3j4POjENGEQOACfXDnSllgisSJXCqqlU6UazIE2
zvgAnii2/yz2ePQWD9/YA/EMR/avc4+R
=UUGB
-----END PGP SIGNATURE-----
--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/python-modules-team