Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #104151
| From | Klaus Jantzen <k.d.jantzen@mailbox.org> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: SQLite |
| Date | 2016-03-06 16:52 +0100 |
| Message-ID | <mailman.250.1457279961.20602.python-list@python.org> (permalink) |
| References | <56C9EFB6.1090309@mailbox.org> <DUB123-W103AD6A677F175CB926D1183A20@phx.gbl> <56CAC7AB.2000902@mailbox.org> |
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
Re: SQLite Klaus Jantzen <k.d.jantzen@mailbox.org> - 2016-03-06 16:52 +0100
csiph-web