How to upgrade Python in older Zope?
Folks, I desperately need support for large filesystem so the data.fs file can exceed 2 GB. I can only make minimal changes to the existing set-up, which consists of Zope 2.5.1 (binary release, with Python 2.1.3) on Windows Server 2003 and NTFS. From what I've read, the issue is with the old Python not having LFS enabled, so I thought I'd just upgrade it to 2.2.3 which has LFS enabled. The question is, how do I do that? Windows installer for Python doesn't know what to upgrade in the Zope install, so I'm thinking to copy the right files from the extracted Python 2.2.3 in Zope folders. What goes where? I appreciate your patience and spoonfeeding. :-) Thanks in advance! Titel
On Tue, Sep 11, 2007 at 07:36:18AM -0700, Tit-Liviu Leontin wrote:
Folks,
I desperately need support for large filesystem so the data.fs file can exceed 2 GB.
I can only make minimal changes to the existing set-up, which consists of Zope 2.5.1 (binary release, with Python 2.1.3) on Windows Server 2003 and NTFS.
From what I've read, the issue is with the old Python not having LFS enabled, so I thought I'd just upgrade it to 2.2.3 which has LFS enabled.
The question is, how do I do that? Windows installer for Python doesn't know what to upgrade in the Zope install, so I'm thinking to copy the right files from the extracted Python 2.2.3 in Zope folders.
That sounds like a really bad idea. From the Zope 2.5.1 release notes: * Zope requires Python 2.1 (Python 2.2 is currently *not* supported) You should NOT assume that warning was put there for no reason :-) Also, there's not a whole lot of expertise in this community on building for Windows; we seem to be a linux/unix-heavy crowd. You'd better stick to the binary releases and not mess with them, unless you can find a bona-fide expert to help you. Anyone? :-) Meanwhile you might try migrating a *copy* of your Data.fs to Zope first to Zope 2.6.4 (still uses Python 2.1.x) and then to Zope 2.7.7 (uses Python 2.3.x). FWIW I recall 2.5 to 2.6 being a painless upgrade. I think 2.7 was a little more involved. The most likely problem to watch out for is security-related issues: your code might accidentally rely on a security weakness that was subsequently tightened, so you get permission denied at unexpected times until your code and/or configuration is fixed. Install and turn on VerboseSecurity, it's a big help with things like that. -- Paul Winkler http://www.slinkp.com
I desperately need support for large filesystem so the data.fs file can exceed 2 GB. Have you tried to simply pack ZODB? I'm not sure how it goes in Zope 2.5 but in more recent releases, under Control Panel/Database Management there is a Pack button. Pack should remove historical entries from ZODB and make it smaller.
Of course create a backup before ;) -- Maciej Wisniowski
Hi, You could try to install an oficial python 2.1.x release from python.org, then change the python's path in the runzope.bat script. I work mostly with zope under linux, so, I haven't tested this, but perhaps it works. Another problem you may face is that perhaps the official python binary may also don't have large file support. On that case, you will have either to search if somebody provides one with LFS, build your own python (and zope probaby) from sources, or as somebody said, use a newer zope binary release, which will require you to upgrate your Data.fs. Best regards Josef Tit-Liviu Leontin schrieb:
Folks,
I desperately need support for large filesystem so the data.fs file can exceed 2 GB.
I can only make minimal changes to the existing set-up, which consists of Zope 2.5.1 (binary release, with Python 2.1.3) on Windows Server 2003 and NTFS.
From what I've read, the issue is with the old Python not having LFS enabled, so I thought I'd just upgrade it to 2.2.3 which has LFS enabled.
The question is, how do I do that? Windows installer for Python doesn't know what to upgrade in the Zope install, so I'm thinking to copy the right files from the extracted Python 2.2.3 in Zope folders.
What goes where? I appreciate your patience and spoonfeeding. :-)
Thanks in advance! Titel
_______________________________________________ Zope maillist - Zope-CWUwpEBWKX0@public.gmane.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Josef Meile -
Maciej Wisniowski -
Paul Winkler -
Tit-Liviu Leontin