You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "GMTSE (via GitHub)" <gi...@apache.org> on 2024/12/25 16:18:22 UTC

[I] Superset running with Python 3.12 (a.k.a correcting error installing NumPy 1.23) [superset]

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: notifications-unsubscribe@superset.apache.org.apache.org

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


Re: [I] Superset running with Python 3.12 (a.k.a correcting error installing NumPy 1.23) [superset]

Posted by "jr-free (via GitHub)" <gi...@apache.org>.
jr-free commented on issue #31617:
URL: https://github.com/apache/superset/issues/31617#issuecomment-2628310492

   Howdy. Just wanted to chime in to say that I also ran into this issue involving the numpy version and Python3.12 while installing 4.1.1 in WSL. After about an hour or so of struggling, I took the exact same approach as described above and managed to successfully install Superset. Of course, AFTER the fact I had the bright idea to jump on here to check the issues 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: notifications-unsubscribe@superset.apache.org

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


Re: [I] Superset running with Python 3.12 (a.k.a correcting error installing NumPy 1.23) [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #31617:
URL: https://github.com/apache/superset/issues/31617#issuecomment-2920775204

   A new PR is open to address this... it's just awaiting conflict resolution.


-- 
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: notifications-unsubscribe@superset.apache.org

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


Re: [I] Superset running with Python 3.12 (a.k.a correcting error installing NumPy 1.23) [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #31617:
URL: https://github.com/apache/superset/issues/31617#issuecomment-2569850062

   We might close this soon if it's not a bug report, but feel free to open a PR with `Fixes: #31617` in the description if you would like :) 


-- 
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: notifications-unsubscribe@superset.apache.org

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


Re: [I] Superset running with Python 3.12 (a.k.a correcting error installing NumPy 1.23) [superset]

Posted by "vdtoorn (via GitHub)" <gi...@apache.org>.
vdtoorn commented on issue #31617:
URL: https://github.com/apache/superset/issues/31617#issuecomment-2670995628

   Hello, I'm also upgrading to python 3.12, the system can't start up because the 4.1.1 config.py still has an import for 'imp' instead of importlib (in master). I don't know the status of master, but is it known when a next release that is compatible with python 3.12 will be made?


-- 
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: notifications-unsubscribe@superset.apache.org

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


Re: [I] Superset running with Python 3.12 (a.k.a correcting error installing NumPy 1.23) [superset]

Posted by "mistercrunch (via GitHub)" <gi...@apache.org>.
mistercrunch closed issue #31617: Superset running with Python 3.12 (a.k.a correcting error installing NumPy 1.23)
URL: https://github.com/apache/superset/issues/31617


-- 
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: notifications-unsubscribe@superset.apache.org

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


Re: [I] Superset running with Python 3.12 (a.k.a correcting error installing NumPy 1.23) [superset]

Posted by "hainenber (via GitHub)" <gi...@apache.org>.
hainenber commented on issue #31617:
URL: https://github.com/apache/superset/issues/31617#issuecomment-2563768971

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


-- 
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: notifications-unsubscribe@superset.apache.org

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