You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enrico Usai edited this page May 4, 2023
·
4 revisions
The issue
Flask is a Python dependency of ParallelCluster. Due to a recent change in flask, when flask >= 2.3 is installed, the ParallelCluster CLI will raise an exception when executing any command. If affected by this issue, the pcluster command will raise an exception with the following message:
AttributeError: module 'flask.json' has no attribute 'JSONEncoder'
Mitigation
To workaround this issue, install the 2.2.5 version of flask with the following command:
python3 -m pip install flask==2.2.5
After updating the dependency, the CLI should work normally.