Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Superset running with Python 3.12 (a.k.a correcting error installing NumPy 1.23) #31617

Open
3 tasks done
GMTSE opened this issue Dec 25, 2024 · 1 comment
Open
3 tasks done
Labels
install:dependencies Installation - Dependencies

Comments

@GMTSE
Copy link

GMTSE commented Dec 25, 2024

Bug description

Hi,

[Not actually a bug report, more a solution to make SuperSet work on Python 3.12]

I tried to install & run Apache SuperSet on my machine.

Since I have Python 3.12 installed, I got an error when pip tried to install NumPy (1.23.5?).

By correcting 2 simple things, I managed to get Apache SuperSet to work with Python 3.12. Might be interesting for some readers, or just for the devs to know what to change to make it work soon on Python 3.12 ;)

  • Got apache-superset-4.1.1.tgz archive from ~/.cache/pip (but I imagine you can get it somewhere else)

    • In apache-superset-4.1.1/pyproject.toml, I changed requirement to numpy==1.26.4
    • Then recompressed the archive
    • Then installed it with pip install ./apache-superset-4.1.1.tgz
  • When running superset, I got an error about import imp, in $PY_VENV/lib/python3.12/site-packages/superset/config.py

So far (just testing the included examples), SuperSet is working like a charm :)

Screenshots/recordings

No response

Superset version

4.1.1

Python version

Not applicable

Node version

Not applicable

Browser

Not applicable

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
@dosubot dosubot bot added the install:dependencies Installation - Dependencies label Dec 25, 2024
@hainenber
Copy link
Contributor

I think that Numpy 1.23.5 would work with Superset at latest master revision :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
install:dependencies Installation - Dependencies
Projects
None yet
Development

No branches or pull requests

2 participants