This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Installing a distro without sqlite3 will require a reinstall of python to function if installed at a later date
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 2.6
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: antlong, r.david.murray
Priority: normal Keywords:

Created on 2010-07-24 05:46 by antlong, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg111428 - (view) Author: Anthony Long (antlong) Date: 2010-07-24 05:46
install a distro of without sqlite3 support. now you should have a /usr/lib/python2.6/sqlite3, which obviously isn't usable.

now if you install sqlite3, and try a 'import sqlite3' it still doesn't work. so you have to compile/install python2.6 again. after which it works fine.


http://www.linuxfromscratch.org/blfs/view/svn/general/python.html
msg111429 - (view) Author: Anthony Long (antlong) Date: 2010-07-24 05:50
Same behaviour on python 3,
http://pastebin.ca/1907343
msg111480 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-07-24 14:22
This is not a bug in Python.  Your link implies you are building things from scratch, so it is your responsibility to resolve the dependencies.

sqlite3 support is implemented via an extension module (compiled C code).  That extension module must be built against sqlite3.  If you don't have sqlite3 installed, the extension can't be built (which the Python build process tells you in the summary at the end).  If you later install sqlite3, there's no way the extension module to get automatically compiled.  You have to do it, as you discovered.

On systems with a package manager, the sqlite3 dependency would be automatically resolved.  Unless you told the system to build without sqlite, in which case it would again be your responsibility to reinstall python after changing your mind.
History
Date User Action Args
2022-04-11 14:57:04adminsetgithub: 53611
2010-07-24 14:22:04r.david.murraysetstatus: open -> closed

nosy: + r.david.murray
messages: + msg111480

resolution: not a bug
stage: resolved
2010-07-24 05:50:45antlongsetmessages: + msg111429
2010-07-24 05:46:04antlongcreate