You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Semet (JIRA)" <ji...@apache.org> on 2017/04/05 12:55:42 UTC

[jira] [Created] (AIRFLOW-1072) cannot import name viewkeys

Semet created AIRFLOW-1072:
------------------------------

             Summary: cannot import name viewkeys
                 Key: AIRFLOW-1072
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1072
             Project: Apache Airflow
          Issue Type: Bug
            Reporter: Semet


Here is an error when integrating Airflow (HEAD) inside a docker:

{code}
INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
/usr/local/lib/python2.7/dist-packages/airflow-1.9.0.dev0+apache.incubating-py2.7.egg/airflow/configuration.py:128: DeprecationWarning: This method will be removed in future versions.  Use 'parser.read_file()' instead.
  self.readfp(StringIO.StringIO(string))
/usr/local/lib/python2.7/dist-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.cache is deprecated, use flask_cache instead.
  .format(x=modname), ExtDeprecationWarning
Traceback (most recent call last):
  File "/usr/local/bin/airflow", line 4, in <module>
    __import__('pkg_resources').run_script('airflow==1.9.0.dev0+apache.incubating', 'airflow')
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 738, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1499, in run_script
    exec(code, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/airflow-1.9.0.dev0+apache.incubating-py2.7.egg/EGG-INFO/scripts/airflow", line 28, in <module>
    args.func(args)
  File "/usr/local/lib/python2.7/dist-packages/airflow-1.9.0.dev0+apache.incubating-py2.7.egg/airflow/bin/cli.py", line 734, in webserver
    app = cached_app(conf)
  File "/usr/local/lib/python2.7/dist-packages/airflow-1.9.0.dev0+apache.incubating-py2.7.egg/airflow/www/app.py", line 161, in cached_app
    app = create_app(config)
  File "/usr/local/lib/python2.7/dist-packages/airflow-1.9.0.dev0+apache.incubating-py2.7.egg/airflow/www/app.py", line 60, in create_app
    from airflow.www import views
  File "/usr/local/lib/python2.7/dist-packages/airflow-1.9.0.dev0+apache.incubating-py2.7.egg/airflow/www/views.py", line 27, in <module>
    import bleach
  File "/usr/local/lib/python2.7/dist-packages/bleach-2.0.0-py2.7.egg/bleach/__init__.py", line 5, in <module>
    from bleach.linkifier import (
  File "/usr/local/lib/python2.7/dist-packages/bleach-2.0.0-py2.7.egg/bleach/linkifier.py", line 4, in <module>
    import html5lib
  File "build/bdist.linux-x86_64/egg/html5lib/__init__.py", line 16, in <module>
  File "build/bdist.linux-x86_64/egg/html5lib/html5parser.py", line 2, in <module>
ImportError: cannot import name viewkeys
{code}

Seems a bug in the [version of html5lib|http://stackoverflow.com/questions/39658404/python-cannot-import-name-viewkeys]. Forcing it to {{html5lib==1.0b8}} seems to work.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)