Skip to content

Fails to install on Python 3.10 because of Numpy dependency #19986

@dat-linux

Description

@dat-linux

How to reproduce the bug

python3.10 -m pip install apache-superset

Expected results

Correct install

Actual results

errors:
see screenshots

Screenshots

VirtualBox_DAT LInux_07_05_2022_14_31_38
VirtualBox_DAT LInux_07_05_2022_14_31_52

Environment

Ubuntu 22.04 with Python 3.10

Checklist

Make sure to follow these steps before submitting your issue - thank you!

  • [y ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • [y ] I have reproduced the issue with at least the latest released version of superset.
  • [ y] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

Not sure why numpy 1.19.4 is being targeted, when the main config file stipulates numpy=1.21.? There must be a conflicting internal dependency via another package during the build stage.

It's potentially pyarrow==5.0.0 causing the problem, as when try to pip install pyarrow=5.0.0 standalone the same problem arises.

This is conmfirmed by the project.toml for pyarrow=5.0.0:

[build-system]
requires = [
    "cython >= 0.29",
    "numpy==1.16.6; python_version<'3.9'",
    "numpy==1.19.4; python_version>='3.9'",
    "setuptools",
    "setuptools_scm",
    "wheel"
]

Recommendation

If possible, Superset's pyarrow dependency should be upgraded to 6.0.0:

[build-system]
requires = [
    "cython >= 0.29",
    "numpy==1.16.6; python_version<'3.9'",
    "numpy==1.19.4; python_version=='3.9'",
    "numpy==1.21.3; python_version>'3.9'",
    "setuptools",
    "setuptools_scm",
    "wheel"
] 

Metadata

Metadata

Assignees

No one assigned

    Labels

    #bugBug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions