Error Migration Data.fs from Zope 2.10.4 to 2.13.8
Hi all, I'm trying to update from Zope 2.10.4 to 2.13.8 and have problems to copy Data.fs. No matter whether I try to directly copy Data.fs or use repozo, both times zope gives me the error ValueError: Non-zero version length. Versions aren't supported. Searching the net, this seems to be a common problem. However, I couldn't find a solution for it. Is there a tool anywhere that can convert Data.fs from older to newer formats? Thanks, Frank
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Try the following script to stip off versions: http://svn.zope.org/ZODB/branches/3.8/src/ZODB/scripts/strip_versions.py?rev... - -aj Frank Kauff wrote:
Hi all,
I'm trying to update from Zope 2.10.4 to 2.13.8 and have problems to copy Data.fs. No matter whether I try to directly copy Data.fs or use repozo, both times zope gives me the error
ValueError: Non-zero version length. Versions aren't supported.
Searching the net, this seems to be a common problem. However, I couldn't find a solution for it. Is there a tool anywhere that can convert Data.fs from older to newer formats?
Thanks, Frank
_______________________________________________ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
- -- ZOPYX Limited | zopyx group Charlottenstr. 37/1 | The full-service network for Zope & Plone D-72070 Tübingen | Produce & Publish www.zopyx.com | www.produce-and-publish.com - ------------------------------------------------------------------------ E-Publishing, Python, Zope & Plone development, Consulting -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQGUBAEBAgAGBQJOjZjeAAoJEADcfz7u4AZjCvILwLgI+0BJRDDYsP5Ygo19Sp2g D8EJg3vLup617HNFp2x9+ISfTy1QrNYmj/J204IUtuInD1AK0LV9s+UzYvivsYcW AdH0ordLSFSkMgPrEpAxJGfREd4+Qpy9LrTrqQ3stucQSOhl9+TkTzo8P0h/XWya YRpISUb5TIpUU6BwEqw8VcIzMamjkBzI/DY402J9OLsN/WcFO4RA5wQB6Rab5pyC LtYlEiZny1kAMtLc5DNu+0kWZ8tfkWyj4AgCJEkEDeQTE9VVNBN27zmSpmyk4g2F q8yHYH/o7e5rKDbjQ+9klgqX+XaMeIdyBs9opmZRtiwgC20H8Nq/oPpAuq6UpcZS alzjYg63cQzXqTLARdzJe0DBUFlvAHPFnFTlPOLk25CxQoZT+QdVLqF8yOw6pJ2U egCD2wg1B97M9sE6+payKm2aYyrc8Da13kTiPKa6sBdoHmSYUKyCS+PKcrkCnCMb 4Yrhqpq8DRDY8zlINlR/Nd/O29bRqj0= =GYbG -----END PGP SIGNATURE-----
Unfortunately, it's not working: When starting within the 2.10.4 environment, I get the error Traceback (most recent call last): File "../strip_versions.py", line 116, in ? main() File "../strip_versions.py", line 108, in main ZODB.BaseStorage.copy(it, output_storage) AttributeError: 'module' object has no attribute 'copy' Starting it from within 2.13.8, I get the old error again: Traceback (most recent call last): File "../strip_versions.py", line 116, in <module> main() File "../strip_versions.py", line 108, in main ZODB.BaseStorage.copy(it, output_storage) File "/opt/zope/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/BaseStorage.py", line 394, in copy for r in transaction: File "../strip_versions.py", line 57, in __iter__ for record in self.__transaction: File "/opt/zope/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/FileStorage/FileStorage.py", line 1890, in next h = self._read_data_header(pos) File "/opt/zope/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/FileStorage/format.py", line 150, in _read_data_header h = DataHeaderFromString(s) File "/opt/zope/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/FileStorage/format.py", line 236, in DataHeaderFromString return DataHeader(*struct.unpack(DATA_HDR, s)) File "/opt/zope/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/FileStorage/format.py", line 246, in __init__ "Non-zero version length. Versions aren't supported.") ValueError: Non-zero version length. Versions aren't supported. Any help appreciated, Frank On 10/06/2011 02:02 PM, Andreas Jung wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Try the following script to stip off versions:
http://svn.zope.org/ZODB/branches/3.8/src/ZODB/scripts/strip_versions.py?rev...
- -aj
Frank Kauff wrote:
Hi all,
I'm trying to update from Zope 2.10.4 to 2.13.8 and have problems to copy Data.fs. No matter whether I try to directly copy Data.fs or use repozo, both times zope gives me the error
ValueError: Non-zero version length. Versions aren't supported.
Searching the net, this seems to be a common problem. However, I couldn't find a solution for it. Is there a tool anywhere that can convert Data.fs from older to newer formats?
Thanks, Frank
_______________________________________________ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
ZOPYX Limited | zopyx group Charlottenstr. 37/1 | The full-service network for Zope& Plone D-72070 Tübingen | Produce& Publish www.zopyx.com | www.produce-and-publish.com - ------------------------------------------------------------------------ E-Publishing, Python, Zope& Plone development, Consulting
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQGUBAEBAgAGBQJOjZjeAAoJEADcfz7u4AZjCvILwLgI+0BJRDDYsP5Ygo19Sp2g D8EJg3vLup617HNFp2x9+ISfTy1QrNYmj/J204IUtuInD1AK0LV9s+UzYvivsYcW AdH0ordLSFSkMgPrEpAxJGfREd4+Qpy9LrTrqQ3stucQSOhl9+TkTzo8P0h/XWya YRpISUb5TIpUU6BwEqw8VcIzMamjkBzI/DY402J9OLsN/WcFO4RA5wQB6Rab5pyC LtYlEiZny1kAMtLc5DNu+0kWZ8tfkWyj4AgCJEkEDeQTE9VVNBN27zmSpmyk4g2F q8yHYH/o7e5rKDbjQ+9klgqX+XaMeIdyBs9opmZRtiwgC20H8Nq/oPpAuq6UpcZS alzjYg63cQzXqTLARdzJe0DBUFlvAHPFnFTlPOLk25CxQoZT+QdVLqF8yOw6pJ2U egCD2wg1B97M9sE6+payKm2aYyrc8Da13kTiPKa6sBdoHmSYUKyCS+PKcrkCnCMb 4Yrhqpq8DRDY8zlINlR/Nd/O29bRqj0= =GYbG -----END PGP SIGNATURE-----
You probably need to run it using ZODB 3.8 (i.e. with your Zope 2.10 instance.) Laurence On 6 October 2011 13:31, Frank Kauff <fkauff@biologie.uni-kl.de> wrote:
Unfortunately, it's not working:
When starting within the 2.10.4 environment, I get the error
Traceback (most recent call last): File "../strip_versions.py", line 116, in ? main() File "../strip_versions.py", line 108, in main ZODB.BaseStorage.copy(it, output_storage) AttributeError: 'module' object has no attribute 'copy'
Starting it from within 2.13.8, I get the old error again:
Traceback (most recent call last): File "../strip_versions.py", line 116, in <module> main() File "../strip_versions.py", line 108, in main ZODB.BaseStorage.copy(it, output_storage) File "/opt/zope/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/BaseStorage.py", line 394, in copy for r in transaction: File "../strip_versions.py", line 57, in __iter__ for record in self.__transaction: File "/opt/zope/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/FileStorage/FileStorage.py", line 1890, in next h = self._read_data_header(pos) File "/opt/zope/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/FileStorage/format.py", line 150, in _read_data_header h = DataHeaderFromString(s) File "/opt/zope/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/FileStorage/format.py", line 236, in DataHeaderFromString return DataHeader(*struct.unpack(DATA_HDR, s)) File "/opt/zope/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/FileStorage/format.py", line 246, in __init__ "Non-zero version length. Versions aren't supported.") ValueError: Non-zero version length. Versions aren't supported.
Any help appreciated,
Frank
On 10/06/2011 02:02 PM, Andreas Jung wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Try the following script to stip off versions:
http://svn.zope.org/ZODB/branches/3.8/src/ZODB/scripts/strip_versions.py?rev...
- -aj
Frank Kauff wrote:
Hi all,
I'm trying to update from Zope 2.10.4 to 2.13.8 and have problems to copy Data.fs. No matter whether I try to directly copy Data.fs or use repozo, both times zope gives me the error
ValueError: Non-zero version length. Versions aren't supported.
Searching the net, this seems to be a common problem. However, I couldn't find a solution for it. Is there a tool anywhere that can convert Data.fs from older to newer formats?
Thanks, Frank
_______________________________________________ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
ZOPYX Limited | zopyx group Charlottenstr. 37/1 | The full-service network for Zope& Plone D-72070 Tübingen | Produce& Publish www.zopyx.com | www.produce-and-publish.com - ------------------------------------------------------------------------ E-Publishing, Python, Zope& Plone development, Consulting
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQGUBAEBAgAGBQJOjZjeAAoJEADcfz7u4AZjCvILwLgI+0BJRDDYsP5Ygo19Sp2g D8EJg3vLup617HNFp2x9+ISfTy1QrNYmj/J204IUtuInD1AK0LV9s+UzYvivsYcW AdH0ordLSFSkMgPrEpAxJGfREd4+Qpy9LrTrqQ3stucQSOhl9+TkTzo8P0h/XWya YRpISUb5TIpUU6BwEqw8VcIzMamjkBzI/DY402J9OLsN/WcFO4RA5wQB6Rab5pyC LtYlEiZny1kAMtLc5DNu+0kWZ8tfkWyj4AgCJEkEDeQTE9VVNBN27zmSpmyk4g2F q8yHYH/o7e5rKDbjQ+9klgqX+XaMeIdyBs9opmZRtiwgC20H8Nq/oPpAuq6UpcZS alzjYg63cQzXqTLARdzJe0DBUFlvAHPFnFTlPOLk25CxQoZT+QdVLqF8yOw6pJ2U egCD2wg1B97M9sE6+payKm2aYyrc8Da13kTiPKa6sBdoHmSYUKyCS+PKcrkCnCMb 4Yrhqpq8DRDY8zlINlR/Nd/O29bRqj0= =GYbG -----END PGP SIGNATURE-----
_______________________________________________ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
On 10/06/2011 03:21 PM, Laurence Rowe wrote:
You probably need to run it using ZODB 3.8 (i.e. with your Zope 2.10 instance.)
I think that's what did: /opt/Zope-2.10/bin/python ../strip_versions.py Data.fs Data.fs.stripped which gave the first error below Or should I run it differently? Frank
Laurence
On 6 October 2011 13:31, Frank Kauff<fkauff@biologie.uni-kl.de> wrote:
Unfortunately, it's not working:
When starting within the 2.10.4 environment, I get the error
Traceback (most recent call last): File "../strip_versions.py", line 116, in ? main() File "../strip_versions.py", line 108, in main ZODB.BaseStorage.copy(it, output_storage) AttributeError: 'module' object has no attribute 'copy'
Starting it from within 2.13.8, I get the old error again:
Traceback (most recent call last): File "../strip_versions.py", line 116, in<module> main() File "../strip_versions.py", line 108, in main ZODB.BaseStorage.copy(it, output_storage) File "/opt/zope/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/BaseStorage.py", line 394, in copy for r in transaction: File "../strip_versions.py", line 57, in __iter__ for record in self.__transaction: File "/opt/zope/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/FileStorage/FileStorage.py", line 1890, in next h = self._read_data_header(pos) File "/opt/zope/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/FileStorage/format.py", line 150, in _read_data_header h = DataHeaderFromString(s) File "/opt/zope/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/FileStorage/format.py", line 236, in DataHeaderFromString return DataHeader(*struct.unpack(DATA_HDR, s)) File "/opt/zope/lib/python2.6/site-packages/ZODB3-3.10.3-py2.6-linux-x86_64.egg/ZODB/FileStorage/format.py", line 246, in __init__ "Non-zero version length. Versions aren't supported.") ValueError: Non-zero version length. Versions aren't supported.
Any help appreciated,
Frank
On 10/06/2011 02:02 PM, Andreas Jung wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Try the following script to stip off versions:
http://svn.zope.org/ZODB/branches/3.8/src/ZODB/scripts/strip_versions.py?rev...
- -aj
Frank Kauff wrote:
Hi all,
I'm trying to update from Zope 2.10.4 to 2.13.8 and have problems to copy Data.fs. No matter whether I try to directly copy Data.fs or use repozo, both times zope gives me the error
ValueError: Non-zero version length. Versions aren't supported.
Searching the net, this seems to be a common problem. However, I couldn't find a solution for it. Is there a tool anywhere that can convert Data.fs from older to newer formats?
Thanks, Frank
_______________________________________________ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
ZOPYX Limited | zopyx group Charlottenstr. 37/1 | The full-service network for Zope& Plone D-72070 Tübingen | Produce& Publish www.zopyx.com | www.produce-and-publish.com - ------------------------------------------------------------------------ E-Publishing, Python, Zope& Plone development, Consulting
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQGUBAEBAgAGBQJOjZjeAAoJEADcfz7u4AZjCvILwLgI+0BJRDDYsP5Ygo19Sp2g D8EJg3vLup617HNFp2x9+ISfTy1QrNYmj/J204IUtuInD1AK0LV9s+UzYvivsYcW AdH0ordLSFSkMgPrEpAxJGfREd4+Qpy9LrTrqQ3stucQSOhl9+TkTzo8P0h/XWya YRpISUb5TIpUU6BwEqw8VcIzMamjkBzI/DY402J9OLsN/WcFO4RA5wQB6Rab5pyC LtYlEiZny1kAMtLc5DNu+0kWZ8tfkWyj4AgCJEkEDeQTE9VVNBN27zmSpmyk4g2F q8yHYH/o7e5rKDbjQ+9klgqX+XaMeIdyBs9opmZRtiwgC20H8Nq/oPpAuq6UpcZS alzjYg63cQzXqTLARdzJe0DBUFlvAHPFnFTlPOLk25CxQoZT+QdVLqF8yOw6pJ2U egCD2wg1B97M9sE6+payKm2aYyrc8Da13kTiPKa6sBdoHmSYUKyCS+PKcrkCnCMb 4Yrhqpq8DRDY8zlINlR/Nd/O29bRqj0= =GYbG -----END PGP SIGNATURE-----
Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
-- J-Prof. Dr. Frank Kauff Molecular Phylogenetics FB Biologie, 13/276 TU Kaiserslautern Postfach 3049 67653 Kaiserslautern Tel. +49 (0)631 205-2562 Fax. +49 (0)631 205-2998 email: fkauff@biologie.uni-kl.de skype: frank.kauff
On 6 October 2011 14:40, Frank Kauff <fkauff@biologie.uni-kl.de> wrote:
On 10/06/2011 03:21 PM, Laurence Rowe wrote:
You probably need to run it using ZODB 3.8 (i.e. with your Zope 2.10 instance.)
I think that's what did:
/opt/Zope-2.10/bin/python ../strip_versions.py Data.fs Data.fs.stripped
which gave the first error below
Or should I run it differently?
Zope 2.10 shipped with ZODB 3.7.x and only worked with Python 2.4. Your error message is showing a problem in ZODB 3.10.3 for python 2.6. I think you're running it in your Zope 2.13 buildout. The strip_versions.py script needs to run with a ZODB released before version support was removed. The script shipped with ZODB 3.8.x but I expect it will also work with 3.7.x. Laurence
Hi Laurence, Please note that there are two errrors: The error "versions not supported" comes from Zope 2.13, but the other error appears when running from 2.10, with ZODB 3.7: [fkauff@aftol2 var]$ /opt/Zope-2.10/bin/python Python 2.4.3 (#1, Sep 21 2011, 19:55:41) [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import ZODB ZODB.__version__ '3.7.1'
[fkauff@aftol2 var]$ /opt/Zope-2.10/bin/python ../strip_versions.py Data.fs Data.fs.stripped No handlers could be found for logger "ZODB.FileStorage" Traceback (most recent call last): File "../strip_versions.py", line 115, in ? main() File "../strip_versions.py", line 107, in main ZODB.BaseStorage.copy(it, output_storage) AttributeError: 'module' object has no attribute 'copy' I installed Zope 2.11 from old.zope.org, but it still comes with ZODB 3.7 [fkauff@aftol2 ~]$ /opt/Zope-2.11/bin/python Python 2.4.6 (#1, Oct 6 2011, 09:13:36) [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import ZODB ZODB.__version__ '3.7.0b3' ZODB.__path__ ['/opt/Zope-2.11/lib/python/ZODB']
So the main question seems to be - which Zope version is old enough to be able to read my Data.fs but recent enough to run the conversion script? Can i get a 2.11 version with ZODB 3.8 from somewhere? Thanks, Frank On 10/06/2011 05:54 PM, Laurence Rowe wrote:
On 6 October 2011 14:40, Frank Kauff<fkauff@biologie.uni-kl.de> wrote:
On 10/06/2011 03:21 PM, Laurence Rowe wrote:
You probably need to run it using ZODB 3.8 (i.e. with your Zope 2.10 instance.) I think that's what did:
/opt/Zope-2.10/bin/python ../strip_versions.py Data.fs Data.fs.stripped
which gave the first error below
Or should I run it differently? Zope 2.10 shipped with ZODB 3.7.x and only worked with Python 2.4. Your error message is showing a problem in ZODB 3.10.3 for python 2.6. I think you're running it in your Zope 2.13 buildout.
The strip_versions.py script needs to run with a ZODB released before version support was removed. The script shipped with ZODB 3.8.x but I expect it will also work with 3.7.x.
Laurence
-- J-Prof. Dr. Frank Kauff Molecular Phylogenetics FB Biologie, 13/276 TU Kaiserslautern Postfach 3049 67653 Kaiserslautern Tel. +49 (0)631 205-2562 Fax. +49 (0)631 205-2998 email:fkauff@biologie.uni-kl.de skype: frank.kauff
Perhaps you can just create a simple buildout.cfg for the version of ZODB you need: [buildout] parts = scripts versions = versions [versions] ZODB3 = 3.8.6 [scripts] recipe = zc.recipe.egg eggs = ZODB3 interpreter = py Grab bootstrap.py from http://svn.zope.org/*checkout*/zc.buildout/trunk/bootstrap/bootstrap.py then run python bootstrap.py followed by bin/buildout. That should give you bin/strip_versions which you can run. Laurence On 6 October 2011 19:22, Frank Kauff <fkauff@biologie.uni-kl.de> wrote:
Hi Laurence,
Please note that there are two errrors: The error "versions not supported" comes from Zope 2.13, but the other error appears when running from 2.10, with ZODB 3.7:
[fkauff@aftol2 var]$ /opt/Zope-2.10/bin/python Python 2.4.3 (#1, Sep 21 2011, 19:55:41) [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import ZODB ZODB.__version__ '3.7.1'
[fkauff@aftol2 var]$ /opt/Zope-2.10/bin/python ../strip_versions.py Data.fs Data.fs.stripped No handlers could be found for logger "ZODB.FileStorage" Traceback (most recent call last): File "../strip_versions.py", line 115, in ? main() File "../strip_versions.py", line 107, in main ZODB.BaseStorage.copy(it, output_storage) AttributeError: 'module' object has no attribute 'copy'
I installed Zope 2.11 from old.zope.org, but it still comes with ZODB 3.7
[fkauff@aftol2 ~]$ /opt/Zope-2.11/bin/python Python 2.4.6 (#1, Oct 6 2011, 09:13:36) [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import ZODB ZODB.__version__ '3.7.0b3' ZODB.__path__ ['/opt/Zope-2.11/lib/python/ZODB']
So the main question seems to be - which Zope version is old enough to be able to read my Data.fs but recent enough to run the conversion script? Can i get a 2.11 version with ZODB 3.8 from somewhere?
Thanks, Frank
On 10/06/2011 05:54 PM, Laurence Rowe wrote:
On 6 October 2011 14:40, Frank Kauff<fkauff@biologie.uni-kl.de> wrote:
On 10/06/2011 03:21 PM, Laurence Rowe wrote:
You probably need to run it using ZODB 3.8 (i.e. with your Zope 2.10 instance.)
I think that's what did:
/opt/Zope-2.10/bin/python ../strip_versions.py Data.fs Data.fs.stripped
which gave the first error below
Or should I run it differently?
Zope 2.10 shipped with ZODB 3.7.x and only worked with Python 2.4. Your error message is showing a problem in ZODB 3.10.3 for python 2.6. I think you're running it in your Zope 2.13 buildout.
The strip_versions.py script needs to run with a ZODB released before version support was removed. The script shipped with ZODB 3.8.x but I expect it will also work with 3.7.x.
Laurence
-- J-Prof. Dr. Frank Kauff Molecular Phylogenetics FB Biologie, 13/276 TU Kaiserslautern Postfach 3049 67653 Kaiserslautern
Tel. +49 (0)631 205-2562 Fax. +49 (0)631 205-2998 email:fkauff@biologie.uni-kl.de skype: frank.kauff
We are one (BIG) step further :-) Following your suggestion (thanks!), I was able to run strip_versions. Zope 2.13 sucessfully started with the converted Data.fs, but now I get a different error (below) when trying to access most subfolders of the site. It seems there are more syntax changes that need to be converted? Are there other scripts to do this? Thanks for all your help, Frank Zope Error Zope has encountered an error while publishing this resource. *Error Type: TypeError* *Error Value: ('object.__new__(Args) is not safe, use Persistence.Persistent.__new__()', , ())* Traceback (innermost last): * Module ZPublisher.Publish, line 126, in publish * Module ZPublisher.mapply, line 77, in mapply * Module ZPublisher.Publish, line 46, in call_object * Module Shared.DC.Scripts.Bindings, line 322, in __call__ * Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec * Module App.special_dtml, line 185, in _exec * Module DocumentTemplate.DT_Let, line 77, in render * Module DocumentTemplate.DT_In, line 647, in renderwob * Module DocumentTemplate.DT_In, line 772, in sort_sequence * Module ZODB.Connection, line 860, in setstate * Module ZODB.Connection, line 914, in _setstate * Module ZODB.serialize, line 612, in setGhostState * Module ZODB.serialize, line 605, in getState * Module ZODB.broken, line 106, in __new__ TypeError: ('object.__new__(Args) is not safe, use Persistence.Persistent.__new__()', <class 'Shared.DC.ZRDB.Aqueduct.Args'>, ()) On 10/06/2011 09:15 PM, Laurence Rowe wrote:
Perhaps you can just create a simple buildout.cfg for the version of ZODB you need:
[buildout] parts = scripts versions = versions
[versions] ZODB3 = 3.8.6
[scripts] recipe = zc.recipe.egg eggs = ZODB3 interpreter = py
Grab bootstrap.py from http://svn.zope.org/*checkout*/zc.buildout/trunk/bootstrap/bootstrap.py then run python bootstrap.py followed by bin/buildout. That should give you bin/strip_versions which you can run.
Laurence
On 6 October 2011 19:22, Frank Kauff<fkauff@biologie.uni-kl.de> wrote:
Hi Laurence,
Please note that there are two errrors: The error "versions not supported" comes from Zope 2.13, but the other error appears when running from 2.10, with ZODB 3.7:
[fkauff@aftol2 var]$ /opt/Zope-2.10/bin/python Python 2.4.3 (#1, Sep 21 2011, 19:55:41) [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import ZODB ZODB.__version__ '3.7.1' [fkauff@aftol2 var]$ /opt/Zope-2.10/bin/python ../strip_versions.py Data.fs Data.fs.stripped No handlers could be found for logger "ZODB.FileStorage" Traceback (most recent call last): File "../strip_versions.py", line 115, in ? main() File "../strip_versions.py", line 107, in main ZODB.BaseStorage.copy(it, output_storage) AttributeError: 'module' object has no attribute 'copy'
I installed Zope 2.11 from old.zope.org, but it still comes with ZODB 3.7
[fkauff@aftol2 ~]$ /opt/Zope-2.11/bin/python Python 2.4.6 (#1, Oct 6 2011, 09:13:36) [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import ZODB ZODB.__version__ '3.7.0b3' ZODB.__path__ ['/opt/Zope-2.11/lib/python/ZODB']
So the main question seems to be - which Zope version is old enough to be able to read my Data.fs but recent enough to run the conversion script? Can i get a 2.11 version with ZODB 3.8 from somewhere?
Thanks, Frank
On 10/06/2011 05:54 PM, Laurence Rowe wrote:
On 6 October 2011 14:40, Frank Kauff<fkauff@biologie.uni-kl.de> wrote:
On 10/06/2011 03:21 PM, Laurence Rowe wrote:
You probably need to run it using ZODB 3.8 (i.e. with your Zope 2.10 instance.) I think that's what did:
/opt/Zope-2.10/bin/python ../strip_versions.py Data.fs Data.fs.stripped
which gave the first error below
Or should I run it differently? Zope 2.10 shipped with ZODB 3.7.x and only worked with Python 2.4. Your error message is showing a problem in ZODB 3.10.3 for python 2.6. I think you're running it in your Zope 2.13 buildout.
The strip_versions.py script needs to run with a ZODB released before version support was removed. The script shipped with ZODB 3.8.x but I expect it will also work with 3.7.x.
Laurence
participants (3)
-
Andreas Jung -
Frank Kauff -
Laurence Rowe