GMTSE opened a new issue, #31617:
URL: https://github.com/apache/superset/issues/31617
### 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`
- Following advice in
https://github.com/BradenM/micropy-cli/issues/575#issuecomment-2512391747
- I replaced `import imp` with `import importlib as imp`
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
- [X] I have searched Superset docs and Slack and didn't find a solution to
my problem.
- [X] I have searched the GitHub issue tracker and didn't find a similar bug
report.
- [X] 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.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]