Gentoo Archives: gentoo-user

From: "Michael P. Soulier" <msoulier@×××××××××××××.ca>
To: gentoo-user@l.g.o
Subject: [gentoo-user] can't get pysqlite custom build working
Date: Sat, 31 Jan 2009 04:21:13
Message-Id: 20090131042057.GP2375@anton.digitaltorque.ca
1 I have a custom build of python 2.3 for work compatability purposes. I built
2 pysqlite-2.5.1 against it, but it refuses to load.
3
4 msoulier@anton:...mp/pysqlite-2.5.1$ ~/work/msl8/bin/python
5 Python 2.3.7 (#1, Jan 21 2009, 17:23:45)
6 [GCC 4.1.2 (Gentoo 4.1.2 p1.1)] on linux2
7 Type "help", "copyright", "credits" or "license" for more information.
8 >>> from pysqlite2 import dbapi2 as sqlite
9 Traceback (most recent call last):
10 File "<stdin>", line 1, in ?
11 File "pysqlite2/dbapi2.py", line 27, in ?
12 from pysqlite2._sqlite import *
13 ImportError: No module named _sqlite
14
15 A pysqlite developer tells me that this is due to sqlite being built on my
16 Gentoo box with custom options. He did not elaborate as to which options might
17 cause the issue.
18
19 I don't suppose anyone has done this themselves? I'm not sure how to solve
20 this.
21
22 Mike
23 --
24 Michael P. Soulier <msoulier@×××××××××××××.ca>
25 "Any intelligent fool can make things bigger and more complex... It takes a
26 touch of genius - and a lot of courage to move in the opposite direction."
27 --Albert Einstein