dosubot[bot] commented on issue #31497:
URL: https://github.com/apache/superset/issues/31497#issuecomment-2548311525

   <!-- Answer -->
   The default `PYTHONPATH` configuration in the Dockerfile for Superset 
version 4.0.2 included `/app` as part of the path, which allowed modules in 
that directory to be recognized without additional configuration 
<sup>[[1]](https://github.com/apache/superset/blob/master/Dockerfile)</sup><sup>[[2]](https://github.com/apache/superset/blob/master/docker/.env)</sup>.
 However, in version 4.1.1, the `PYTHONPATH` was changed to exclude `/app`, 
which is why you're experiencing the `ModuleNotFoundError` for your custom 
modules. Unfortunately, I couldn't find specific documentation or changelog 
entries explaining the rationale behind this change.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   
   ---
   <sup>Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/50098d53-b998-4a6c-910b-4f1d58c3fd6c?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/50098d53-b998-4a6c-910b-4f1d58c3fd6c?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/50098d53-b998-4a6c-910b-4f1d58c3fd6c?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/50098d53-b998-4a6c-910b-4f1d58c3fd6c?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/50098d53-b998-4a6c-910b-4f1d58c3fd6c?feedback_type=hallucination)
 | 
[Other](https://app.dosu.dev/response-feedback/50098d53-b998-4a6c-910b-4f1d58c3fd6c?feedback_type=other)</sup>
   


-- 
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]

Reply via email to