Open ahusking opened 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.
Unable to see the virtualisation tab
To Reproduce
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.