Page MenuHomePhabricator

Error when displaying box plots in Superset
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

DB engine Error
module 'numpy' has no attribute 'object'


This may be triggered by:
Issue 1011 - Superset encountered an unexpected error. 


Please reach out to the Chart Owners for assistance.

Chart Owners: paragon -, razzi -

What should have happened instead?:
The box plot should have been shown (as it used to be).

Software version (skip for WMF-hosted wikis like Wikipedia):
Superset 1.5.3

Event Timeline

Hi @Pablo - Thanks so much for reporting this. It definitely seems like a regression, compared with the previous version.

I will try to expedite a fix for you.

The latest build of Superset included version 1.24.1 of numpy:

artifacts/bullseye/numpy-1.24.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

That replaced version 1.21.5

artifacts/buster/numpy-1.21.5-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl

I'll start by looking at the changelogs of numpy and see if there is anything obvious.

The latest version of numpy used in the upstream requirements is 1.23.5

This was bumped from version 1.22.1 when Python 3.11 support was added.

I'm going to try downgrading our numpy version to 1.23.5 first, then deploy to superset-next.wikimedia.org to see if this fixes the box plot issue.

Change 885836 had a related patch set uploaded (by Btullis; author: Btullis):

[analytics/superset/deploy@master] Build new version of superset with pinned numpy version

https://gerrit.wikimedia.org/r/885836

I have made a test deployment of this version to superset-next.

The box plot appears to be working in this version.
https://superset-next.wikimedia.org/superset/dashboard/riskobservatory/?native_filters_key=5ERlzQybzJZw54P22FGPqcO6oLBOOopfcvGHwbVyOI0Xh0MOIIyO56wIFjFjCSn8

@Pablo are you able to confirm this please? If you could check any other dashboards that you routinely use, that would be helpful too.

If it seems OK, I will schedule a deploy to production.

@BTullis I confirm that box plots appear in this version. That was quick, thank you very much!

Great. Thanks for the confirmation. I'll try to deploy to production tomorrow.

Mentioned in SAL (#wikimedia-analytics) [2023-02-02T12:26:10Z] <btullis> deploying the updated build of superset to production T328047

Change 885836 merged by Btullis:

[analytics/superset/deploy@master] Build new version of superset with pinned numpy version

https://gerrit.wikimedia.org/r/885836

BTullis claimed this task.

The graph here looks good to me now: https://superset.wikimedia.org/superset/dashboard/p/PmLB6d2OR0D
I'll resolve the ticket, but please do feel free to reach out if there are any other issues.