Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing FabGuard.py #1

Open
jomichaelis opened this issue Oct 16, 2024 · 0 comments
Open

Missing FabGuard.py #1

jomichaelis opened this issue Oct 16, 2024 · 0 comments

Comments

@jomichaelis
Copy link

I love the idea of having an input data verification for FabSim3, so I tried installing the plugin with the following command:

fabsim localhost install_plugin:FabGuard

The installation executes successfully, however each fabsim command executed from now on yields the following warning (e.g. fabsim -l tasks):

...
[loading plugin] FabGuard ...
No module named 'plugins.FabGuard.FabGuard'
Traceback (most recent call last):
  File "/home/jo/repos/fabsim-plugins/fabsim/deploy/machines.py", line 250, in load_plugins
    plugin = importlib.import_module("plugins.{}.{}".format(key, key))
  File "/home/jo/.pyenv/versions/3.10.12/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'plugins.FabGuard.FabGuard'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/jo/repos/fabsim-plugins/fabsim/bin/fabsim", line 46, in <module>
    sys.exit(fabsim_main.main())
  File "/home/jo/repos/fabsim-plugins/fabsim/base/fabsim_main.py", line 74, in main
    load_plugins()
  File "/home/jo/repos/fabsim-plugins/fabsim/deploy/machines.py", line 267, in load_plugins
    raise ImportError(e)
ImportError: No module named 'plugins.FabGuard.FabGuard'

The reason for the error message is that there is no file FabGuard.py in the root directory of the plugin, which I understand is mandatory to have for a FabSim3 plugin.

Are you planning on integrating the functionality of this repository with the FabSim3 commands' structure?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant