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

No module named 'u2flib_server' #67

Open
iXioN opened this issue Apr 15, 2021 · 0 comments
Open

No module named 'u2flib_server' #67

iXioN opened this issue Apr 15, 2021 · 0 comments

Comments

@iXioN
Copy link

iXioN commented Apr 15, 2021

After a clean install on a new project the u2flib_server is missing

Here is the ligne I used to install Django-mfa;

$ pip install django-mfa
Collecting django-mfa
  Downloading django_mfa-2.1-py3-none-any.whl (33 kB)
Requirement already satisfied: Django>=2.2.19 in ~/.venv/lib/python3.7/site-packages (from django-mfa) (2.2.20)
Requirement already satisfied: sqlparse>=0.2.2 in ~/.venv/lib/python3.7/site-packages (from Django>=2.2.19->django-mfa) (0.4.1)
Requirement already satisfied: pytz in ~/.venv/lib/python3.7/site-packages (from Django>=2.2.19->django-mfa) (2021.1)
Installing collected packages: django-mfa
Successfully installed django-mfa-2.1

after stating up the installed_apps, middleware and urls when I run my Django server I get this error stack

  File "~/.venv/lib/python3.7/site-packages/django_mfa/urls.py", line 1, in <module>
    from .views import *
  File "~/.venv/lib/python3.7/site-packages/django_mfa/views.py", line 19, in <module>
    from u2flib_server import u2f
ModuleNotFoundError: No module named 'u2flib_server'

in fact, this line

from u2flib_server import u2f
need the package python-u2flib-server which is not in the requirements (only in the sandbox/requirements.txt how are not installed via pip install)

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