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

Adding plugin to beanfile results in ModuleNotFoundError #82

Open
alex-does-stuff opened this issue Apr 3, 2023 · 0 comments
Open

Adding plugin to beanfile results in ModuleNotFoundError #82

alex-does-stuff opened this issue Apr 3, 2023 · 0 comments

Comments

@alex-does-stuff
Copy link

I added a plugin to my Beancount setup. The VSCode extension lists a ModuleNotFoundError for the plugin (see below). At the same time, running bean-check and the beancheck.py file shipped with the extension do not yield the same error.

Error importing "plugins.depreciation": Traceback (most recent call last):
    File "/home/alex/mlaccounting/venv/lib/python3.10/site-packages/beancount/loader.py", line 574, in run_transformations
      module = importlib.import_module(plugin_name)
    File "/usr/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 992, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
    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'

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