Summary: | dev-lang/python-2.5.1-r5: show error when I import sqlite3 module | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Foad Nosrati Habibi <foad.nh> |
Component: | [OLD] Development | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | VERIFIED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
URL: | http://www.unknown-boy.com/GCBot/bugs/gentoo-python-2.5.1-r5 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Foad Nosrati Habibi
2008-03-01 09:02:47 UTC
It would work a lot better like this ;) from sqlite3 import * (In reply to comment #1) > It would work a lot better like this ;) > > from sqlite3 import * > But still it gives same error: Traceback (most recent call last): File "gcbot.py", line 39, in <module> from sqlite3 import * 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 -from _sqlite3 import * +from sqlite3 import * Spot the difference. On that note - did you compile python-2.5 w/ USE=sqlite? - if yes, does /usr/lib/python2.5/lib-dynload/_sqlite3.so exist? sorry from all, problem was my use flags, it fixed. thank you Thanks for reporting back. :) |