python - Logging module ValueError: Unable to configure handler 'console' -



python - Logging module ValueError: Unable to configure handler 'console' -

i trying figure out how web scraping/crawling python, downloaded crawler found on github see how worked, it's called pycrawler , code here. when seek execute it, folowing error:

traceback (most recent phone call last): file "<stdin>", line 1, in <module> file "pycrawler.py", line 18, in <module> logging.config.dictconfig(logging) file "c:\python27\lib\logging\config.py", line 803, in dictconfig dictconfigclass(config).configure() file "c:\python27\lib\logging\config.py", line 585, in configure '%r: %s' % (name, e)) valueerror: unable configure handler 'console': must string, not none

there's no none value in console dictionary, suppose gives error because reason can't read properly, can't figure out why.

do have colorstreamhandler.py in folder (or available on python's path)? notice 'console' instantiated colorstreamhandler.

'console': { 'class': 'colorstreamhandler.colorstreamhandler', ... } ...

add colorstreamhandler folder , should work.

python logging web-crawler

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -