jesperbagge opened a new issue, #34557:
URL: https://github.com/apache/superset/issues/34557

   ### Bug description
   
   For docker image tagged `5.0.0` and `5.0.0-dev` I've encountered an issue 
when extending these to include OAuth and ClickHouse drivers. Well, any python 
extending actually breaks.
   
   This isn't obvious until a container is started based on the extended image. 
The extra python modules fails to be imported because they are not found. This 
is because `pip` and `python` is pointing to different environments in these 
images. For reference, the image `4.1.3-dev` has both `pip` and `python` 
pointing to the same environment. The container stops with 
"ModuleNotFoundError: No module named 'authlib'", in my case. I see that this 
error has been spotted in earlier issues as well. Perhaps it is this rogue 
environment that was the culprit back then as well?
   
   `python` is pointing towards a python environment placed in `/app/.venv/` 
that also seems to be first in `PATH`.
   
   A workaround for me to get past this was to remove the `/app/.venv/` when 
extending the docker image.
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   5.0.0
   
   ### Python version
   
   3.10
   
   ### Node version
   
   I don't know
   
   ### Browser
   
   Not applicable
   
   ### Additional context
   
   `ModuleNotFoundError: No module named 'authlib'`
   
   ### Checklist
   
   - [x] 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.
   - [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-unsubscr...@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to