Your message dated Thu, 26 Jul 2012 11:32:47 +0200
with message-id 
<can64bfbsd6k9mcprjy5evlvkv9zqx7ftpodk4ob9jewhjhi...@mail.gmail.com>
and subject line Re:
has caused the Debian Bug report #668366,
regarding python2.7: sqlite3.Connection enable_load_extension() method 
described in documentation but not operationnal
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.)


-- 
668366: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=668366
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python2.7
Version: 2.7.3~rc2-2
Severity: normal

Dear Maintainer,

Python2.7 documentation describes enable_load_extension() method on
sqlite3.Connection object. It's a new function of Python 2.7 (as said in the
documentation).

But if you try the example given in the documentation, it fails :

(run under ipython2.7)
import sqlite3
con = sqlite3.connect(":memory:")
con.enable_load_extension(True)
AttributeError: 'sqlite3.Connection' object has no attribute
'enable_load_extension'

The same example works fine with Python3.

So, I don't really know if it's a bug of python2.7 or python2.7-doc, or if it's
not really a bug.

Anyway, I thought it was worth signaling this problem.

Regards,

Sebastien KALT



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (800, 'testing'), (700, 'stable-updates'), 
(700, 'stable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python2.7 depends on:
ii  libbz2-1.0         1.0.6-1
ii  libc6              2.13-27
ii  libdb5.1           5.1.29-1
ii  libexpat1          2.1.0-1
ii  libgcc1            1:4.7.0-2
ii  libncursesw5       5.9-6
ii  libreadline6       6.2-8
ii  libsqlite3-0       3.7.11-2
ii  libtinfo5          5.9-6
ii  mime-support       3.52-1
ii  python2.7-minimal  2.7.3~rc2-2

python2.7 recommends no packages.

Versions of packages python2.7 suggests:
ii  binutils       2.22-6
ii  python2.7-doc  2.7.3~rc2-2

-- no debconf information



--- End Message ---
--- Begin Message ---
Hi,

I'm not used to Debian BTS commands, it seems I can close the bug myself.

I join a copy of my explanation, sent just before as a comment to the bug.

Sebastien KALT

2012/7/26 Sébastien Kalt <[email protected]>
>
> Dear Maintainer,
>
> Sorry for reporting the present bug : it is clearly written in the doc that 
> loadable extensions are disabled by default in Debian.
>
> It seems I'm a bad documentation reader, going directly to code examples 
> without reading the warnings.
>
> Anyway, it can be closed.
>
> If anyone is interested, I found this workaround, which needs 
> python-pysqlite2 package :
>
> from pysqlite2 import dbapi2 as sqlite3
> con = sqlite3.connect(":memory:")
> con.enable_load_extension(True)
> con.load_extension("/usr/lib/libspatialite.so.3")
> con.enable_load_extension(False)
>
> Regards,
>
> Sebastien KALT

--- End Message ---

Reply via email to