[Python-modules-team] Bug#588246: python-pycurl: exception is thrown when setting NTLM authentication mode
gomes
gagomes at gmail.com
Tue Jul 6 12:57:08 UTC 2010
Package: python-pycurl
Version: 7.18.2-1
Severity: important
When calling:
curl.setopt(HTTPAUTH, HTTPAUTH_NTLM)
The exception below does not describe the problem (not even when following the suggestions from Erich Schubert
on bug 433941. The exception is:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "siebel.py", line 37, in __init__
curl.setopt(HTTPAUTH, HTTPAUTH_NTLM)
pycurl.error: (2, '')
Not sure if related, but I found the following in pycurl's ChangeLog which is similarly represents my issue.
http://pycurl.sourceforge.net/ChangeLog
* Use Py_ssize_t where appropriate for Python 2.5 and 64-bit
compatibility. This fixes the problem reported by Aaron
Hill, where the exception "pycurl.error: (2, '')" is thrown
when calling setopt(pycurl.POSTFIELDS,...) on 64-bit
platforms.
It works fine in sid, with the following versions.
ii curl 7.19.7-1 Get a file from an HTTP, HTTPS or FTP server
ii gnupg-curl 1.4.10-2 GNU privacy guard - a free PGP replacement (cURL)
ii libcurl3 7.19.7-1 Multi-protocol file transfer library (OpenSSL)
ii libcurl3-gnutls 7.19.7-1 Multi-protocol file transfer library (GnuTLS)
ii libcurl4-gnutls-dev 7.19.7-1 Development files and documentation for libcurl (GnuTLS
ii libwww-curl-perl 4.09-1+b1 Perl bindings to libcurl
ii python-pycurl 7.19.0-3+b1 Python bindings to libcurl
-- System Information:
Debian Release: 5.0.4
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages python-pycurl depends on:
ii libc6 2.7-18lenny2 GNU C Library: Shared libraries
ii libcomerr2 1.41.3-1 common error description library
ii libcurl3-gnutls 7.18.2-8lenny4 Multi-protocol file transfer libra
ii libgnutls26 2.4.2-6+lenny2 the GNU TLS library - runtime libr
ii libidn11 1.8+20080606-1 GNU libidn library, implementation
ii libkrb53 1.6.dfsg.4~beta1-5lenny3 MIT Kerberos runtime libraries
ii libldap-2.4-2 2.4.11-1+lenny1 OpenLDAP libraries
ii python 2.5.2-3 An interactive high-level object-o
ii python-central 0.6.8 register and build utility for Pyt
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
python-pycurl recommends no packages.
Versions of packages python-pycurl suggests:
pn libcurl4-gnutls-dev <none> (no description available)
pn python-pycurl-dbg <none> (no description available)
-- no debconf information
More information about the Python-modules-team
mailing list