[Baypiggies] Python & Django: No module named _sqlite3
andywiggin at gmail.com
Mon Aug 16 21:55:57 CEST 2010
I had what sounds like a similar problem when building my own sqlite
and Python 2.5.4. I believe the root problem was that the Python build
script could not find the sqlite header files so the _sqlite3.so was
not built. My solution was simply to add the correct C compiler flag
to the standard env variable before calling configure for Python. E.g.
setenv CPPFLAGS -I/my-root-path/sqlite3/include
As suggested, there may be a way to accomplish the same thing using
./configure options, etc.
On Mon, Aug 16, 2010 at 12:03 PM, Michael Pittaro
<mikeyp at lahondaresearch.org> wrote:
> When building Python from source, I have developed the habit of running the
> tests after the build
>> ./configure ....
>> make test
> The test output will tell you which modules weren't built, and which test
> skips were unexpected.
> I think Simeon was going in the right direction; the sqlite modules probably
> didn't build because the development headers are missing.
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
More information about the Baypiggies