You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/09/03 16:10:08 UTC

[GitHub] [incubator-superset] Zverik opened a new issue #10783: Docker build does not work because of a pyarrow dependency

Zverik opened a new issue #10783:
URL: https://github.com/apache/incubator-superset/issues/10783


   When building a clean docker container, with `docker-compose build` and then `docker-compose up`, the entire thing fails because of a dependency error.
   
   ### Expected results
   
   Docker image successfully built and run.
   
   ### Actual results
   
   First, an error:
   
   > ERROR: apache-superset 0.999.0.dev0 has requirement pyarrow<0.18,>=0.17.0, but you'll have pyarrow 1.0.1 which is incompatible.
   
   Then, a stack trace on starting the container:
   
   ```
   superset_init            | Traceback (most recent call last):
   superset_init            |   File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 583, in _build_master
   superset_init            |     ws.require(__requires__)
   superset_init            |   File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 900, in require
   superset_init            |     needed = self.resolve(parse_requirements(requirements))
   superset_init            |   File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 791, in resolve
   superset_init            |     raise VersionConflict(dist, req).with_context(dependent_req)
   superset_init            | pkg_resources.ContextualVersionConflict: (pyarrow 1.0.1 (/usr/local/lib/python3.6/site-packages), Requirement.parse('pyarrow<0.18,>=0.17.0'), {'apache-superset'})
   superset_init            | 
   superset_init            | During handling of the above exception, another exception occurred:
   superset_init            | 
   superset_init            | Traceback (most recent call last):
   superset_init            |   File "/usr/local/bin/superset", line 6, in <module>
   superset_init            |     from pkg_resources import load_entry_point
   superset_init            |   File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3251, in <module>
   superset_init            |     @_call_aside
   superset_init            |   File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3235, in _call_aside
   superset_init            |     f(*args, **kwargs)
   superset_init            |   File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set
   superset_init            |     working_set = WorkingSet._build_master()
   superset_init            |   File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 585, in _build_master
   superset_init            |     return cls._build_from_requirements(__requires__)
   superset_init            |   File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
   superset_init            |     dists = ws.resolve(reqs, Environment())
   superset_init            |   File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 786, in resolve
   superset_init            |     raise DistributionNotFound(req, requirers)
   superset_init            | pkg_resources.DistributionNotFound: The 'pyarrow<0.18,>=0.17.0' distribution was not found and is required by apache-superset
   superset_init exited with code 1
   ```
   
   I have opened the frontend, but when I click on any chart, dashboard, or datasource, I get this error, or similar ones:
   
   ```
   sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedColumn) column sql_metrics.extra does not exist
   LINE 1: ...sql_metrics.expression AS sql_metrics_expression, sql_metric...
                                                                ^
   
   [SQL: SELECT sql_metrics.created_on AS sql_metrics_created_on, sql_metrics.changed_on AS sql_metrics_changed_on, sql_metrics.id AS sql_metrics_id, sql_metrics.metric_name AS sql_metrics_metric_name, sql_metrics.verbose_name AS sql_metrics_verbose_name, sql_metrics.metric_type AS sql_metrics_metric_type, sql_metrics.description AS sql_metrics_description, sql_metrics.d3format AS sql_metrics_d3format, sql_metrics.warning_text AS sql_metrics_warning_text, sql_metrics.table_id AS sql_metrics_table_id, sql_metrics.expression AS sql_metrics_expression, sql_metrics.extra AS sql_metrics_extra, sql_metrics.created_by_fk AS sql_metrics_created_by_fk, sql_metrics.changed_by_fk AS sql_metrics_changed_by_fk 
   FROM sql_metrics 
   WHERE %(param_1)s = sql_metrics.table_id]
   [parameters: {'param_1': 6}]
   (Background on this error at: http://sqlalche.me/e/13/f405)
   ```
   
   #### Screenshots
   
   If applicable, add screenshots to help explain your problem.
   
   #### How to reproduce the bug
   
   1. Go to '...'
   2. Click on '....'
   3. Scroll down to '....'
   4. See error
   
   ### Environment
   
   Everything from the docker files, I did no modifications. Superset cloned from commit 807bd656c6c727d1cd4d75f65e11922b9df2c475. Before that I was using a June build of Superset, and it worked fine.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] imavo commented on issue #10783: Docker build does not work because of a pyarrow dependency

Posted by GitBox <gi...@apache.org>.
imavo commented on issue #10783:
URL: https://github.com/apache/incubator-superset/issues/10783#issuecomment-687034577


   Same as #10768.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] Zverik commented on issue #10783: Docker build does not work because of a pyarrow dependency

Posted by GitBox <gi...@apache.org>.
Zverik commented on issue #10783:
URL: https://github.com/apache/incubator-superset/issues/10783#issuecomment-687097364


   Thanks — and the fix worked.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] issue-label-bot[bot] commented on issue #10783: Docker build does not work because of a pyarrow dependency

Posted by GitBox <gi...@apache.org>.
issue-label-bot[bot] commented on issue #10783:
URL: https://github.com/apache/incubator-superset/issues/10783#issuecomment-686597424


   Issue-Label Bot is automatically applying the label `#bug` to this issue, with a confidence of 0.93. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback! 
   
    Links: [app homepage](https://github.com/marketplace/issue-label-bot), [dashboard](https://mlbot.net/data/apache/incubator-superset) and [code](https://github.com/hamelsmu/MLapp) for this bot.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] Zverik closed issue #10783: Docker build does not work because of a pyarrow dependency

Posted by GitBox <gi...@apache.org>.
Zverik closed issue #10783:
URL: https://github.com/apache/incubator-superset/issues/10783


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org