LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 969|回复: 1

zope3.x不能很好的支持python2.5,导致 bittorrent5.2执行module import zope失败。

[复制链接]
发表于 2008-7-14 22:20:21 | 显示全部楼层 |阅读模式
twisted,pycrypto,psyco都没问题,bittorrent安装了,就是这个zope3(tgz包安装)调用失败,与系统自载的python2.5水火不容,下面的jeff shell兄弟说的倒是.


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jeff Shell wrote:
> On 9/28/06, Martijn Faassen <faassen at infrae.com> wrote:
>> Jim Fulton wrote:
>> > Baiju M wrote:
>> >> Hi,
>> >>   What is the target Python version for Zope 3.4, is it Python 2.5?
>> >
>> > That's a good question.  I fear it will take a fair bit of work to
>> > get to it and, frankly for me there are higher priorities.
>>
>> I think we'd be okay in not supporting Python 2.5 yet for this release.
>> Python 2.5 has just been released, and the 9 months or so will give it
>> time to gell out, Python extensions a bit of time to catch up with the
>> newer version, and for us to do some experimenting. Linux distributions
>> will likely still be supporting Python 2.4 (along with 2.5) at that
>> stage as well.
>
> Are you talking not-supporting Python 2.5 at all? Or just not wanting to
> require it?

The proposal is not to support it at all, unless somebody "takes one for
the team" and works out all the nasty breakage which 2.5 induces on Zope.

> If Zope 3 can't at least run on Python 2.5 within three months of
> Python 2.5's release, I don't think that looks good for us. I would
> hope that by being more "ythonic" and free from the old
> ExtensionClass magic - especially in Zope 3 - that Zope could keep
> better pace with Python. But nine months? A year? Can I expect the
> developers of toolkits we use, in some cases more heavily than Zope
> itself, like SQLAlchemy to hold off on requiring Python 2.5 for that
> long?

The change from 2.4 to 2.5 is *massively* disruptive for a framework
like Zope:  much more so than any change since 2.2, I think (maybe even
2.0/2.1).  The hardest bit is the change to the way the compiler works:
RestrictedPython is completely incompatible with the new AST-based
strategy.

>> So unless a volunteer steps up to do lots of hard work between now and
>> march next year, let's stick with Python 2.4. Otherwise let's plan it in
>> for Zope 3.5 and Zope 2.12
>
> I really really really hope it doesn't take that long to be able to
> at least run on Python 2.5: even if it has to be with some caveats or
> mild warnings.
>
> If security and restricted python / security proxies are the main
> issue, what about if one is running Zope sites with absolutely ZERO
> through the web code - no page templates, nothing - can't there be a
> lighter weight security implementation that wouldn't take half a year
> of "lots of hard work"?

Even if you have no templates defined TTW, Zope3's security machiner
still needs some support from RestrictedPython for handling
filesystem-based templates.


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFHJr3+gerLs4ltQ4RAnmFAKCuFkvWIAVn60mLP8AIik9LcttATgCcDrIL
KQjhDIoPaj9N9pL1JHGIZU4=
=D1Zt
-----END PGP SIGNATURE-----
 楼主| 发表于 2008-7-14 22:32:35 | 显示全部楼层
把系统自带的python2.5 换成2.45?????????
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表