veszig commented on issue #5004: db upgrade importError:No module named 'contextlib2' URL: https://github.com/apache/incubator-superset/issues/5004#issuecomment-389277179 I have the same issue. After upgrading I get the following error message when I try to upgrade the db: ``` $ superset db upgrade Traceback (most recent call last): File "/mnt/srv/superset/venv/bin/superset", line 12, in <module> from superset.cli import manager File "/mnt/srv/superset/venv/local/lib/python2.7/site-packages/superset/__init__.py", line 179, in <module> ConnectorRegistry.register_sources(module_datasource_map) File "/mnt/srv/superset/venv/local/lib/python2.7/site-packages/superset/connectors/connector_registry.py", line 20, in register_sources module_obj = __import__(module_name, fromlist=class_names) File "/mnt/srv/superset/venv/local/lib/python2.7/site-packages/superset/connectors/sqla/__init__.py", line 3, in <module> from . import views # noqa File "/mnt/srv/superset/venv/local/lib/python2.7/site-packages/superset/connectors/sqla/views.py", line 19, in <module> from superset.connectors.base.views import DatasourceModelView File "/mnt/srv/superset/venv/local/lib/python2.7/site-packages/superset/connectors/base/views.py", line 11, in <module> from superset.views.base import SupersetModelView File "/mnt/srv/superset/venv/local/lib/python2.7/site-packages/superset/views/__init__.py", line 3, in <module> from . import core # noqa File "/mnt/srv/superset/venv/local/lib/python2.7/site-packages/superset/views/core.py", line 36, in <module> from superset import ( File "/mnt/srv/superset/venv/local/lib/python2.7/site-packages/superset/sql_lab.py", line 12, in <module> from contextlib2 import contextmanager ImportError: No module named contextlib2 ``` Versions: ``` $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial $ python -V Python 2.7.12 ``` And `pip install contextlib2` fixes this issue but I get another seemingly unrelated exception.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org