问题: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)

最新文章

  1. solr服务(搜索服务)
  2. spring4mvc返回json(bean,list,map)
  3. WCF学习系列四--【WCF Interview Questions – Part 4 翻译系列】
  4. treeview 控件使用和数据绑定
  5. HQL查询——HQL查询的基本用法
  6. Select loop
  7. WinForm 多窗体操作
  8. NOIP2015提高组Day1 Message
  9. 使用Jekyll官方的ReadMore摘要功能
  10. 在MacBook Air 上装Win10的,反反复复的失败过程。
  11. IT男的”幸福”生活"续9
  12. Rhythmbox中文乱码解决办法
  13. css3中定义required,focus,valid和invalid样式
  14. MAC机中安装RUBY环境
  15. IE6 for WIN8
  16. silverlight visifire控件图表制作——silverlight 后台方法ControlChart.xaml.cs
  17. Cocos2d-x-lua游戏两个场景互相切换MainScene01切换到MainScene02
  18. hdu1532(最大流)
  19. linux启动失败
  20. DJango内建模板转向jinja2的小脚本

热门文章

  1. Python之jieba库的使用
  2. MySQL命令行登陆,远程登陆MySQL 的方法
  3. mybatis 中javaType和OfType 的区别
  4. Python爬取今日头条段子
  5. Android L2TP Client Setup
  6. dbca建库--linux上使用vnc图形化安装oracle10g版本
  7. 谷歌浏览器添加JSON-handle插件
  8. c# 程序只能运行一次(多次运行只能打开同一个程序)
  9. FPGA例化ROM存储表格
  10. ORACLE数据库自动备份压缩的批处理脚本 rar 7z