Skip to content

Pyinstaller with Nornir - plugin 'netmiko' is not registered #668

Answered by dmfigol
baddington1667 asked this question in Q&A
Discussion options

You must be logged in to vote

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:

def auto_register(self) -> None:
discovered_plugins: Dict[str, T] = {
entry_point.name: entry_point.load()
for entry_point in pkg_resources.iter_entry_points(self._entry_point)
}
for k, v in discovered_plugins.items():
self.register(k, v)

I would suggest to try registering the plugin manually in your code, e.g.:

from nornir.core.plugins.connections import Co…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@baddington1667
Comment options

Answer selected by baddington1667
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants