Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Dev

issues with building zope2.11.3

 

 

Zope dev RSS feed   Index | Next | Previous | View Threaded


jonas at freesources

Jul 2, 2009, 9:32 AM

Post #1 of 6 (483 views)
Permalink
issues with building zope2.11.3

Hello,

at preparing zope2.11.3 for debian, i came across several byte-compiling
errors.

three of them are due to the new tests for python2.5 and python2.6, and
are just failing because python2.4 is the python version debian uses for
zope2.11.

but the last one seems to be a real bug:

Compiling /usr/lib/zope2.11/lib/python/mechanize/_firefox3cookiejar.py ...
File "/usr/lib/zope2.11/lib/python/mechanize/_firefox3cookiejar.py", line 91
yield row
SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause

I also found this error in list archive logs of zope-tests[at]epy.co.at.

from 'pydoc2.4 yield':

The yield statement is not allowed in the try clause of a try ...
finally construct. The difficulty is that there's no guarantee the
generator will ever be resumed, hence no guarantee that the finally
block will ever get executed.

is this a known bug, and does a fix exist?

greetings,
jonas
_______________________________________________
Zope-Dev maillist - Zope-Dev[at]zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


lists at zopyx

Jul 2, 2009, 9:39 AM

Post #2 of 6 (449 views)
Permalink
Re: issues with building zope2.11.3 [In reply to]

On 02.07.09 18:32, Jonas Meurer wrote:
> Hello,
>
> at preparing zope2.11.3 for debian, i came across several byte-compiling
> errors.
>
> three of them are due to the new tests for python2.5 and python2.6, and
> are just failing because python2.4 is the python version debian uses for
> zope2.11.
>
> but the last one seems to be a real bug:
>
> Compiling /usr/lib/zope2.11/lib/python/mechanize/_firefox3cookiejar.py ...
> File "/usr/lib/zope2.11/lib/python/mechanize/_firefox3cookiejar.py", line 91
> yield row
> SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
>
> I also found this error in list archive logs of zope-tests[at]epy.co.at.
>
> from 'pydoc2.4 yield':
>
> The yield statement is not allowed in the try clause of a try ...
> finally construct. The difficulty is that there's no guarantee the
> generator will ever be resumed, hence no guarantee that the finally
> block will ever get executed.
>
> is this a known bug,
no - please file a bug report


> and does a fix exist?
Unlikely - and I don't think that this issue is of relevance.

Andreas
Attachments: lists.vcf (0.31 KB)


jonas at freesources

Jul 2, 2009, 10:23 AM

Post #3 of 6 (445 views)
Permalink
Re: issues with building zope2.11.3 [In reply to]

Hello again,

first, thanks for the fast response.

On 02/07/2009 Andreas Jung wrote:
> > Compiling /usr/lib/zope2.11/lib/python/mechanize/_firefox3cookiejar.py ...
> > File "/usr/lib/zope2.11/lib/python/mechanize/_firefox3cookiejar.py", line 91
> > yield row
> > SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
> >
> > I also found this error in list archive logs of zope-tests[at]epy.co.at.
> >
> > from 'pydoc2.4 yield':
> >
> > The yield statement is not allowed in the try clause of a try ...
> > finally construct. The difficulty is that there's no guarantee the
> > generator will ever be resumed, hence no guarantee that the finally
> > block will ever get executed.
> >
> > is this a known bug,
> no - please file a bug report

done: https://bugs.launchpad.net/zope2/+bug/394809

> > and does a fix exist?
> Unlikely - and I don't think that this issue is of relevance.

I believe that this bug persists in zope2.12+, so it should be fixed in
my eyes.

greetings,
jonas
Attachments: signature.asc (0.19 KB)


lists at zopyx

Jul 2, 2009, 10:37 AM

Post #4 of 6 (449 views)
Permalink
Re: issues with building zope2.11.3 [In reply to]

On 02.07.09 19:23, Jonas Meurer wrote:
> Hello again,
>
> first, thanks for the fast response.
>
> On 02/07/2009 Andreas Jung wrote:
>
>>> Compiling /usr/lib/zope2.11/lib/python/mechanize/_firefox3cookiejar.py ...
>>> File "/usr/lib/zope2.11/lib/python/mechanize/_firefox3cookiejar.py", line 91
>>> yield row
>>> SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
>>>
>>> I also found this error in list archive logs of zope-tests[at]epy.co.at.
>>>
>>> from 'pydoc2.4 yield':
>>>
>>> The yield statement is not allowed in the try clause of a try ...
>>> finally construct. The difficulty is that there's no guarantee the
>>> generator will ever be resumed, hence no guarantee that the finally
>>> block will ever get executed.
>>>
>>> is this a known bug,
>>>
>> no - please file a bug report
>>
> done: https://bugs.launchpad.net/zope2/+bug/394809
>
>
Thanks!
>>> and does a fix exist?
>>>
>> Unlikely - and I don't think that this issue is of relevance.
>>
> I believe that this bug persists in zope2.12+, so it should be fixed in
> my eyes.

