Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 04-06-2008, 03:10 AM   #1
Registered: Apr 2008
Location: Berlin, Germany
Distribution: Slackware, Debian, NetBSD
Posts: 80

Rep: Reputation: 25
Python bug in -current?

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

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/", line 24, in <module>
    from dbapi2 import *
  File "/usr/lib/python2.5/sqlite3/", 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?

Old 04-06-2008, 05:11 AM   #2
Slackware Contributor
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 227Reputation: 227Reputation: 227
I do believe there is no sqlite with Slackware so python is built without support for it.
Old 04-06-2008, 05:46 PM   #3
Registered: Jul 2004
Distribution: Slackware, FreeBSD
Posts: 488

Rep: Reputation: 97
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).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
python: can you update the current shell from python? BrianK Programming 4 01-31-2008 12:18 AM
Is this a bug in current? slackware_newbie Slackware 3 09-19-2006 01:46 PM
bug in KDE 3.5.2 (slackware current) perfect_circle Slackware 3 04-19-2006 04:22 PM
Slackware-current Imagemagick bug fix wastelander42 Slackware 2 02-03-2006 10:11 AM
Python guru's - Is this a python bug? or is it me? bardinjw Programming 2 06-23-2005 08:17 AM

All times are GMT -5. The time now is 07:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration