[Cocci] 答复: Fatal error: exception Failure("no python")

林嘉(程二 福州) linjia at ruijie.com.cn
Fri Feb 14 13:43:44 CET 2014

# spatch --version
spatch version 1.0.0-rc19 without Python support and with Str regexp support

but I didn't make and make install with option '--without-python '
that is I pressed  ./configure --enable-release, just it

and now when I run "/usr/bin/spatch -sp_file ....", all is ok, it seems version 0.2.3 runs
but "spatch -sp_file " reports fail, seems version 1.0 runs?

发件人: npalix.work at gmail.com [mailto:npalix.work at gmail.com] 代表 Nicolas Palix
发送时间: 2014年2月14日 17:51
收件人: 林嘉(程二 福州)
抄送: cocci at systeme.lip6.fr
主题: Re: [Cocci] Fatal error: exception Failure("no python")


On Fri, Feb 14, 2014 at 8:57 AM, 林嘉(程二 福州) <linjia at ruijie.com.cn> wrote:
> Then I found cocc can not work, it reports: Fatal error: exception 
> Failure("no python")

You get is error when spatch has not been compiled with Python support but you are still using cocci file with Python snippet.

Does ' spatch --version' report python support ?
Such as
     spatch version 1.0.0-rc15 with Python support and with PCRE support

Nicolas Palix
Tel: +33 4 76 51 46 27

More information about the Cocci mailing list