Hello,

I downloaded pysqlite2 module, but when I ran my code I get a "No module
named _sqlite error". I'm using python 2.5 and Windows XP.
I need to load spatialite library and thats why I want to upgrade the
sqlite3 module that comes with python 2.5
Can anyone help me? thanks.

Here's the code:

import sqlite3

conn =  sqlite3.connect('new2.sqlite')
c = conn.cursor()
res= c.execute("SELECT spatialite_version()")
print res
c.execute('''create table socks(date text, trans text, symbol text, qty
real, price real)''')

c.execute("""insert into stocksvalues
('2006-01-05','BUY','RHAT',100,35.14)""")
c.execute("""UPDATE signs SET codigoPropio='ttt' WHERE id_sign=1""")

conn.commit()
c.close()

Marcelo
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to