Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #104151

Re: SQLite

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Klaus Jantzen <k.d.jantzen@mailbox.org>
Newsgroups comp.lang.python
Subject Re: SQLite
Date Sun, 6 Mar 2016 16:52:24 +0100
Lines 94
Message-ID <mailman.250.1457279961.20602.python-list@python.org> (permalink)
References <56C9EFB6.1090309@mailbox.org> <DUB123-W103AD6A677F175CB926D1183A20@phx.gbl> <56CAC7AB.2000902@mailbox.org>
Mime-Version 1.0
Content-Type text/plain; charset="utf-8"
X-Trace news.uni-berlin.de 6NGnm5QE5z4ywJDW+f8zRgC5HZHvEUARNd6w4Ry8LElg==
Return-Path <k.d.jantzen@mailbox.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'configure': 0.04; 'importerror:': 0.05; 'problem?': 0.07; "'no": 0.09; '(sorry': 0.09; '===': 0.09; 'modules.': 0.09; 'sqlite': 0.09; 'python': 0.10; 'appropriate': 0.14; '&gt;&gt;&gt;': 0.15; "'make": 0.16; '2016': 0.16; '23,': 0.16; 'makefile.': 0.16; 'module?': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'sqlite3': 0.16; 'sudo': 0.16; "test'": 0.16; 'wrote:': 0.16; 'obviously': 0.16; '&gt;': 0.18; 'thanks.': 0.18; 'skip:" 40': 0.20; 'suggested': 0.20; '(the': 0.22; 'visible': 0.22; 'am,': 0.23; 'feb': 0.23; 'installation': 0.23; 'references': 0.23; 'second': 0.24; 'import': 0.24; '(most': 0.24; 'downloaded': 0.24; 'header:In- Reply-To:1': 0.24; 'module': 0.25; 'install': 0.25; 'header:User- Agent:1': 0.26; 'linux': 0.26; 'helpful': 0.27; 'least': 0.27; '+0100': 0.27; 'expansion': 0.27; 'url:mailman': 0.30; 'date:': 0.31; 'entry': 0.31; 'option': 0.31; 'skip:- 30': 0.32; 'compiled': 0.32; 'url:python': 0.33; 'traceback': 0.33; 'url:listinfo': 0.34; 'file': 0.34; 'running': 0.34; 'something': 0.35; 'subject:': 0.35; 'but': 0.36; 'url:org': 0.36; 'email addr:python.org': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'skip:& 10': 0.37; 'thanks': 0.37; 'received:org': 0.37; 'wanted': 0.37; 'test': 0.39; 'from:': 0.39; 'url:mail': 0.40; 'to:addr:python.org': 0.40; 'where': 0.40; 'hello,': 0.40; 'your': 0.60; 'more': 0.63; "'make'": 0.84; '09:32': 0.84; 'apt-get': 0.84; 'python-dev': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :mime-version:user-agent:date:date:message-id:from:from :references:subject:subject:received; s=mail20150812; t= 1457279546; bh=32uMmFsg67bF+Wu8jBOIip12niPQDS1GEwD6D6k8ICA=; b=a l22iVbJE7ihJD2jq9TE/KpaAmHsXfhy4uAKrAEOUbFu4Lyf6GDLXuf/hhz/LzGCq V0ayAef6YMzdEuY+pn1YhKumXdoZ0hSfgcuwumpD8n2drAsFggzYHuqZw5osi0MB ApiuDbtV9YcFEjVHidAvhtdRJaBXi7NPLSBcG0NRMOwJxg7Qi2lvMICaEucHDxkc It4VJCKfuLyDL64xDnb95vJKJr9acGaZQ2zbDGzzgDflypzgA9FZNkpaFt5y3y51 cwq2QWTkv5tEvj82aeaZ0PJIzuEkk87MjdAnndjg0zos+wjeE/VWdBNtJY3s8nWt IyDq1ZfOD8UzCe5gqp8kw==
X-Virus-Scanned amavisd-new at heinlein-support.de
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.6.0
In-Reply-To <56CAC7AB.2000902@mailbox.org>
X-Content-Filtered-By Mailman/MimeDel 2.1.21
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:104151

Show key headers only | View raw


   On 02/22/2016 09:32 AM, Klaus Jantzen wrote:

    On 02/21/2016 10:37 PM, Albert-Jan Roskam wrote:

      (Sorry for top posting)

      IIRC, you have to do
      sudo apt-get install build-essential python-dev
      ... then re-compile python

      > To: [[1]1]python-list@python.org
      > From: [[2]2]k.d.jantzen@mailbox.org
      > Subject: SQLite
      > Date: Sun, 21 Feb 2016 18:11:18 +0100
      >
      > Hello,
      >
      > I have downloaded Python3.5.1 as .targz, compiled it(configure,
      make,...)
      > and it works
      > (under Debian Wheezy AMD64) up to the moment I wanted to use SQLite.
      >
      > I get the following message:
      > ===
      > jantzen@PC4:~$ python
      > Python 3.5.0 (default, Dec  2 2015, 14:16:16)
      > [GCC 4.7.2] on linux
      > Type "help", "copyright", "credits" or "license" for more information.
      > >>> import sqlite3
      > Traceback (most recent call last):
      >   File "<stdin>", line 1, in <module>
      >   File "/usr/local/lib/python3.5/sqlite3/__init__.py", line 23, in
      > <module>
      >     from sqlite3.dbapi2 import *
      >   File "/usr/local/lib/python3.5/sqlite3/dbapi2.py", line 27, in
      <module>
      >     from _sqlite3 import *
      > ImportError: No module named '_sqlite3'
      > ===
      >
      > Obviously something is missing.
      > How do I solve the problem? Where do I find this module?
      >
      > Thanks for a hint.
      > --
      >
      > K.D.J.
      > --
      > [3][3]https://mail.python.org/mailman/listinfo/python-list

    Hello,

    thanks for your hint.
    That did it!!!

   At least on one machine!!!

    --

    K.D.J.

 References

    Visible links
    1. [4]mailto:python-list@python.org
    2. [5]mailto:k.d.jantzen@mailbox.org
    3. [6]https://mail.python.org/mailman/listinfo/python-list

   On the second machine  (DELL E6530) I have everything in the installation
   directory (the expansion of the tarball): sqlite directory with all the
   modules.
   I ran the apt-get install as suggested above.
   I ran './configure --enable-loadable-sqlite-extensions' and find the
   appropriate entry in the
   configure.log.
   I ran 'make' and find the configure option in the Makefile.
   But when running 'make test' the sqlite test fails  with 'no _sqlite3
   module' 

   Any helpful ideas?
   Thanks.
   --

   K.D.J.

References

   Visible links
   1. mailto:1]python-list@python.org
   2. mailto:2]k.d.jantzen@mailbox.org
   3. https://mail.python.org/mailman/listinfo/python-list
   4. mailto:python-list@python.org
   5. mailto:k.d.jantzen@mailbox.org
   6. https://mail.python.org/mailman/listinfo/python-list

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: SQLite Klaus Jantzen <k.d.jantzen@mailbox.org> - 2016-03-06 16:52 +0100

csiph-web