maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Python+sqlite3 on N900 (https://talk.maemo.org/showthread.php?t=56023)

steffen 2010-06-12 21:37

Python+sqlite3 on N900
 
Hi everybody.
I'm starting to develop a simple Python application for the Maemo 5 OS with Scratchbox and ESBox.
I'm trying to use sqlite from python and I've read that I have to import pysqlite module. Furthermore, searching the internet I've read that this module should be natively installed on the system, but I can't find a way to import this module.
Any help would be greatly appreciated.

jaguilar 2010-06-12 22:24

Re: Python+sqlite3 on N900
 
Import sqlite3, not pysqlite.

http://docs.python.org/library/sqlite3.html

steffen 2010-06-12 22:29

Re: Python+sqlite3 on N900
 
jaguilar, first of all, thanks for interesting
I had already tried importing sqlite3 with no success
after a scan of py files within the scratchbox filesystem I've found out that I had installed more than one version of python interpreter and the default one was 2.3.
Launching 'python2.5' I managed to import sqlite3.

Thanks again

Steffen


All times are GMT. The time now is 00:09.

vBulletin® Version 3.8.8