I have Python 2.7 installed on my Windows system with Cheetah. The following is the error I get when I try to use the cheetah.template object with a .tmpl file.
from Cheetah.Template import Template t = Template(file='home.tmpl') C:\wamp\bin\Python27\lib\site-packages\Cheetah\Compiler.py:1509: UserWarning: You don't have the C version of NameMapper installed! I'm disabling Cheetah us eStackFrames option as it is painfully slow with the Python version of NameMappe r. You should get a copy of Cheetah with the compiled C version of NameMapper. "\nYou don't have the C version of NameMapper installed! " from Cheetah.Template import Template t = Template(file='home.tmpl') print t Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\wamp\bin\Python27\lib\site-packages\Cheetah\Template.py", line 1005, in __str__ rc = getattr(self, mainMethName)() File "_wamp_www_b121pyraw_b121pycheetah_home_tmpl.py", line 89, in respond File "C:\wamp\bin\Python27\lib\site-packages\Cheetah\NameMapper.py", line 246, in valueFromSearchList _raiseNotFoundException(key, searchList) File "C:\wamp\bin\Python27\lib\site-packages\Cheetah\NameMapper.py", line 167, in _raiseNotFoundException raise NotFound(excString) Cheetah.NameMapper.NotFound: cannot find 'firstdivcontents'
I searched for _namemapper.pyd for python 2.7, but I am not getting. I found the file only for version 2.6. Do I need to upgrade to python 2.6, or is there any other way to install it.
And also how to install _namemapper.pyd to work with python, if at all, will I find it?
source share