llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

LNT is not compatible with Flask-0.11, which is now the default in pypi

Open cmatthew opened this issue 10 years ago • 1 comments

Bugzilla Link 28059
Resolution FIXED
Resolved on Aug 01, 2017 05:46
Version unspecified
OS All

Extended Description

LNT fails with the following exception when loaded with Flask-0.11:

File "/home/buildslave/buildslave/clang-cmake-aarch64-full/test/lnt/lnt/server/ui/decorators.py", line 6, in frontend = flask.Module(name) AttributeError: 'module' object has no attribute 'Module'

Flask-0.11 is now the default in pypi, so it will start to be installed in more places.

The Flask changelog mentions:

"Removed deprecated module functionality."

For now we have coded Flask<0.11 as a hard requirement, but this should be fixed!

cmatthew avatar Jun 09 '16 00:06 cmatthew

The commit (below) seems to fix this issue.

r308795 | cmatthews | 2017-07-21 23:38:19 +0100 (Fri, 21 Jul 2017) | 7 lines

Upgrade to Flask 0.12.2 + switch to Flask Blueprints

The Flask Module system we were using in LNT was depricated and removed from Flask long ago. This changes us from Module to Blueprints. Biggest change is that all url_for calls need to specify the blueprint name, or add a "." for the local blueprint. I updated all uses of url_for to correctly account for this.

llvmbot avatar Aug 01 '17 12:08 llvmbot