Thanks Alessandro, that's great.

Matthew


On Wed, Feb 5, 2014 at 4:53 PM, Alessandro Molina <
[email protected]> wrote:

> TG 2.3 currently supports Python 2.6, 2.7, 3.2 and 3.3 so thanks for
> reporting this, seems it was an issue related to 0.0.4 gearbox release
> which introduced deprecation warnings reporting.
> I pushed out gearbox 0.0.5 which works around the issue on Python2.6
>
>
> On Wed, Feb 5, 2014 at 8:12 PM, Matthew Cahn <[email protected]>wrote:
>
>> I took a quick look at the documentation on turbogears.org and the only
>> reference I see to which versions of Python are supported by TG 2.3.1 is in
>> the Wiki tutorial, where it says Python 2.6 and 2.7 are supported.  I think
>> it should either work, or the documentation should be changed, and gearbox
>> should print a more useful message (such as Python 2.7 is required).
>>
>> Python 2.6.6 comes with a very recent version of Redhat Enterprise Linux
>> (6.5) so I think it's reasonable to support it.  It's not a big deal and
>> I'm just offering a bug report here.
>>
>> Matthew
>>
>>
>>
>> On Wed, Feb 5, 2014 at 1:37 PM, pkraus <[email protected]> wrote:
>>
>>> 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.
>>>
>>
>>  --
>> 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.
>>
>
>  --
> 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.
>

-- 
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