Pyinstaller with Nornir - plugin 'netmiko' is not registered #668
-
Trying to package a Nornir script with pyinstaller I am receiving the error. Any help on how to resolve this? It is worth noting, when not packaging with pyinstaller the script works. nornir.core.exceptions.PluginNotRegistered: plugin 'netmiko' is not registered
---- SNMP Update ** changed : False -------------------------------------------- ERROR ^^^^ END snmpUpdate ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ main.spec: -- mode: python ; coding: utf-8 --block_cipher = None a = Analysis(['main.py'], |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Please format your code in markdown code blocks. nornir/nornir/core/plugins/register.py Lines 19 to 25 in e4f6b8c I would suggest to try registering the plugin manually in your code, e.g.:
|
Beta Was this translation helpful? Give feedback.
Please format your code in markdown code blocks.
I haven't used PyInstaller, but I suspect when it packages the application, it doesn't bundles plugins to the appropriate entrypoints, so this code doesn't register anything:
nornir/nornir/core/plugins/register.py
Lines 19 to 25 in e4f6b8c
I would suggest to try registering the plugin manually in your code, e.g.: