kimchi-project / kimchi

An HTML5 management interface for KVM guests
https://github.com/kimchi-project/kimchi/releases/latest
Other
3.1k stars 364 forks source link

Virt tab not shown #1310

Open ahusking opened 4 years ago

ahusking commented 4 years ago

Unable to see the virtualisation tab

To Reproduce

  1. install wok, ginger base, kimchi from source start wokd service.

error shows in the logs Failed to load plugin conf from /etc/wok/plugins.d/kimchi.conf: ("Config error in section: 'wok', option: 'enable', value: 'True'. Config values must be valid Python.", 'TypeError', ("unrepr does not recognize 'Constant'",))

Expected behavior Kimchi Plugin loads

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

ed-irwane commented 4 years ago

This is a CherryPy compatibility issue related to Python 3.8 coming with Ubuntu 20.04. Until officially fixed, you can edit the following file /usr/lib/python3/dist-packages/cherrypy/lib/reprconf.py. Inside the class _Builder3 add the following line (I suggest placing after the existing build_NameConstant function to make it clear on what it refers to): build_Constant = build_NameConstant # Python 3.8 change

The result should be as follows:

    ...
    def build_NameConstant(self, o):
        return o.value

    build_Constant = build_NameConstant  # Python 3.8 change
    ...

After making change don't forget to restart wokd service.