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


Groups > comp.lang.python > #103318

RE: SQLite

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Albert-Jan Roskam <sjeik_appie@hotmail.com>
Newsgroups comp.lang.python
Subject RE: SQLite
Date Sun, 21 Feb 2016 21:37:43 +0000
Lines 24
Message-ID <mailman.25.1456090731.20994.python-list@python.org> (permalink)
References <56C9EFB6.1090309@mailbox.org>
Mime-Version 1.0
Content-Type text/plain; charset="windows-1256"
Content-Transfer-Encoding base64
X-Trace news.uni-berlin.de +09VnuJjrVT7G8PnN0ypRAh5EeRxa4h1BvGH7UmhQmiA==
Return-Path <sjeik_appie@hotmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'importerror:': 0.05; 'problem?': 0.07; '(sorry': 0.09; '===': 0.09; 'sqlite': 0.09; 'python': 0.10; '2016': 0.16; '23,': 0.16; 'module?': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'sfxlen:0': 0.16; 'sqlite3': 0.16; 'sudo': 0.16; 'obviously': 0.16; '>>>': 0.20; 'skip:" 40': 0.20; 'to:2**1': 0.21; '"",': 0.22; 'feb': 0.23; 'dec': 0.23; 'import': 0.24; '(most': 0.24; 'downloaded': 0.24; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'install': 0.25; 'linux': 0.26; 'to:no real name:2**1': 0.27; '+0100': 0.27; 'url:mailman': 0.30; 'date:': 0.31; 'compiled': 0.32; 'url:python': 0.33; 'traceback': 0.33; 'url:listinfo': 0.34; 'file': 0.34; 'something': 0.35; 'subject:': 0.35; 'url:org': 0.36; 'email addr:python.org': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'thanks': 0.37; 'wanted': 0.37; 'from:': 0.39; 'url:mail': 0.40; 'to:addr:python.org': 0.40; 'where': 0.40; 'hello,': 0.40; 'more': 0.63; 'email name:python-list': 0.67; 'charset:windows-1256': 0.67; 'apt-get': 0.84; 'python-dev': 0.84
X-TMN [OHaQjCMldXlF7y3gBAVMuIeKIKEWaSMT]
X-Originating-Email [sjeik_appie@hotmail.com]
Importance Normal
In-Reply-To <56C9EFB6.1090309@mailbox.org>
X-OriginalArrivalTime 21 Feb 2016 21:37:43.0587 (UTC) FILETIME=[18E1FF30:01D16CF0]
X-Content-Filtered-By Mailman/MimeDel 2.1.21rc2
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21rc2
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:103318

Show key headers only | View raw


(Sorry for top posting)

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

> To: python-list@python.org
> From: 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.
> -- 
> https://mail.python.org/mailman/listinfo/python-list
 		 	   		  

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


Thread

RE: SQLite Albert-Jan Roskam <sjeik_appie@hotmail.com> - 2016-02-21 21:37 +0000

csiph-web