1 |
I'm trying to install keepnote: |
2 |
|
3 |
http://rasm.ods.org/keepnote/ |
4 |
|
5 |
It's not in portage but there's a downloadable ebuild at the site. Emerging |
6 |
the package, I get the following error: |
7 |
|
8 |
File "/var/tmp/portage/app- |
9 |
text/keepnote-0.6.7/work/keepnote-0.6.7/keepnote/notebook/index.py", line 33, |
10 |
in <module> |
11 |
import sqlite3 as sqlite |
12 |
ImportError: No module named sqlite3 |
13 |
|
14 |
I have both sqlite and pysqlite installed. The library _sqlite.so exists in |
15 |
directory /usr/lib/python2.6/site-packages/pysqlite2/. |
16 |
|
17 |
From the python command line: |
18 |
|
19 |
--------------------------------------------------------------------------- |
20 |
>>> import sys |
21 |
|
22 |
>>> print sys.path |
23 |
['', '/usr/lib/python26.zip', '/usr/lib/python2.6', '/usr/lib/python2.6/plat- |
24 |
linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', |
25 |
'/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/site-packages', |
26 |
'/usr/lib/python2.6/site-packages/gtk-2.0', '/usr/lib/portage/pym'] |
27 |
|
28 |
>>> sys.path.append('/usr/lib/python2.6/site-packages/pysqlite2/') |
29 |
|
30 |
>>> import sqlite3 |
31 |
Traceback (most recent call last): |
32 |
File "<stdin>", line 1, in <module> |
33 |
ImportError: No module named sqlite3 |
34 |
|
35 |
>>> print sys.path |
36 |
['', '/usr/lib/python26.zip', '/usr/lib/python2.6', '/usr/lib/python2.6/plat- |
37 |
linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', |
38 |
'/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/site-packages', |
39 |
'/usr/lib/python2.6/site-packages/gtk-2.0', '/usr/lib/portage/pym', |
40 |
'/usr/lib/python2.6/site-packages/pysqlite2/'] |
41 |
--------------------------------------------------------------------------- |
42 |
|
43 |
I believe the python sys.path was sufficient but even adding the specific |
44 |
directory resulted in failing to import the module. |
45 |
|
46 |
I've run python-updater, re-emerged sqlite and pysqlite and am still getting |
47 |
the error. Any ideas or suggestions greatly appreciated. |
48 |
|
49 |
-- |
50 |
"Men like to pursue an elusive woman like a cake of wet soap - even men who |
51 |
hate baths." - Gelett Burgess |