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, 09:33 PM
Thomas Weinbrenner
 
Default No module named sqlite3

Am 08.01.2011 22:46, schrieb Daniel D Jones:

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

I had a similar problem. If I remember correctly (and I am not sure that
I do) I solved it by re-emerging python itself.

HTH
 
Old 01-08-2011, 11:11 PM
Peter Humphrey
 
Default No module named sqlite3

On Saturday 08 January 2011 21:46:08 Daniel D Jones wrote:

> I've run python-updater, re-emerged sqlite and pysqlite and am still
> getting the error.

How many versions of python do you have installed? I found I had three:

$ eselect python list
Available Python interpreters:
[1] python2.6 *
[2] python2.7
[3] python3.1

$ sudo eselect python set 2

After that python-updater found 75 packages to remerge. It's running
now. I'm heartily glad I didn't just go and unmerge 2.6 without checking
first!

--
Rgds
Peter. Linux Counter 5290, 1994-04-23.
 
Old 01-08-2011, 11:12 PM
Daniel D Jones
 
Default No module named sqlite3

On Saturday, January 08, 2011 16:54:21 Xavier Parizet wrote:
> 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.

root@merlin / $eix dev-db/sqlite
[i] dev-db/sqlite
Available versions:
(0) 2.8.16-r4!t
(3) 3.7.2 ~3.7.3 ~3.7.4
{debug doc (+)extensions +fts3 icu nls +readline secure-delete soundex
tcl test +threadsafe unlock-notify}
Installed versions: 3.7.2(3)(04:19:05 PM 01/08/2011)(extensions fts3
readline threadsafe -debug -doc -icu -secure-delete -soundex -tcl -test -
unlock-notify)
Homepage: http://sqlite.org/
Description: A SQL Database Engine in a C Library

Unless I'm misreading something, slot 3 is installed and is the only slot
installed.

--
"I am not afraid of tomorrow, for I have seen yesterday and I love today." -
William Allen White, American journalist (1868-1944)
 
Old 01-08-2011, 11:25 PM
Daniel D Jones
 
Default No module named sqlite3

On Saturday, January 08, 2011 17:33:18 Thomas Weinbrenner wrote:
> Am 08.01.2011 22:46, schrieb Daniel D Jones:
> > I've run python-updater, re-emerged sqlite and pysqlite and am still
> > getting the error. Any ideas or suggestions greatly appreciated.
>
> I had a similar problem. If I remember correctly (and I am not sure that
> I do) I solved it by re-emerging python itself.

Thanks for the response. Reemerged python and still get the same error.

--
"Debauchee, n. One who has so earnestly pursued pleasure that he has had the
misfortune to overtake it." - Ambrose Bierce
 
Old 01-08-2011, 11:32 PM
Daniel D Jones
 
Default No module named sqlite3

On Saturday, January 08, 2011 19:11:50 Peter Humphrey wrote:
> On Saturday 08 January 2011 21:46:08 Daniel D Jones wrote:
> > I've run python-updater, re-emerged sqlite and pysqlite and am still
> > getting the error.
>
> How many versions of python do you have installed? I found I had three:
>
> $ eselect python list
> Available Python interpreters:
> [1] python2.6 *
> [2] python2.7
> [3] python3.1

root@merlin /usr/lib/python2.6/site-packages/pysqlite2 $eselect python list
Available Python interpreters:
[1] python2.6 *
[2] python3.1

> $ sudo eselect python set 2

Is there any reason python shouldn't be set to version 3? Are there backwards
compatibility issues that will break things?

--
"The gods are dead, but in their name
Humanity is sold to shame,
While (then as now!) the tinsel'd Priest
Sitteth with robbers at the feast,
Blesses the laden blood-stain'd board,
Weaves garlands round the butcher's sword,
And poureth freely (now as then)
The sacramental blood of Men!"
- Robert Buchanan, Scottish poet, novelist, and playwright (1841-1901)
 
Old 01-09-2011, 06:39 AM
Keith Dart
 
Default No module named sqlite3

=== On Sat, 01/08, Daniel D Jones wrote: ===
> Is there any reason python shouldn't be set to version 3? Are there
> backwards compatibility issues that will break things?

===

Yes, many. It will be years more before the Python world is fully
migrated to version 3.



-- Keith Dart

--

-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
Keith Dart <keith@dartworks.biz>
public key: ID: 19017044
<http://www.dartworks.biz/>
================================================== ===================
 

Thread Tools




All times are GMT. The time now is 05:26 AM.

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