You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The usage of Python libdnf5 plugins isn't very clear and is poorly documented, so there's a chance I may have made a mistake. Here’s what I tried to write a plugin in Python:
created /etc/dnf/libdnf5-plugins/python_plugins_loader.conf config file with this content to enable python_plugins_loader:
[main]
name = python_plugins_loader
enabled = 1
copied libdnf5-plugins/python_plugins_loader/plugin.py to a temporary directory
set environment variable LIBDNF_PYTHON_PLUGIN_DIR to this directory and tried to run dnf5:
(to get a better error message I also needed to hack libdnf5::Plugins::load_plugins() method to not only log the plugin loading failure, but also print it to console. The thing is that the error occurs during base.setup() call, before the log file is created).
I think that the problem is somehow connected with the change introduced by commit 60338b9.
The text was updated successfully, but these errors were encountered:
The usage of Python libdnf5 plugins isn't very clear and is poorly documented, so there's a chance I may have made a mistake. Here’s what I tried to write a plugin in Python:
/etc/dnf/libdnf5-plugins/python_plugins_loader.conf
config file with this content to enable python_plugins_loader:libdnf5-plugins/python_plugins_loader/plugin.py
to a temporary directoryLIBDNF_PYTHON_PLUGIN_DIR
to this directory and tried to run dnf5:(to get a better error message I also needed to hack
libdnf5::Plugins::load_plugins()
method to not only log the plugin loading failure, but also print it to console. The thing is that the error occurs during base.setup() call, before the log file is created).I think that the problem is somehow connected with the change introduced by commit 60338b9.
The text was updated successfully, but these errors were encountered: