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

yaml loader issue on #2

Open
nate-johnston opened this issue Aug 26, 2022 · 0 comments
Open

yaml loader issue on #2

nate-johnston opened this issue Aug 26, 2022 · 0 comments

Comments

@nate-johnston
Copy link

Hello! I recently started using easy2fa in a Fedora Silverblue toolbox based of F36, and I get this issue when I install easy2fa (v0.8) from pip3:

⬢[nate@toolbox ~]$ ~/.local/bin/easy2fa
Traceback (most recent call last):
  File "/var/home/nate/.local/bin/easy2fa", line 8, in <module>
    sys.exit(main())
  File "/var/home/nate/.local/lib/python3.10/site-packages/easy2fa/__init__.py", line 249, in main
    accountStorage = AccountStorage(SHELF, account)
  File "/var/home/nate/.local/lib/python3.10/site-packages/easy2fa/__init__.py", line 63, in __init__
    self._load()
  File "/var/home/nate/.local/lib/python3.10/site-packages/easy2fa/__init__.py", line 201, in _load
    self.shelf = yaml.load(fd)
TypeError: load() missing 1 required positional argument: 'Loader'

Python version is 3.10, PyYAML is 6.0. If I downgrade to PyYAML 5.4.1, then it works. Perhaps an upper constraint is necessary until the PyYAML usage is updated.

I really appreciate the easy2fa project, it is a tremendous help to me. Thanks!

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