Inflow created AIRFLOW-2582:
-------------------------------

             Summary: ImportError: No module named ext.cache
                 Key: AIRFLOW-2582
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2582
             Project: Apache Airflow
          Issue Type: Bug
          Components: authentication
    Affects Versions: Airflow 1.9.0
            Reporter: Inflow


After installing a fresh installation, I am having compatibility issues with 
ext.cache.

 

{{$ airflow webserver -p 8080
....
....
Traceback (most recent call last):
  File "/usr/local/bin/airflow", line 27, in <module>
    args.func(args)
  File "/usr/local/lib/python2.7/dist-packages/airflow/bin/cli.py", line 678, 
in webserver
    app = cached_app(conf)
  File "/usr/local/lib/python2.7/dist-packages/airflow/www/app.py", line 161, 
in cached_app
    app = create_app(config)
  File "/usr/local/lib/python2.7/dist-packages/airflow/www/app.py", line 52, in 
create_app
    app=app, config=\{'CACHE_TYPE': 'filesystem', 'CACHE_DIR': '/tmp'})
  File "/usr/local/lib/python2.7/dist-packages/flask_cache/__init__.py", line 
121, in __init__
    self.init_app(app, config)
  File "/usr/local/lib/python2.7/dist-packages/flask_cache/__init__.py", line 
156, in init_app
    from .jinja2ext import CacheExtension, JINJA_CACHE_ATTR_NAME
  File "/usr/local/lib/python2.7/dist-packages/flask_cache/jinja2ext.py", line 
33, in <module>
    from flask.ext.cache import make_template_fragment_key}}
{{ImportError: No module named ext.cache}}{{}}

 

{{You can find a full route that i followed 
[here|}}https://stackoverflow.com/questions/50750915/debugging-web-authentication-for-apache-airflow{{].}}

 

{{As mentioned in another Stack Overflow 
[post|https://stackoverflow.com/questions/50261135/importing-flask-exthook-raises-modulenotfounderror]:
 }}
 * {{something in the code is trying to import }}{{flask.exthook}}{{, which no 
longer exists in Flask 1.0. }}{{flask.ext}}{{ (and }}{{flask.exthook}}{{) was 
completely removed after being deprecated for at least a year. }}
 * {{Any use of }}{{from flask.ext import ...}}{{ should be replaced with a 
direct import of the extension. For example }}{{flask.ext.sqlalchemy}}{{ 
becomes }}{{flask_sqlalchemy}}{{.}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to