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

pablo zader pzader at gmail.com
Wed Feb 10 16:37:27 PST 2016


*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 "*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pywps-dev/attachments/20160210/112101fc/attachment.html>


More information about the pywps-dev mailing list