python2.7 Cheetah You don't have the C version of NameMapper installed
2024-10-15 11:01:06
问题:You don't have the C version of NameMapper installed
sudo vi /usr/lib/python2.7/site-packages/Cheetah/Compiler.py
将第1506行起以下代码注释掉:
if not NameMapper.C_VERSION:
if not sys.platform.startswith('java'):
warnings.warn(
"\nYou don't have the C version of NameMapper installed! "
"I'm disabling Cheetah's useStackFrames option as it is "
"painfully slow with the Python version of NameMapper. "
"You should get a copy of Cheetah with the compiled C version of NameMapper."
self.setSetting('useStackFrames', False)
替换成
if not NameMapper.C_VERSION:
if not sys.platform.startswith('java'):
pass
#warnings.warn(
# "\nYou don't have the C version of NameMapper installed! "
# "I'm disabling Cheetah's useStackFrames option as it is "
# "painfully slow with the Python version of NameMapper. "
# "You should get a copy of Cheetah with the compiled C version of NameMapper."
# )
self.setSetting('useStackFrames', False)
最新文章
- solr服务(搜索服务)
- spring4mvc返回json(bean,list,map)
- WCF学习系列四--【WCF Interview Questions – Part 4 翻译系列】
- treeview 控件使用和数据绑定
- HQL查询——HQL查询的基本用法
- Select loop
- WinForm 多窗体操作
- NOIP2015提高组Day1 Message
- 使用Jekyll官方的ReadMore摘要功能
- 在MacBook Air 上装Win10的,反反复复的失败过程。
- IT男的”幸福”生活";续9
- Rhythmbox中文乱码解决办法
- css3中定义required,focus,valid和invalid样式
- MAC机中安装RUBY环境
- IE6 for WIN8
- silverlight visifire控件图表制作——silverlight 后台方法ControlChart.xaml.cs
- Cocos2d-x-lua游戏两个场景互相切换MainScene01切换到MainScene02
- hdu1532(最大流)
- linux启动失败
- DJango内建模板转向jinja2的小脚本