-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Dependency installation issue in 5.0.0rc2 #33241
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
Comments
To resolve the "No module named 'MySQLdb'" error when upgrading to Superset version 5.0.0rc2 using the official Docker image, you can follow these steps:
Additionally, the use of if command -v uv > /dev/null 2>&1; then
uv pip install --no-cache-dir -r "${REQUIREMENTS_LOCAL}"
else
pip install --no-cache-dir -r "${REQUIREMENTS_LOCAL}"
fi These steps should help ensure that the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Relates to #33225 |
Use |
@mistercrunch As I mentioned, If I try to use uv as superset user It throws permission error. I'm able to use it only as root user. I believe this is not the expected behaviour. |
Bug description
I'm trying testing 5.0.0rc2 while currently using version 4.1.2. We utilize the official Docker image and install dependencies as the superset user in the Dockerfile as shown below.
My Docker image works with version 4.1.2, but running a DB upgrade on 5.0.0rc2 throws the following error.
Although mysqlclient seem installed with
pip freeze
, the superset user cannot access it.I noticed the repository now uses uv. When I tried installing it via uv, a permission error occurred. Installing it as the root user resolved the issue.
@mistercrunch, I was advised to tag you since you migrated the image to uv.
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.10
Node version
16
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: