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
-~----------~----~----~----~------~----~------~--~---
|
begin:vcard
fn:Timothy Farrell
n:Farrell;Timothy
org:Statewide General Insurance Agency;IT
adr:;;4501 East 31st Street;Tulsa;OK;74135;US
email;internet:[EMAIL PROTECTED]
title:Computer Guy
tel;work:(918)492-1446
url:www.swgen.com
version:2.1
end:vcard