PageTemplates - TAL configuration
Hi, Trying to create a PageTemplates object I got the following error : It seems that TAL is not correctly installed as I read it on the mailing-list, I tried many things but with no success. SO, Where to put TAL Directory, in <Zope2>/lib/python ? What is the path file name to create : 'path' or '.pth' or TAL.pth' ? Which string should be present in this path file, '<Zope2>/lib/python'? Where to put this path file ? Remark : I use PageTemplates-1.0, TAL-1.0, ParsedXML-1.0, Zope-2.3.1 FRC Zope Error ========= Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: _v_blocks Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. [Powered by Zope] Traceback (innermost last): File /usr/local/Zope-2.3.1-src/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/Zope-2.3.1-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.3.1-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /usr/local/Zope-2.3.1-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope-2.3.1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: ptAdd) File /usr/local/Zope-2.3.1-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: ptAdd) File /usr/local/Zope-2.3.1-src/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: ptAdd) File /usr/local/Zope-2.3.1-src/lib/python/Shared/DC/Scripts/Bindings.py, line 354, in _bindAndExec (Object: ptAdd) File /usr/local/Zope-2.3.1-src/lib/python/App/special_dtml.py, line 236, in _exec (Object: ptAdd) AttributeError: (see above)
From: "FR Chalaoux" <frchalaoux@wanadoo.fr>
Where to put TAL Directory, in <Zope2>/lib/python ?
Yes.
What is the path file name to create : 'path' or '.pth' or TAL.pth' ? Which string should be present in this path file, '<Zope2>/lib/python'? Where to put this path file ?
This file is only needed of you are running the TAL unit tests, not for normal ZPT operation. If you want to run the tests, place the ".path" file into the TAL directory, with the path to <zope2>/lib/python in it.
Error Type: AttributeError Error Value: _v_blocks
This is a strange one. I'll have to try installing a setup like yours from scratch to see if I can replicate it; My CVS checkouts work fine. Cheers, Evan @ digicool & 4-am
What is the guesstimated ETA for a Zope binary release with built in SSL to avoid the various administrative hassles configuring this? I gather 2.3.1 is intended to be capable of being used with Python 2 and now has a binary download using Python 2.0 for 64 bit OS, but an actual switch to Python 2 is intended for 2.4.0 due to the needout to checkout numerous modules for the major changes involved in Unicode etc. Python 2 has a (poorly documented) capability for using SSL sockets with the normal sockets module. I imagine if that was properly integrated into the various binary versions of Zope it would become significantly easier to setup SSL without having to separately install m2Crypto, fiddle with Apache etc. A windows binary for the SSL sockets module is available from: http://alldunn.com/python/ Is SSL planned for inclusion in 2.4? Are there plans for an earlier release of an alternative binary 2.3.x version for Python 2.x (that would help with the checkout before switch - release with caveats about the 1.5.2 version being more "stable")? If so, could it please include SSL? When? ;-) Also, Zope could do with some built in crypto facilities. I gather amkCrypto works fine based on SWIG of OpenSSL and is available for both 1.5.2 and 2.0 with a windows binary also available (but only for 1.5.2). If integrating the SSL facility with Python 2 for Zope binary releases involves some sort of linking with OpenSSL it might be desirable to also do the linking for amkCrypto at same time, so that it is "just another facility" available in Zope (extension class or whatever - I wouldn't know). Finally, ;-) Public Key Certificate Authority software is available for python: http://www.pyca.de/ It would be nice to do a "Product" for that with some sort of integration with management screens so that user as well as server certificates could be made into just a routine administrative function rather than studying READMEs, installing other packages, issuing various shell commands and copying files to configure SSL. It would also be nice to be able to easily just use SSL for login and then maintain an unencrypted session for that login.
From: "FR Chalaoux" <frchalaoux@wanadoo.fr>
Where to put TAL Directory, in <Zope2>/lib/python ?
Yes.
What is the path file name to create : 'path' or '.pth' or TAL.pth' ? Which string should be present in this path file, '<Zope2>/lib/python'? Where to put this path file ?
This file is only needed of you are running the TAL unit tests, not for normal ZPT operation. If you want to run the tests, create a ".path" file in the TAL directory, with the path to <zope2>/lib/python in it.
Error Type: AttributeError Error Value: _v_blocks
This is a strange one. I'll have to try installing a setup like yours from scratch to see if I can replicate it; My CVS checkouts work fine. Cheers, Evan @ digicool & 4-am
participants (3)
-
Albert Langer -
Evan Simpson -
FR Chalaoux