failed to import external python module

Julien ÉLIE julien at trigofacile.com
Mon Jun 16 18:10:05 UTC 2008


Hi David,

> after installation of inn-STABLE-20080615 i am getting this message in logs :
>
> Jun 15 23:25:42 dev01 innd: python interpreter initialized OK
> Jun 15 23:25:42 dev01 innd: failed to import external python module
> Jun 15 23:25:42 dev01 innd: python filter object is not defined
> Jun 15 23:25:42 dev01 innd: SERVER Python filtering disabled
> Jun 15 23:25:42 dev01 innd: SERVER starting
>
> What does it means? failed to import external python module ...

I thought there was a bug in last STABLE seeing your report.  However, Python filters
work fine in inn-STABLE-20080615 (and 16).
They start well and they reload well.

Jun 16 19:58:34 news innd: python interpreter initialized OK
Jun 16 19:58:34 news innd: python: First load, so I can do initialization stuff.
Jun 16 19:58:34 news innd: python: spamfilter successfully hooked into INN
Jun 16 19:58:34 news innd: SERVER Python filtering enabled
Jun 16 19:58:34 news innd: defined python methods
Jun 16 19:58:34 news innd: SERVER starting


As for the error, I assume there is a problem with your scripts.
Loading it does not work since it cannot import it.

Hmm... Just to be sure, because you always spoke about nnrpd Python filters,
do you still have the file named filter_innd.py in your pathfilter directory?
The default is <pathnews>/bin/filter and this filter is required by innd
so Python filters will not work if you do not have this file.
And you cannot rename it.

-- 
Julien ÉLIE

« Dans l'algèbre comme dans la police, il faut identifier X. » (André Frédérique) 



More information about the inn-workers mailing list