Article 543F0 Traceback in example radicale wsgi

Traceback in example radicale wsgi

by
didiw
from LinuxQuestions.org on (#543F0)
I am trying connect to radicale 1.1.6 through apache2. When I try to connect to the apache port, which succeeds, I get the following error:

Quote:
HTTP request sent, awaiting response... 500 Internal Server Error
2020-05-13 22:23:19 ERROR 500: Internal Server Error.
My default interpreter is python3, if that matters.

I use the following radicale.wsgi (I don't remeber, where I got this file from):

Code:import os
from radicale import Application, config, log
config_paths = ['/etc/radicale/config']
configuration = config(config_paths, ignore_missing_paths=False)
filename = os.path.expanduser(configuration.get("logging", "config"))
debug = configuration.getboolean("logging", "debug")
logger = log.start("radicale", filename, debug)
application = Application(configuration, logger)The error log of apache contains the following traceback:

Quote:
[Wed May 13 22:23:19.223843 2020] [wsgi:error] [pid 5111] [remote ::1:49820] mod_wsgi (pid=5111): Target WSGI script '/var/lib/radicale/radicale.wsgi' cannot be loaded as Python module.
[Wed May 13 22:23:19.223980 2020] [wsgi:error] [pid 5111] [remote ::1:49820] mod_wsgi (pid=5111): Exception occurred processing WSGI script '/var/lib/radicale/radicale.wsgi'.
[Wed May 13 22:23:19.224251 2020] [wsgi:error] [pid 5111] [remote ::1:49820] Traceback (most recent call last):
[Wed May 13 22:23:19.224315 2020] [wsgi:error] [pid 5111] [remote ::1:49820] File "/var/lib/radicale/radicale.wsgi", line 8, in <module>
[Wed May 13 22:23:19.224328 2020] [wsgi:error] [pid 5111] [remote ::1:49820] configuration = config(config_paths, ignore_missing_paths=False)
[Wed May 13 22:23:19.224374 2020] [wsgi:error] [pid 5111] [remote ::1:49820] TypeError: 'RawConfigParser' object is not callable
What is wrong with the wsgi script?latest?d=yIl2AUoC8zA latest?i=MAqR7V39JH8:JgoI0yvXkXI:F7zBnMy latest?i=MAqR7V39JH8:JgoI0yvXkXI:V_sGLiP latest?d=qj6IDK7rITs latest?i=MAqR7V39JH8:JgoI0yvXkXI:gIN9vFwMAqR7V39JH8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments