WibowoS26 opened a new issue, #33225: URL: https://github.com/apache/superset/issues/33225
### Bug description I was trying Superset 5.0.0-rc2 on WSL while connecting to a MySQL database, but the MySQL database option was not available in the selection list and trying to manually add mysqlclient from requirements-local.txt but ended as exited,looking at the Docker Compose logs, the issue stems from `uv` failing to build `mysqlclient`. ### Screenshots/recordings _No response_ ### Superset version master / latest-dev ### Python version 3.9 ### Node version 16 ### Browser Chrome ### Additional context superset_init | Reinstalling the app in editable mode superset_init | Resolved 149 packages in 1.24s superset_init | Building apache-superset @ file:///app superset_init | Built apache-superset @ file:///app superset_init | Prepared 1 package in 1.45s superset_init | Uninstalled 1 package in 0.61ms superset_init | warning: Failed to hardlink files; falling back to full copy. This may lead to degraded performance. superset_init | If the cache and target directories are on different filesystems, hardlinking may not be supported. superset_init | If this is intentional, set `export UV_LINK_MODE=copy` or use `--link-mode=copy` to suppress this warning. superset_init | Installed 1 package in 1ms superset_init | ~ apache-superset==5.0.0 (from file:///app) superset_init | Installing postgres requirements superset_init | Resolved 150 packages in 1.18s superset_init | Building apache-superset @ file:///app superset_init | Built apache-superset @ file:///app superset_init | Prepared 1 package in 1.44s superset_init | Uninstalled 1 package in 0.73ms superset_init | warning: Failed to hardlink files; falling back to full copy. This may lead to degraded performance. superset_init | If the cache and target directories are on different filesystems, hardlinking may not be supported. superset_init | If this is intentional, set `export UV_LINK_MODE=copy` or use `--link-mode=copy` to suppress this warning. superset_init | Installed 1 package in 1ms superset_init | ~ apache-superset==5.0.0 (from file:///app) superset_init | Installing local overrides at /app/docker/requirements-local.txt superset_init | Resolved 1 package in 693ms superset_init | Building mysqlclient==2.2.7 superset_init | × Failed to build `mysqlclient==2.2.7` superset_init | ├─▶ The build backend returned an error superset_init | ╰─▶ Call to `setuptools.build_meta.build_wheel` failed (exit status: 1) superset_init | superset_init | [stdout] superset_init | Trying pkg-config --exists mysqlclient superset_init | Command 'pkg-config --exists mysqlclient' returned non-zero exit status superset_init | 127. superset_init | Trying pkg-config --exists mariadb superset_init | Command 'pkg-config --exists mariadb' returned non-zero exit status 127. superset_init | Trying pkg-config --exists libmariadb superset_init | Command 'pkg-config --exists libmariadb' returned non-zero exit status superset_init | 127. superset_init | Trying pkg-config --exists perconaserverclient superset_init | Command 'pkg-config --exists perconaserverclient' returned non-zero exit superset_init | status 127. superset_init | superset_init | [stderr] superset_init | /bin/sh: 1: pkg-config: not found superset_init | /bin/sh: 1: pkg-config: not found superset_init | /bin/sh: 1: pkg-config: not found superset_init | /bin/sh: 1: pkg-config: not found superset_init | Traceback (most recent call last): superset_init | File "<string>", line 14, in <module> superset_init | File superset_init | "/tmp/.tmpF1jJXV/builds-v0/.tmpbUFA86/lib/python3.10/site-packages/setuptools/build_meta.py", superset_init | line 331, in get_requires_for_build_wheel superset_init | return self._get_build_requires(config_settings, requirements=[]) superset_init | File superset_init | "/tmp/.tmpF1jJXV/builds-v0/.tmpbUFA86/lib/python3.10/site-packages/setuptools/build_meta.py", superset_init | line 301, in _get_build_requires superset_init | self.run_setup() superset_init | File superset_init | "/tmp/.tmpF1jJXV/builds-v0/.tmpbUFA86/lib/python3.10/site-packages/setuptools/build_meta.py", superset_init | line 317, in run_setup superset_init | exec(code, locals()) superset_init | File "<string>", line 156, in <module> superset_init | File "<string>", line 49, in get_config_posix superset_init | File "<string>", line 28, in find_package_name superset_init | Exception: Can not find valid pkg-config name. superset_init | Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually superset_init | superset_init | hint: This usually indicates a problem with the package or the build superset_init | environment. superset_init exited with code 1 Gracefully stopping... (press Ctrl+C again to force) service "superset-init" didn't complete successfully: exit 1 ### 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: [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]
