Hi Anand I have tested and I have sqlite3 but not pysqlite2
Kind thanks AL On Jul 14, 6:25 pm, Anand Chitipothu <[email protected]> wrote: > 2010/7/14 almacmillan <[email protected]>: > > > > > > > Hi there, > > > My name is AL and I'm completely new to programming and trying to > > teach myself Programming & Python at the ripe old age of 35. I > > downloaded the web.py basic blog app and used SQLite3 as my db > > > db = web.database(dbn='sqlite', db='blog.db') > > > I am getting what I know is probably an embarrassingly easy python > > error but I can't find the solution. The error is: > > > <type 'exceptions.TypeError'> at / > > unsupported operand type(s) for -: 'datetime.datetime' and 'unicode' > > > Python /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ > > site-packages/web/utils.py in datestr, line 704 > > Web GEThttp://0.0.0.0:8080/ > > > Can anyone help? > > Looks like problem with sqlite driver. > > Can you check if you have sqlite3 or pysqlite2 modules available? You > can test that by running "import sqlite3" and "import pysqlite2" from > python prompt. > > Anand -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
