libstorage / libstoragemgmt

A library for storage management
https://libstorage.github.io/libstoragemgmt-doc/
GNU Lesser General Public License v2.1
82 stars 32 forks source link

local plugin requires arcconf and hpsa plugins to be installed, otherwise exception is thrown #484

Closed tasleson closed 2 years ago

tasleson commented 3 years ago

We need to handle when the plugin(s) aren't available or require they are available with packaging requirements.

local_lsmplugin: Traceback (most recent call last):
File "/usr/bin/local_lsmplugin", line 26, in <module>
  from local_plugin import LocalPlugin
File "/usr/lib/python3.9/site-packages/local_plugin/__init__.py", line 1, in <module>
  from local_plugin.local import LocalPlugin
File "/usr/lib/python3.9/site-packages/local_plugin/local.py", line 23, in <module>
  from arcconf_plugin import Arcconf
ModuleNotFoundError: No module named 'arcconf_plugin'
tasleson commented 2 years ago

Solved with packaging requirements