-
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
Cannot install mysql client onto 4.1.0rc2 (pkg-config not found) #30550
Comments
The error you're encountering is due to the absence of FROM apache/superset:4.1.0rc2
USER root
RUN apt-get update && apt-get install -y \
pkg-config \
default-libmysqlclient-dev \
curl links zip unzip basez && \
apt-get purge -y --auto-remove
RUN pip install --upgrade pip --root-user-action && \
pip install --root-user-action \
shillelagh[gsheetsapi] \
gunicorn[gevent] \
pymssql \
elasticsearch-dbapi \
elasticsearch-dbapi[opendistro] \
mysqlclient \
psycopg2 \
trino \
trino[sqlalchemy] \
playwright \
python-ldap \
pip-system-certs
# Custom init
COPY superset_config.py superset-init.sh /app/
USER superset This should resolve the |
I was able to solve it by installing pkg-config, but now I'm getting complaints about missing gcc. I thought this was a different issue from #29727 but apparently it's the same thing. I'm wondering if there needs to be an easier mechanism or guidance for people to install needed database drivers. I can see this being a problem for less experienced people. |
Since the base image is running off Debian 12, I was able to make the following adjustments to my Dockerfile so everything would work without requiring a full compilation environment. I'm still fiddling with it, but this gets past the build errors. Note: I also had to install the distro packages for
|
Final update... I will create a separate ticket for this but the distro-provided python3-ldap does not work, because it is installed for python 3.11, but superset uses 3.10. While I could alter the system to point to 3.11 instead, I'm hesitant to do that since it's not a supported configuration. |
Sounds like we're all set to close this then? Let me know if you think there's anything left to tackle. If you want to add any docs, that'd be encouraged. Indeed we don't yet support 3.11, but we will in time, no doubt. |
I guess, but only because this is a symptom of a bigger problem. |
Bug description
I am trying to create a new docker container using 4.1.0rc2 as a base, and when I try to install the mysql client, I get
pkg-config: not found
. Stack trace is in Additional Content. Below is my docker file. Not sure if this should be pre-packaged with the superset container, or up to the user to install when extending the image?Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.10
Node version
Not applicable
Browser
Not applicable
Additional context
failed to solve: process "/bin/sh -c \tpip install --upgrade pip\n\tpip install \\n\tshillelagh[gsheetsapi] \\n\tgunicorn[gevent] \\n\tpymssql \\n\telasticsearch-dbapi \\n\telasticsearch-dbapi[opendistro] \\n\tmysqlclient \\n\tpsycopg2 \\n\ttrino \\n\ttrino[sqlalchemy] \\n\tplaywright \\n\tpython-ldap \\n\tpip-system-certs \\n\n" did not complete successfully: exit code: 1
Checklist
The text was updated successfully, but these errors were encountered: