-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/app
is missing in PYTHONPATH
in container image
#31497
Comments
/app
is missing in PYTHONPATH
/app
is missing in PYTHONPATH
/app
is missing in PYTHONPATH
/app
is missing in PYTHONPATH
in container image
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. In Superset version 4.1.1, the
This configuration does not include the To resolve this, you can modify the env:
- name: PYTHONPATH
value: /app:/app/pythonpath:/app/docker/pythonpath_dev This should allow your custom Python files to be recognized by Superset. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
@dosu Why |
The default To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
@dosu Could you please provide me some code example to add |
To extend the current Docker image and add FROM apache/superset:4.1.1
# Add /app to PYTHONPATH
ENV PYTHONPATH="/app:${PYTHONPATH}" Alternatively, if you're using a services:
superset:
image: apache/superset:4.1.1
environment:
- PYTHONPATH=/app:${PYTHONPATH}
# other configurations... These changes will ensure that To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Bug description
I am using Superset through the Helmchart from this repository.
When I mount something under
extraConfigMountPath
(with the default value/app/configs
), Python files cannot be used insuperset_config.py
since/app
folder is missing fromPYTHONPATH
.I use it to provide Python files for SSO authentication, to avoid using
Flask-OIDC
.In Superset 4.0.2 however
/app
folder was part ofPYTHONPATH
.Screenshots/recordings
N/A
Superset version
4.1.1
Python version
3.10
Node version
Not applicable
Browser
Not applicable
Additional context
Here is the trace I got from Superset Init DB job:
Checklist
The text was updated successfully, but these errors were encountered: