FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 01-08-2011, 08:46 PM
Daniel D Jones
 
Default No module named sqlite3

I'm trying to install keepnote:

http://rasm.ods.org/keepnote/

It's not in portage but there's a downloadable ebuild at the site. Emerging
the package, I get the following error:

File "/var/tmp/portage/app-
text/keepnote-0.6.7/work/keepnote-0.6.7/keepnote/notebook/index.py", line 33,
in <module>
import sqlite3 as sqlite
ImportError: No module named sqlite3

I have both sqlite and pysqlite installed. The library _sqlite.so exists in
directory /usr/lib/python2.6/site-packages/pysqlite2/.

From the python command line:

---------------------------------------------------------------------------
>>> import sys

>>> print sys.path
[', '/usr/lib/python26.zip', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-
linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old',
'/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/site-packages',
'/usr/lib/python2.6/site-packages/gtk-2.0', '/usr/lib/portage/pym']

>>> sys.path.append('/usr/lib/python2.6/site-packages/pysqlite2/')

>>> import sqlite3
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named sqlite3

>>> print sys.path
[', '/usr/lib/python26.zip', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-
linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old',
'/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/site-packages',
'/usr/lib/python2.6/site-packages/gtk-2.0', '/usr/lib/portage/pym',
'/usr/lib/python2.6/site-packages/pysqlite2/']
---------------------------------------------------------------------------

I believe the python sys.path was sufficient but even adding the specific
directory resulted in failing to import the module.

I've run python-updater, re-emerged sqlite and pysqlite and am still getting
the error. Any ideas or suggestions greatly appreciated.

--
"Men like to pursue an elusive woman like a cake of wet soap - even men who
hate baths." - Gelett Burgess
 
Old 01-08-2011, 08:54 PM
Xavier Parizet
 
Default No module named sqlite3

Le 08/01/2011 22:46, Daniel D Jones a écrit :

I'm trying to install keepnote:

http://rasm.ods.org/keepnote/

It's not in portage but there's a downloadable ebuild at the site. Emerging
the package, I get the following error:

File "/var/tmp/portage/app-
text/keepnote-0.6.7/work/keepnote-0.6.7/keepnote/notebook/index.py", line 33,
in<module>
import sqlite3 as sqlite
ImportError: No module named sqlite3


Sqlite is slotted, you need to install sqlite version 3 slot. Once it's
done, it should work out of the box.



I have both sqlite and pysqlite installed. The library _sqlite.so exists in
directory /usr/lib/python2.6/site-packages/pysqlite2/.


[SNIP]

--
Xavier Parizet
http://gentooist.com
 

Thread Tools




All times are GMT. The time now is 10:01 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org