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

ImportError: cannot import name 'WrongMfaCredentials' from 'octoprint.plugin.types' #5

Closed
pathia opened this issue Jan 31, 2025 · 3 comments

Comments

@pathia
Copy link

pathia commented Jan 31, 2025

Whenever installing this plugin I get the following error in my log and I am unable to actually use the plugin.

2025-01-31 12:59:46,873 - octoprint.plugin.core - ERROR - Error loading plugin mfa_totp
Traceback (most recent call last):
  File "/home/patrick/oprint/lib/python3.9/site-packages/octoprint/plugin/core.py", line 1297, in _import_plugin
    module = _load_module(module_name, spec)
  File "/home/patrick/oprint/lib/python3.9/site-packages/octoprint/plugin/core.py", line 52, in _load_module
    return imp.load_module(name, f, filename, details)
  File "/home/patrick/oprint/lib/python3.9/site-packages/octoprint/vendor/imp.py", line 238, in load_module
    return load_package(name, filename)
  File "/home/patrick/oprint/lib/python3.9/site-packages/octoprint/vendor/imp.py", line 212, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 711, in _load
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/home/patrick/oprint/lib/python3.9/site-packages/octoprint_mfa_totp/__init__.py", line 11, in <module>
    from octoprint.plugin.types import WrongMfaCredentials
ImportError: cannot import name 'WrongMfaCredentials' from 'octoprint.plugin.types' (/home/patrick/oprint/lib/python3.9/site-packages/octoprint/plugin/types.py)
@foosel
Copy link
Member

foosel commented Jan 31, 2025

Please share the system info bundle

@foosel
Copy link
Member

foosel commented Jan 31, 2025

You are still on OctoPrint 1.10.3, as it says in the readme and the plugin listing this plugin requires 1.11.0 or higher, so this error is to be expected.

The plugin repo browser shouldn't even have shown this as compatible 🤔

@foosel foosel closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in OctoPrint Backlog Jan 31, 2025
@pathia
Copy link
Author

pathia commented Jan 31, 2025

You are still on OctoPrint 1.10.3, as it says in the readme and the plugin listing this plugin requires 1.11.0 or higher, so this error is to be expected.

The plugin repo browser shouldn't even have shown this as compatible 🤔

Indeed, I installed it using the URL option.
I'll try again when 1.11.0 is live then.
Sorry for this.

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

No branches or pull requests

2 participants