LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Python bug in -current? (http://www.linuxquestions.org/questions/slackware-14/python-bug-in-current-633384/)

Rupa 04-06-2008 04:10 AM

Python bug in -current?
 
Can anyone confirm that importing sqlite3 from python in -current does not work?

Code:

Python 2.5.2 (r252:60911, Mar  1 2008, 13:52:45)
[GCC 4.2.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/sqlite3/__init__.py", line 24, in <module>
    from dbapi2 import *
  File "/usr/lib/python2.5/sqlite3/dbapi2.py", line 27, in <module>
    from _sqlite3 import *
ImportError: No module named _sqlite3

I did a fresh install of -current a few days ago. If it is a bug, where should it be submitted to?

TIA,
Rupa

mRgOBLIN 04-06-2008 06:11 AM

I do believe there is no sqlite with Slackware so python is built without support for it.

dunric 04-06-2008 06:46 PM

As sqlite package is not an official part of Slackware distribution, Python package is built without its support, although it contains wrapper modules.
You may install sqlite package (Sqlite SlackBuild) and either rebuild official Python package (Python SlackBuild) with sqlite support enabled or install pysqlite package directly (pysqlite2 SlackBuild).


All times are GMT -5. The time now is 06:30 PM.