GehirnInc/python-jwt

Can't perform makemigrations Jango when using JWT

Rjayone opened this issue · 2 comments

Hi everyone, i faced with problem, which can't let me perform makemigrations when i'm using JWT.

The error is:
from jwt import JWT, jwk_from_pem ImportError: cannot import name JWT

In the file i just import JWT & jwk_from_pem
from jwt import JWT, jwk_from_pem
then using jwt = JWT()

In the settings.py
INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ..., 'rest_framework', 'jwt', ..., ]

What the cause of the error above?

@Rjayone Please paste pip freeze output in your environment.

@yosida95 solved this problem by using python3 manage.py makemigrations
Anyway thank you for fast reply