[Pywps-dev] AttributeError: 'Logger' object has no attribute 'INFO'

Tom Kralidis tomkralidis at gmail.com
Wed Feb 10 16:57:24 PST 2016


Hi Pablo: I'm guessing you installed 3.2.3?

This bug was introduced (by me, apologies) in 3.2.3 and has been
since fixed.

I've cut a 3.2.4 release[1].  We'll issue a PyPI release shortly.

Thanks for reporting.

..Tom

[1] https://github.com/geopython/pywps/releases/tag/pywps-3.2.4

On Wed, 10 Feb 2016, pablo zader wrote:

> Date: Wed, 10 Feb 2016 21:37:27 -0300
> From: pablo zader <pzader at gmail.com>
> To: pywps-dev at lists.osgeo.org
> Subject: [Pywps-dev] AttributeError: 'Logger' object has no attribute 'INFO'
> 
> *Hi list*
>
>
> *I Install pywps 3.2.2, but I have the following problem:*
>
> pablo at pablo-Satellite-L845:~$ wps.py "service=wps&request=getcapabilities"
> Traceback (most recent call last):
>  File "/usr/local/bin/wps.py", line 5, in <module>
>    pkg_resources.run_script('pywps==3.2.3', 'wps.py')
>  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 528, in
> run_script
>    self.require(requires)[0].run_script(script_name, ns)
>  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1394, in
> run_script
>    execfile(script_filename, namespace, namespace)
>  File
> "/usr/local/lib/python2.7/dist-packages/pywps-3.2.3-py2.7.egg/EGG-INFO/scripts/wps.py",
> line 86, in <module>
>    wps = pywps.Pywps(method)
>  File
> "/usr/local/lib/python2.7/dist-packages/pywps-3.2.3-py2.7.egg/pywps/__init__.py",
> line 183, in __init__
>    self.setLogFile()
>  File
> "/usr/local/lib/python2.7/dist-packages/pywps-3.2.3-py2.7.egg/pywps/__init__.py",
> line 256, in setLogFile
>    logLevel =
> eval("LOGGER."+config.getConfigValue("server","logLevel").upper())
>  File "<string>", line 1, in <module>
> AttributeError: 'Logger' object has no attribute 'INFO'
>
>
> *Try to look inside the object and the attributes INFO, ERROR, etc exists:*
>
> pablo at pablo-Satellite-L845:~$ python
> Python 2.7.6 (default, Jun 22 2015, 17:58:13)
> [GCC 4.8.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import logging
>>>> LOGGER = logging.getLogger(__name__)
>>>> dir(LOGGER)
> ['__class__', '__delattr__', '__dict__', '__doc__', '__format__',
> '__getattribute__', '__hash__', '__init__', '__module__', '__new__',
> '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__',
> '__str__', '__subclasshook__', '__weakref__', '_log', 'addFilter',
> 'addHandler', 'callHandlers', 'critical', 'debug', 'disabled', 'error',
> 'exception', 'fatal', 'filter', 'filters', 'findCaller', 'getChild',
> 'getEffectiveLevel', 'handle', 'handlers', 'info', 'isEnabledFor', 'level',
> 'log', 'makeRecord', 'manager', 'name', 'parent', 'propagate',
> 'removeFilter', 'removeHandler', 'root', 'setLevel', 'warn', 'warning']
>
> Thanks ins advanced
> Pablo
>
>
> -- 
> *Pablo J. Zader*
> *Lic. en Cs. de la Computación*
> *pablo.zader at gmail.com <pablo.zader at gmail.com>*
>
>
>
>
>
> *"Los Grandes Hombres hablan sobre ideas... Los Hombres Promedio hablan
> sobre cosas... Los Hombres Pequeños hablan.. de otros Hombres.*
> *del libro Matemática estas ahi? A. Paenza "*
>


More information about the pywps-dev mailing list