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

   <!-- Greeting -->
   Hey @LucasRakotomalala! 👋 I'm here to help you with any bugs, questions, or 
contributions you have for the Superset Helmchart. I'm looking forward to 
assisting you with this issue.
   
   <!-- Answer -->
   In Superset version 4.1.1, the `PYTHONPATH` environment variable in the 
Docker image is set to:
   
   ```plaintext
   PYTHONPATH=/app/pythonpath:/app/docker/pythonpath_dev
   ```
   
   This configuration does not include the `/app` directory directly in the 
`PYTHONPATH`, which might be causing the issue you're experiencing with the 
`ModuleNotFoundError` for your custom authentication module 
<sup>[[1]](https://github.com/apache/superset/blob/master/docker/.env)</sup>.
   
   To resolve this, you can modify the `PYTHONPATH` to include `/app` by 
setting an environment variable in your Helm chart configuration. You can do 
this by adding an `env` section in your Helm values file or directly in the 
deployment configuration to append `/app` to the `PYTHONPATH`. Here's an 
example of how you might adjust the `PYTHONPATH`:
   
   ```yaml
   env:
     - name: PYTHONPATH
       value: /app:/app/pythonpath:/app/docker/pythonpath_dev
   ```
   
   This should allow your custom Python files to be recognized by Superset.
   
   
   <!-- 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/566710f8-35b0-4d5d-aa73-835d6c20e2e7?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/566710f8-35b0-4d5d-aa73-835d6c20e2e7?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/566710f8-35b0-4d5d-aa73-835d6c20e2e7?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/566710f8-35b0-4d5d-aa73-835d6c20e2e7?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/566710f8-35b0-4d5d-aa73-835d6c20e2e7?feedback_type=hallucination)
 | 
[Other](https://app.dosu.dev/response-feedback/566710f8-35b0-4d5d-aa73-835d6c20e2e7?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