On Jun 4, 2011, at 7:35 PM, Pepe Araya wrote: > In webfaction, I did a fresh install using their install script but i get > this error: > > Traceback (most recent call last): > File "web2py.py", line 16, in <module> > import gluon.widget > File "/home/pepearaya/webapps/crewcatalyst2/web2py/gluon/__init__.py", line > 15, in <module> > from globals import current > File "/home/pepearaya/webapps/crewcatalyst2/web2py/gluon/globals.py", line > 21, in <module> > from html import xmlescape, TABLE, TR, PRE > File "/home/pepearaya/webapps/crewcatalyst2/web2py/gluon/html.py", line 29, > in <module> > from utils import web2py_uuid, hmac_hash > File "/home/pepearaya/webapps/crewcatalyst2/web2py/gluon/utils.py", line > 98, in <module> > ctokens = initialize_urandom() > File "/home/pepearaya/webapps/crewcatalyst2/web2py/gluon/utils.py", line > 93, in initialize_urandom > logging.warn( > NameError: global name 'logging' is not defined > > any idea of what I can to do??
For now, import logging. This should be changed to use logging the way the rest of web2py does, though. See compileapp.py for a generic example using the 'web2py' logger. > thanks a lot!