I have just set up Manatee with Bonito on fresh Ubuntu 18.04 with sample corpora Susanne.
Alias /crystal /var/www/crystal
Alias /bonito /var/www/bonito
<Directory /var/www/bonito>
AllowOverride All
Options +ExecCGI
AddHandler cgi-script .cgi
</Directory>
to /etc/apache2/sites-available/000-default.conf (not sure if this is best place)
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/var/www/bonito/run.cgi in <module>()
83 print "</pre>"
84 else:
=> 85 BonitoCGI(user=username).run_unprotected (selectorname='corpname')
86
87 # vim: ts=4 sw=4 sta et sts=4 si tw=80:
BonitoCGI = <class __main__.BonitoCGI>, user undefined, username = None, ).run_unprotected undefined, selectorname undefined
/usr/lib/python2.7/dist-packages/bonito/CGIPublisher.py in run_unprotected(self=<__main__.BonitoCGI instance>, path=['session'], selectorname='corpname', outf=<open file '<stdout>', mode 'w'>)
241 if self._has_access or path[0] == 'feedback':
242 methodname, tmpl, result = self.process_method (path[0], path,
=> 243 named_args)
244 else: # redirect to login or raise error
245 methodname = path[0]
named_args = {}
/usr/lib/python2.7/dist-packages/bonito/CGIPublisher.py in process_method(self=<__main__.BonitoCGI instance>, methodname='session', pos_args=['session'], named_args={})
280 self._headers['Status'] = '400 Bad Request'
281 self.output_headers()
=> 282 raise Exception('unknown method: "%s"' % methodname)
283 method = getattr (self, methodname)
284 if self.debug:
builtin Exception = <type 'exceptions.Exception'>, methodname = 'session'