I ran into this. You need to be using at least python 2.7

On Wednesday, February 5, 2014 1:34:11 PM UTC-5, MHCPU wrote:
>
> I'm using TG 2.3.1 with Python 2.6.6.  If I give the --debug argument to 
> gearbox it complains because the logging module didn't acquire the function 
> captureWarnings until Python 2.7.
>
> gearbox serve --reload -c development.ini --debug
> Traceback (most recent call last):
>   File "/home/mcahn/proteomics/bin/gearbox", line 9, in <module>
>     load_entry_point('gearbox==0.0.4', 'console_scripts', 'gearbox')()
>   File 
> "/home/mcahn/proteomics/lib/python2.6/site-packages/gearbox/main.py", line 
> 76, in main
>     return gearbox.run(args)
>   File "/home/mcahn/proteomics/lib/python2.6/site-packages/cliff/app.py", 
> line 199, in run
>     self.configure_logging()
>   File 
> "/home/mcahn/proteomics/lib/python2.6/site-packages/gearbox/main.py", line 
> 26, in configure_logging
>     logging.captureWarnings(True)
> AttributeError: 'module' object has no attribute 'captureWarnings'
>
> Commenting out this line in lib/python2.6/site-packages/gearbox/main.py:
>
>             ## logging.captureWarnings(True)
>
> allows gearbox to run and print the error I was looking for.
>
> Perhaps that line needs a try/except around it.
>
> Matthew
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to