You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "jack (JIRA)" <ji...@apache.org> on 2018/12/31 09:16:00 UTC
[jira] [Comment Edited] (AIRFLOW-1072) cannot import name viewkeys
[ https://issues.apache.org/jira/browse/AIRFLOW-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16731232#comment-16731232 ]
jack edited comment on AIRFLOW-1072 at 12/31/18 9:15 AM:
---------------------------------------------------------
Airflow does not use html5lib directly.
Airflow uses bleach.
In any case [https://github.com/apache/incubator-airflow/pull/2858] upgraded bleach to {color:#032f62}2.1.2{color} so I guess this issue is no longer relevant.
was (Author: jackjack10):
Airflow does not use html5lib directly.
Airflow uses bleach.
In any case [https://github.com/apache/incubator-airflow/pull/2858] upgraded bleach to 2.0.0 so I guess this issue is no longer relevant.
> cannot import name viewkeys
> ---------------------------
>
> Key: AIRFLOW-1072
> URL: https://issues.apache.org/jira/browse/AIRFLOW-1072
> Project: Apache Airflow
> Issue Type: Bug
> Reporter: Semet
> Priority: Major
>
> 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
(v7.6.3#76005)