[SOLVED] No _sqlite3.so in /usr/lib/python2.5/lib-dynload
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Python-2.5 has built in support for SQLite3, so pysqlite2 is no longer required. However, my application will not load because when /usr/lib/python2.5/sqlite3/dbapi2.py calls "from _sqlite3 import *", there is no _sqlite3.so found. Sure enough, it's not present in /usr/lib/python2.5/lib-dynload, where others have it installed.
Do I need to re-install the python2.5 package, or are others missing this library, too?
I don't know why exactly, but PV hasn't included sqlite3 in Slackware yet, so Python's built-in sqlite3 module isn't working. Personally I consider this a broken Python distribution, as the sqlite3 module should be available being standard in Python 2.5. I think at this moment you need to install sqlite3 and recompile Python to have it available.
I just came back to post that I found the problem and fixed it. You're absolutely correct: the default package is broken because it excludes the SQLite3 support distributed with the 2.5.1 source code.
By building from source and moving the library to /usr/lib/python2.5/lib-dynload/ I resolved the issue. There's still a wxPython issue with the very latest version that's yet to be resolved, but that's for the wxPython mail list.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.