Webinterface using wsgi



I have a small webinterface addon of type wsgi. It doesn’t work anymore since the update to Kodi 21 (tried on ubuntu and windows). Kodi crashes immediately when I try to access the webinterface on http://localhost:8080/addons/webinterface.helloworld/

The only line I can see in the kodi log is
2024-04-23 22:32:15.432 T:231      info <general>: –>HTTP Python WSGI Interpreter Initialized<–

The problem can be reproduced using the following minimal addon consisting of addon.xml and app.py

addon.xml:

<?xml version="1.0" encoding="UTF-8"?>
<addon id="webinterface.helloworld" version="1.0.0" name="Hello world webinterface" provider-name="Millencolin007">
  <requires>
    <import addon="xbmc.python" version="3.0.0"/>
    <import addon="xbmc.webinterface" version="1.0.0"/>
    <import addon="script.module.bottle" version="0.12.8"/>
  </requires>
  <extension point="xbmc.webinterface" type="wsgi" library="app.py" entry="app"/>
  <extension point="kodi.addon.metadata">
    <summary lang="en">Hello world web interface</summary>
    <description lang="en">Hello world web interface</description>
    <platform>all</platform>
  </extension>
</addon>
app.py:

from bottle import Bottle

app = Bottle()

@app.route('/')
def index():
    return "Index"