kimchi-project / wok

A cherrypy framework for multi-purpose plug-ins
https://github.com/kimchi-project/wok/releases/latest
Other
236 stars 77 forks source link

ubuntu 20 no virtualization tab #304

Open dongfanglong2012 opened 4 years ago

dongfanglong2012 commented 4 years ago

I have installed wok kimchi and ginger-base after editing the .deb to have pyrhon3 where needed. I kept finding in various places that doing so would fix the dependencies problem on ubuntu 20. The wok page does load just fine and there are no errors. I also changed the "/etc/kimchi/template.conf" file to point to images as mine is not default. I still have not virtualization tab though. I don't know what information would help but if there is anything you need to know let me know and ill try to provide it.

dongfanglong2012 commented 4 years ago

found some more info from sudo python3 /bin/wokd --environment=dev https://pastebin.com/mZzsa5S8

this line is odd to me. ("Config error in section: 'wok', option: 'enable', value: 'True'. Config values must be valid Python.", 'TypeError',

because the file has enable = True and last i checked that is a valid command in python. i even tested it locally and it works. So im not sure what it means by valid python.

also checked the pydocs for 3.8 to see if it was right. https://docs.python.org/3/library/configparser.html and it looks right to me so i have no idea what it is wanting

ejinnis commented 4 years ago

+1 on this. Just installed on Ubuntu 20.04 and I am getting the exact same error.

fisimania commented 3 years ago

+1 on this. I have the same error on Ubuntu 20.04.

nrdmtt commented 3 years ago

Can you check /var/log/wok/wok-error.log to better understand the problem? I suspect it is something related to issue 1318

fisimania commented 3 years ago

Log says: 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'",))

If I change function "def build(self, o):" in "class _Builder3:" to "def build(self, o): return o.value" then kimchi plugin is loading, but noVNC is not working.

nrdmtt commented 3 years ago

Yep, that is another problem with ubuntu 20 :) All should be fixed with the next release.

If you are on a headless machine, see here for a temporary workaround.