But I realized the same error happen when I follow the code in python console... I don't understand because nothing changed python, web2py... since 2013.
C:\>python Python 2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)] on win 32 Type "help", "copyright", "credits" or "license" for more information. >>> import logging >>> import platform >>> logger = logging.getLogger("web2py") Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'getLogger' >>> On Friday, October 6, 2017 at 6:54:53 PM UTC-5, Omi Chiba wrote: > > Python comand console? > > Yes, it looks ok I think. > http://prntscr.com/gu94ns > > On Friday, October 6, 2017 at 6:50:44 PM UTC-5, Dave S wrote: >> >> >> >> On Friday, October 6, 2017 at 4:43:18 PM UTC-7, Omi Chiba wrote: >>> >>> I have C:\Python27 in my "Path" System variables and I can run the pyson >>> module (*.py) from command prompt. >>> >> >> >> can you, at that prompt, do >> import logging >> dir(logging) >> >> >> >> ? >> >> /dps >> >> >>> >>> On Friday, October 6, 2017 at 6:15:56 PM UTC-5, Dave S wrote: >>>> >>>> >>>> >>>> On Friday, October 6, 2017 at 3:56:24 PM UTC-7, Dave S wrote: >>>>> >>>>> >>>>> >>>>> On Friday, October 6, 2017 at 3:26:14 PM UTC-7, Omi Chiba wrote: >>>>>> >>>>>> Help! >>>>>> >>>>>> I was running old version (2015) of web2py on my hosting server as >>>>>> our company's portal site and it stopped working suddenly. It's Windows >>>>>> 2012 server with Uniserver(Apache). Apache start fine but shows error >>>>>> message. >>>>>> [...] >>>>>> >>>>> AttributeError: 'module' object has no attribute 'getLogger' >>>>>> >>>>> >>>>> >>>>> >>>>> The logging module is standard python for 2.7 and earlier ... what >>>>> version of python are you using, and has that changed recently? >>>>> >>>>> >>>> Or did your PYTHONPATH variable change. >>>> >>>> import logging >>>> dir(logging) >>>> >>>> >>>> >>>> shows getLogger in python 3.6.2, also. >>>> >>>> /dps >>>> >>>> >>>>> >>>> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.