mechanize is basically a third-party module shipped with Zope. Since
Zope 2.12
requires Python 2.5 or 2.6 there is a chance will be resolved
automatically :)

Andreas
this issue
Attachments: lists.vcf (0.31 KB)


jonas at freesources

Jul 2, 2009, 10:41 AM

Post #5 of 6 (445 views)
Permalink
Re: issues with building zope2.11.3 [In reply to]

On 02/07/2009 Andreas Jung wrote:
> > On 02/07/2009 Andreas Jung wrote:
> >>> Compiling /usr/lib/zope2.11/lib/python/mechanize/_firefox3cookiejar.py ...
> >>> File "/usr/lib/zope2.11/lib/python/mechanize/_firefox3cookiejar.py", line 91
> >>> yield row
> >>> SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
> >>>
> >>> I also found this error in list archive logs of zope-tests[at]epy.co.at.
> >>>
> >>> from 'pydoc2.4 yield':
> >>>
> >>> The yield statement is not allowed in the try clause of a try ...
> >>> finally construct. The difficulty is that there's no guarantee the
> >>> generator will ever be resumed, hence no guarantee that the finally
> >>> block will ever get executed.
> >>>
> >>> and does a fix exist?
> >>>
> >> Unlikely - and I don't think that this issue is of relevance.
> >>
> > I believe that this bug persists in zope2.12+, so it should be fixed in
> > my eyes.
>
> mechanize is basically a third-party module shipped with Zope. Since
> Zope 2.12 requires Python 2.5 or 2.6 there is a chance will be resolved
> automatically :)

yea, sounds reasonable. still, that means that zope2.11 uses features of
python2.5+ while it still recommends and supports only python2.4.

does this mean, that zope2.11 works and is tested with python2.5?

greetings,
jonas
_______________________________________________
Zope-Dev maillist - Zope-Dev[at]zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


lists at zopyx

Jul 2, 2009, 10:47 AM

Post #6 of 6 (446 views)
Permalink
Re: issues with building zope2.11.3 [In reply to]

On 02.07.09 19:41, Jonas Meurer wrote:
> On 02/07/2009 Andreas Jung wrote:
>
>>> On 02/07/2009 Andreas Jung wrote:
>>>
>>>>> Compiling /usr/lib/zope2.11/lib/python/mechanize/_firefox3cookiejar.py ...
>>>>> File "/usr/lib/zope2.11/lib/python/mechanize/_firefox3cookiejar.py", line 91
>>>>> yield row
>>>>> SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
>>>>>
>>>>> I also found this error in list archive logs of zope-tests[at]epy.co.at.
>>>>>
>>>>> from 'pydoc2.4 yield':
>>>>>
>>>>> The yield statement is not allowed in the try clause of a try ...
>>>>> finally construct. The difficulty is that there's no guarantee the
>>>>> generator will ever be resumed, hence no guarantee that the finally
>>>>> block will ever get executed.
>>>>>
>>>>> and does a fix exist?
>>>>>
>>>>>
>>>> Unlikely - and I don't think that this issue is of relevance.
>>>>
>>>>
>>> I believe that this bug persists in zope2.12+, so it should be fixed in
>>> my eyes.
>>>
>> mechanize is basically a third-party module shipped with Zope. Since
>> Zope 2.12 requires Python 2.5 or 2.6 there is a chance will be resolved
>> automatically :)
>>
> yea, sounds reasonable. still, that means that zope2.11 uses features of
> python2.5+ while it still recommends and supports only python2.4.
>
mechanize is only used tests (using Five.testbrowser and zope.testbrowser).
So the functionality of Zope does not depend on mechanize and especially
not of this one Python file..I doubt that this file is ever used...so
possibly
pretty dead code from the Zope point of view - that's why I don't care much
this issue.
> does this mean, that zope2.11 works and is tested with python2.5?
No. Python 2.4 is required.

Andreas
Attachments: lists.vcf (0.31 KB)

Zope dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.