Simple installation, but ModuleNotFoundError


I’m excited about trying privacyIDEA, and the instructions on have worked fine until I got to the step of using ‘pi-manage’.

I’m installing on a LXD container with Ubuntu Server 20.04.

Running ‘pi-manage create_enckey’ I get the error:

Traceback (most recent call last):
  File "/opt/privacyidea/bin/pi-manage", line 88, in <module>
    from flask_script import Manager, Command, Option
  File "/opt/privacyidea/lib/python3.8/site-packages/flask_script/", line 15, in <module>
    from flask._compat import text_type
ModuleNotFoundError: No module named 'flask._compat'

I have no idea where to go from here, since I followed all of the instructions precisely to this point. Any help would be greatly appreciated.


It’s quite possible that I figured out the problem, which was my misinterpreting the instructions.

I thought 2.1.1 (Deterministic Installation) was optional. Sorry for the confusion.

1 Like

Well it used to be optional but currently more recent packages change (and break) a lot of things. We are working on upgrading the whole stack to work with the most recent packages again but this will take some time.