I think it's 1.76.5

web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2010
Version 1.76.5 (2010-03-11 15:19:08)
Database drivers available: SQLite3

I also think that the probley is that Ubuntu 10.04 installed pythin
2.6.  Somehow, that installation ruined the MySQLdb module for python
2.6.  I can't even "inport MySQLdb" in either python 2.5 or 2.6, so
I'm working on solving that first.


On May 5, 1:16 pm, Massimo Di Pierro <[email protected]>
wrote:
> Which web2py version? the latest web2py should be using pymysql and
> not mysqldb.
>
> On May 5, 11:41 am, dsa42 <[email protected]> wrote:
>
>
>
>
>
>
>
> > I am a noob to web2py.  I am working on a previously installed system
> > at a client site (not installed by me).
>
> > I upgraded the system from Ubuntu server 9.10 (karmic) to 10.04
> > (lucid).  After reboot, I'm getting the following traceback from the
> > web2py server:
>
> > Error traceback
>
> > 1.Traceback (most recent call last):
> > 2.  File "/web2py/web2py/gluon/restricted.py", line 173, in restricted
> > 3.       exec ccode in environment
> > 4.  File "/web2py/web2py/applications/MyAppName/models/db.py", line 9,
> > in <module>
> > 5.    db = DAL('mysql://user:password@localhost/DBname')
> > 6.  File "/web2py/web2py/gluon/sql.py", line 3783, in DAL
> > 7.    db_codec=db_codec, check_reserved=check_reserved)
> > 8.  File "/web2py/web2py/gluon/sql.py", line 919, in __init__
> > 9.    self._pool_connection(lambda : MySQLdb.Connection(
> > 10.  File "/web2py/web2py/gluon/sql.py", line 829, in _pool_connection
> > 11.    self._connection = f()
> > 12.  File "/web2py/web2py/gluon/sql.py", line 919, in <lambda>
> > 13.    self._pool_connection(lambda : MySQLdb.Connection(
> > 14.NameError: global name 'MySQLdb' is not defined
> > 15.
>
> > The mysql daemon is running.  The username, password, and DBname are
> > correct.  Any ideas on where to look?

Reply via email to