[kforge-user] Installation issue

Rufus Pollock rufus.pollock at okfn.org
Wed Sep 19 17:47:47 UTC 2007


Capelle Maxime wrote:
[snip]
> And after entering the command : /etc/init.d/apache2 force-reload, I
> have got the following error:
> Syntax error on line 20 of
> /etc/apache2/sites-available/kforge.localhost-kforge-generated.conf:
> Invalid command 'PythonInterpreter', perhaps misspelled or defined by a
> module not included in the server configuration
>    ...fail!
> 
> Do I have to include a module that allows the use of the command
> PythonInterpreter?

Yes you need Apache mod-python module installed. On debian this package 
is named (so should be something similar on ubuntu):

libapache2-mod-python

To install do:

$ sudo apt-get install libapache2-mod-python

By the way, one warning here: once mod-python is running, if you 
installed kforge using easy_install you are likely to encounter a 
well-known problem documented e.g. here:

<http://docs.turbogears.org/1.0/mod_python#setting-the-egg-cache-directory>

Solutions to this problem is documented there, the simplest of which 
involves ensuring that the kforge 'egg' are installed unzipped:

$ sudo easy_install -UZ kforge

Alternatively you can break the existing egg open (probably located at 
/urs/lib/python2.4/kforge-0.13-....)

~rufus




More information about the kforge-user mailing list