This is what I get:

Python 2.7.13 |Anaconda 2.2.0 (x86_64)| (default, Dec 20 2016, 23:05:08) 

[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin

Type "help", "copyright", "credits" or "license" for more information.

Anaconda is brought to you by Continuum Analytics.

Please check out: http://continuum.io/thanks and https://anaconda.org

>>> import logging

>>> import platform

>>> logger = logging.getLogger("web2py")


python 2.7.4 is 4 years old. I suspect they installed a "logging" module 
that conflicts with the standard logging one. This is not a web2py issue.

On Friday, 6 October 2017 19:20:00 UTC-5, Omi Chiba wrote:
>
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to