Python CLI fails silently on importing jwt

289 Views Asked by At

I have installed in a virtualenv both python-jose (3.2.0) and PyJWT (2.0.1), but with both my console script fails without any error message on importing jwt.

Even from the CLI (Python 3.7.7 on Windows 10), both

from jose import jwt

and

import jwt

make the CLI closes silently, without any error message. enter image description here

Furthermore:

>>> import jose
>>> jose.jwt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'jose' has no attribute 'jwt'

pip check does not return any error. For everything else, the virtualenv seems to work just fine (it is a Flask app).

Thanks in advance

0

There are 0 best solutions below