RE: [Zope] Zope 2.8.4+Latest cygwin installation
Ok, in case anyone is interested, this nasty code change made it : In Zope-2.8.4-final/lib/python/ZODB/serialize.py: Change : return klass.__new__(klass, *args) To : try: result=klass.__new__(klass, *args) except TypeError: result=Persistent.__new__(klass, *args) return result Pascal -----Message d'origine----- De : zope-bounces@zope.org [mailto:zope-bounces@zope.org] De la part de Pascal Peregrina Envoyé : jeudi 15 décembre 2005 12:51 À : zope@zope.org Objet : RE: [Zope] Zope 2.8.4+Latest cygwin installation Ok, just found it has already been reported several months ago, even with python 2.3.x: http://www.zope.org/Collectors/Zope/1725 Does someone know of any kind of temporary workaround for this ? Thanks ! Pascal -----Message d'origine----- De : zope-bounces@zope.org [mailto:zope-bounces@zope.org] De la part de Pascal Peregrina Envoyé : jeudi 15 décembre 2005 12:25 À : zope@zope.org Objet : [Zope] Zope 2.8.4+Latest cygwin installation Hi, I would like to know if anyone has been able to compile and run Zope 2.8.4 with Cygwin. I just installed cygwin with latest stable packages. I compiled python 2.4.2 (I know, not the supported version, so I am about to try 2.3.5 now) I had issues with the socket module, and from google I applied a workaround that worked fine : in Modules/socketmodule.c Change : #if defined(__sgi) && !defined(INET_ADDRSTRLEN) #define INET_ADDRSTRLEN 16 #endif To : /*#if defined(__sgi) && !defined(INET_ADDRSTRLEN)*/ #define INET_ADDRSTRLEN 16 /*#endif*/ I made several python tests and all looks fine. Then I compiled Zope 2.8.4 without any issue. But when I run it, I get this error: Site Error An error was encountered while publishing this resource. exceptions.TypeError Sorry, a site error occurred. Traceback (innermost last): Module ZPublisher.Publish, line 187, in publish_module_standard Module Products.Localizer, line 58, in new_publish Module ZPublisher.Publish, line 144, in publish Module Zope2.App.startup, line 174, in zpublisher_exception_hook Module App.ZApplication, line 60, in __bobo_traverse__ Module UserDict, line 17, in __getitem__ Module ZODB.Connection, line 704, in setstate Module ZODB.Connection, line 760, in _setstate Module ZODB.serialize, line 495, in setGhostState Module ZODB.serialize, line 488, in getState Module ZODB.serialize, line 436, in _persistent_load Module ZODB.Connection, line 208, in get Module ZODB.serialize, line 482, in getGhost TypeError: Acquirer.__new__(Application) is not safe, use Persistence.Persistent.__new__() Does anyone know what I can do ? Thanks a lot. Pascal ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** _______________________________________________ Zope maillist - Zope@zope.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 ) _______________________________________________ Zope maillist - Zope@zope.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 )
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Pascal Peregrina wrote:
Ok, in case anyone is interested, this nasty code change made it :
In Zope-2.8.4-final/lib/python/ZODB/serialize.py:
Change : return klass.__new__(klass, *args)
To : try: result=klass.__new__(klass, *args) except TypeError: result=Persistent.__new__(klass, *args)
return result
I think Jim is the only one who could explain what you see. I can't even find the place in the code which generates that error: $ find . -name "*.py" -o -name "*.c" | xargs grep "is not safe" ./RestrictedPython/RCompile.py: The UNPACK_SEQUENCE opcode is not safe because it extracts ./zope/security/untrustedpython/builtins.py: # It's better to say what is safe than it say what is not safe ./ZODB/tests/testmvcc.py:It is not safe, however, to read the current revision of "a" because $
Pascal
-----Message d'origine----- De : zope-bounces@zope.org [mailto:zope-bounces@zope.org] De la part de Pascal Peregrina Envoyé : jeudi 15 décembre 2005 12:51 À : zope@zope.org Objet : RE: [Zope] Zope 2.8.4+Latest cygwin installation
Ok, just found it has already been reported several months ago, even with python 2.3.x: http://www.zope.org/Collectors/Zope/1725
Does someone know of any kind of temporary workaround for this ?
Thanks !
Pascal
-----Message d'origine----- De : zope-bounces@zope.org [mailto:zope-bounces@zope.org] De la part de Pascal Peregrina Envoyé : jeudi 15 décembre 2005 12:25 À : zope@zope.org Objet : [Zope] Zope 2.8.4+Latest cygwin installation
Hi,
I would like to know if anyone has been able to compile and run Zope 2.8.4 with Cygwin.
I just installed cygwin with latest stable packages.
I compiled python 2.4.2 (I know, not the supported version, so I am about to try 2.3.5 now) I had issues with the socket module, and from google I applied a workaround that worked fine : in Modules/socketmodule.c Change : #if defined(__sgi) && !defined(INET_ADDRSTRLEN) #define INET_ADDRSTRLEN 16 #endif To : /*#if defined(__sgi) && !defined(INET_ADDRSTRLEN)*/ #define INET_ADDRSTRLEN 16 /*#endif*/
I made several python tests and all looks fine.
Then I compiled Zope 2.8.4 without any issue.
But when I run it, I get this error:
Site Error An error was encountered while publishing this resource.
exceptions.TypeError
Sorry, a site error occurred.
Traceback (innermost last):
Module ZPublisher.Publish, line 187, in publish_module_standard Module Products.Localizer, line 58, in new_publish Module ZPublisher.Publish, line 144, in publish Module Zope2.App.startup, line 174, in zpublisher_exception_hook Module App.ZApplication, line 60, in __bobo_traverse__ Module UserDict, line 17, in __getitem__ Module ZODB.Connection, line 704, in setstate Module ZODB.Connection, line 760, in _setstate Module ZODB.serialize, line 495, in setGhostState Module ZODB.serialize, line 488, in getState Module ZODB.serialize, line 436, in _persistent_load Module ZODB.Connection, line 208, in get Module ZODB.serialize, line 482, in getGhost TypeError: Acquirer.__new__(Application) is not safe, use Persistence.Persistent.__new__()
Does anyone know what I can do ?
Thanks a lot.
- -- =================================================================== Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDoX+I+gerLs4ltQ4RAnnCAJ93gKFJn8j/BPXK91RuuTMutLzrHACgtB56 NH2tqYHS/JPITSoVefuqkRU= =CCbu -----END PGP SIGNATURE-----
I have no idea what the original symptom or situation was, so I can't really comment. I'll note, however, that the error refered to in Pascal's reply results from a wart in Python's type-definition protocols that I thought I had fixed, but maybe I proposed fixing it and didn't get around to it. :( More specific would be helpful. Is a custom C type involved here? Jim Tres Seaver wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Pascal Peregrina wrote:
Ok, in case anyone is interested, this nasty code change made it :
In Zope-2.8.4-final/lib/python/ZODB/serialize.py:
Change : return klass.__new__(klass, *args)
To : try: result=klass.__new__(klass, *args) except TypeError: result=Persistent.__new__(klass, *args)
return result
I think Jim is the only one who could explain what you see. I can't even find the place in the code which generates that error:
$ find . -name "*.py" -o -name "*.c" | xargs grep "is not safe" ./RestrictedPython/RCompile.py: The UNPACK_SEQUENCE opcode is not safe because it extracts ./zope/security/untrustedpython/builtins.py: # It's better to say what is safe than it say what is not safe ./ZODB/tests/testmvcc.py:It is not safe, however, to read the current revision of "a" because $
Pascal
-----Message d'origine----- De : zope-bounces-CWUwpEBWKX0@public.gmane.org [mailto:zope-bounces-CWUwpEBWKX0@public.gmane.org] De la part de Pascal Peregrina Envoyé : jeudi 15 décembre 2005 12:51 À : zope-CWUwpEBWKX0@public.gmane.org Objet : RE: [Zope] Zope 2.8.4+Latest cygwin installation
Ok, just found it has already been reported several months ago, even with python 2.3.x: http://www.zope.org/Collectors/Zope/1725
Does someone know of any kind of temporary workaround for this ?
Thanks !
Pascal
-----Message d'origine----- De : zope-bounces-CWUwpEBWKX0@public.gmane.org [mailto:zope-bounces-CWUwpEBWKX0@public.gmane.org] De la part de Pascal Peregrina Envoyé : jeudi 15 décembre 2005 12:25 À : zope-CWUwpEBWKX0@public.gmane.org Objet : [Zope] Zope 2.8.4+Latest cygwin installation
Hi,
I would like to know if anyone has been able to compile and run Zope 2.8.4 with Cygwin.
I just installed cygwin with latest stable packages.
I compiled python 2.4.2 (I know, not the supported version, so I am about to try 2.3.5 now) I had issues with the socket module, and from google I applied a workaround that worked fine : in Modules/socketmodule.c Change : #if defined(__sgi) && !defined(INET_ADDRSTRLEN) #define INET_ADDRSTRLEN 16 #endif To : /*#if defined(__sgi) && !defined(INET_ADDRSTRLEN)*/ #define INET_ADDRSTRLEN 16 /*#endif*/
I made several python tests and all looks fine.
Then I compiled Zope 2.8.4 without any issue.
But when I run it, I get this error:
Site Error An error was encountered while publishing this resource.
exceptions.TypeError
Sorry, a site error occurred.
Traceback (innermost last):
Module ZPublisher.Publish, line 187, in publish_module_standard Module Products.Localizer, line 58, in new_publish Module ZPublisher.Publish, line 144, in publish Module Zope2.App.startup, line 174, in zpublisher_exception_hook Module App.ZApplication, line 60, in __bobo_traverse__ Module UserDict, line 17, in __getitem__ Module ZODB.Connection, line 704, in setstate Module ZODB.Connection, line 760, in _setstate Module ZODB.serialize, line 495, in setGhostState Module ZODB.serialize, line 488, in getState Module ZODB.serialize, line 436, in _persistent_load Module ZODB.Connection, line 208, in get Module ZODB.serialize, line 482, in getGhost TypeError: Acquirer.__new__(Application) is not safe, use Persistence.Persistent.__new__()
Does anyone know what I can do ?
Thanks a lot.
- -- =================================================================== Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDoX+I+gerLs4ltQ4RAnnCAJ93gKFJn8j/BPXK91RuuTMutLzrHACgtB56 NH2tqYHS/JPITSoVefuqkRU= =CCbu -----END PGP SIGNATURE-----
-- Jim Fulton mailto:jim@zope.com Python Powered! CTO (540) 361-1714 http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org
participants (3)
-
Jim Fulton -
Pascal Peregrina -
Tres Seaver