Thanks, that solved it, I used --enable-sqlite3 with configure.
Now to play around with web2py.
Thanks again, your help was much appreciated
On Thu, Nov 6, 2008 at 4:19 PM, Timothy Farrell <[EMAIL PROTECTED]> wrote:
> Just install the dev package of sqlite3 and configure should take care of
> it. Otherwise you might try a --with-sqlite flag or something like that.
> It has been a while since I compiled python.
>
> We want people to use web2py, we don't mind stepping out of bounds a little
> to do so.
>
> =)
>
> Tim O'Toole wrote:
>
> I did indeed compile python from source, I looked through the
> configure help but I didn't see any specific options for sqlite? It
> makes sense that there should be, but I'm not clear.
>
>
> Sorry, the question has strayed beyond the realm of web2py now.
>
> On Thu, Nov 6, 2008 at 3:58 PM, Timothy Farrell <[EMAIL PROTECTED]> wrote:
>
>
> It sounds like you compiled Python from source. If that's the case, are you
> sure you included sqlite support? You have to have the Sqlite headers in
> order for it to be compiled in.
>
> -tim
>
> mdipierro wrote:
>
> I strongly recommend that you use Python 2.5 since only this month
> web2py has been ported to Python 2.6
>
> Massimo
>
> On Nov 6, 8:14 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
>
> Hi all,
>
> I'd like to experiment using web2py for a small intranet site. To this
> end I firstly downloaded Python 2.6 and installed it locally on my
> user account (2.3 is being used system wide). After launching web2py
> with ~/bin/python2.6 web2py I subsequently got the following traceback
> in the launched web browser:
>
> Traceback (most recent call last):
> File "/****/public_html/temp/web2py/gluon/restricted.py", line 62,
> in restricted
> exec ccode in environment
> File "/****/public_html/temp/web2py/applications/welcome/models/
> db.py", line 8, in <module>
> db=SQLDB('sqlite://storage.db') # if not, use SQLite or
> other DB
> File "/****/public_html/temp/web2py/gluon/sql.py", line 362, in
> __init__
> self._pool_connection(lambda:sqlite3.Connection(dbpath))
> File "/****/public_html/temp/web2py/gluon/sql.py", line 334, in
> _pool_connection
> self._connection=f()
> File "/****/public_html/temp/web2py/gluon/sql.py", line 362, in
> <lambda>
> self._pool_connection(lambda:sqlite3.Connection(dbpath))
> NameError: global name 'sqlite3' is not defined
>
> Clearly, this points to not having sqlite3 installed? I thought
> sqlite3 was part of python from version 2.5 onwards? In a python
> shell, when I try "import sqlite3" I get the following:
>
> File "<stdin>", line 1, in <module>
> File "/****/bin/lib/python2.6/sqlite3/__init__.py", line 24, in
> <module>
> from dbapi2 import *
> File "/****/bin/lib/python2.6/sqlite3/dbapi2.py", line 27, in
> <module>
> from _sqlite3 import *
> ImportError: No module named _sqlite3>>> import sqlite
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named sqlite
>
> Any suggestions where I should go next (aside from home to my bed!)
>
>
>
>
>
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---