kimchi-project / kimchi

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

No virtualization tab: No module named 'distro' #1301

Open 4square opened 4 years ago

4square commented 4 years ago

Installed v3 from deb on Ubuntu 19.04 server. Getting following issue:

Push server created on address /run/user/0/woknotifications
Failed to import plugin wok.plugins.kimchi.Kimchi, error: Class wok.plugins.kimchi.Kimchi can not be imported, error: No module named 'distro'
Plugin configuration file /etc/wok/plugins.d/__pycache__.conf doesn't exist.
[13/Jan/2020:22:54:52] ENGINE Listening for SIGTERM.
[13/Jan/2020:22:54:52] ENGINE Listening for SIGHUP.
[13/Jan/2020:22:54:52] ENGINE Listening for SIGUSR1.
[13/Jan/2020:22:54:52] ENGINE Bus STARTING
[13/Jan/2020:22:54:52] ENGINE Started monitor thread 'Autoreloader'.
[13/Jan/2020:22:54:52] ENGINE Serving on http://127.0.0.1:8010
[13/Jan/2020:22:54:52] ENGINE Bus STARTED

Please help!

tabnul commented 4 years ago

i did have this issue too. fixed by manually installing the distro plugin and restarting. seems to be a bug in the installation. I did have a second error (ngins unable to start because of missing PEM files).

sudo pip3 install distro

sudo service wokd stop sudo service wokd start

alinefm commented 4 years ago

The step by step on how to install Wok and Kimchi can be found at: https://github.com/kimchi-project/kimchi/releases/tag/3.0.0

alinefm commented 4 years ago

Or following the instructions at https://github.com/kimchi-project/kimchi#debian--ubuntu if you are running from source code.

jakev383 commented 4 years ago

I followed the instructions at https://github.com/kimchi-project/kimchi/releases/tag/3.0.0 for Debian (10.4) and ran into the same error with missing 'distro'. I then had to also 'pip3 install ipaddr' to get the tab working. When I look at https://raw.githubusercontent.com/kimchi-project/kimchi/master/requirements-UBUNTU.txt the only dependency I see is ethtool, so it looks like some dependencies may be missing from that file?

elianora commented 4 years ago

I can second that this does not work on a fresh install of Debian 10.4 unless you also install ipaddr and distro through pip3. Once installed, everything runs as expected.

MarcelMo commented 3 years ago

Add ethtool to the list of missing python modules