-
Notifications
You must be signed in to change notification settings - Fork 3
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
Need to install pkg-config apt package in all IDAs that use Python mysqlclient #349
Closed
20 of 27 tasks
Labels
Comments
This was referenced Jul 6, 2023
This was referenced Jul 6, 2023
6 tasks
MichaelRoytman
added a commit
to edx/edx-exams
that referenced
this issue
Jul 6, 2023
Repositiories that depend on mysqlclient>=2.2.0 will need to install the package pkg-config in their Dockerfile: PyMySQL/mysqlclient#620. This commit installs the pkg-config package in the Dockerfile. If this is missing, then pip install of mysqlclient fails with an error that includes the following: Exception: Can not find valid pkg-config name. Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually See edx/edx-arch-experiments#349.
MichaelRoytman
added a commit
to edx/portal-designer
that referenced
this issue
Jul 6, 2023
Repositiories that depend on mysqlclient>=2.2.0 will need to install the package pkg-config in their Dockerfile: PyMySQL/mysqlclient#620. This commit installs the pkg-config package in the Dockerfile. If this is missing, then pip install of mysqlclient fails with an error that includes the following: Exception: Can not find valid pkg-config name. Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually See edx/edx-arch-experiments#349.
MichaelRoytman
added a commit
to openedx-unsupported/edx-analytics-dashboard
that referenced
this issue
Jul 6, 2023
Repositiories that depend on mysqlclient>=2.2.0 will need to install the package pkg-config in their Dockerfile: PyMySQL/mysqlclient#620. This commit installs the pkg-config package in the Dockerfile. If this is missing, then pip install of mysqlclient fails with an error that includes the following: Exception: Can not find valid pkg-config name. Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually See edx/edx-arch-experiments#349.
MichaelRoytman
added a commit
to edx/program-intent-engagement
that referenced
this issue
Jul 6, 2023
Repositiories that depend on mysqlclient>=2.2.0 will need to install the package pkg-config in their Dockerfile: PyMySQL/mysqlclient#620. This commit installs the pkg-config package in the Dockerfile. If this is missing, then pip install of mysqlclient fails with an error that includes the following: Exception: Can not find valid pkg-config name. Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually See edx/edx-arch-experiments#349.
MichaelRoytman
added a commit
to openedx-unsupported/edx-analytics-data-api
that referenced
this issue
Jul 6, 2023
Repositiories that depend on mysqlclient>=2.2.0 will need to install the package pkg-config in their Dockerfile: PyMySQL/mysqlclient#620. This commit installs the pkg-config package in the Dockerfile. If this is missing, then pip install of mysqlclient fails with an error that includes the following: Exception: Can not find valid pkg-config name. Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually See edx/edx-arch-experiments#349.
This was referenced Jul 6, 2023
grmartin
added a commit
to edx/commerce-coordinator
that referenced
this issue
Jul 7, 2023
This is to future proof the update of mysql client in future releases. See: edx/edx-arch-experiments#349
grmartin
added a commit
to openedx/ecommerce
that referenced
this issue
Jul 7, 2023
This is to future proof the update of mysql client in future releases. See: edx/edx-arch-experiments#349
This was referenced Jul 7, 2023
grmartin
added a commit
to openedx/ecommerce
that referenced
this issue
Jul 7, 2023
This is to future proof the update of mysql client in future releases. See: edx/edx-arch-experiments#349
I've updated the Cosmonauts Dockerfiles and checked off the associated checkboxes above. Thank you! |
Closing on the grounds that we have told everyone about the necessary changes and merged all the PRs we are responsible for creating. |
2 tasks
grmartin
added a commit
to edx/commerce-coordinator
that referenced
this issue
Sep 5, 2023
* chore: `pkg-config` added to Docker File + PIP Reqs This is to future proof the update of mysql client in future releases. See: edx/edx-arch-experiments#349 * fix: Docker Compose issues * fix: Bringing all pip req.s in line with those used by the code in `2u/project-theseus` * fix: make upgrade on Py3.8 This is a guess, but since im upgrading the requirements locally, and i rebuilt my venv... It swapped Python versions to 3.10 instead of 3.8 (the target of our other tooling)... ``` brew install [email protected] python3.8 -m venv .venv . .venv/bin/activate make upgrade ```
grmartin
added a commit
to edx/commerce-coordinator
that referenced
this issue
Sep 5, 2023
* chore: `pkg-config` added to Docker File + PIP Reqs This is to future proof the update of mysql client in future releases. See: edx/edx-arch-experiments#349 * fix: Docker Compose issues * fix: Bringing all pip req.s in line with those used by the code in `2u/project-theseus` * fix: make upgrade on Py3.8 This is a guess, but since im upgrading the requirements locally, and i rebuilt my venv... It swapped Python versions to 3.10 instead of 3.8 (the target of our other tooling)... ``` brew install [email protected] python3.8 -m venv .venv . .venv/bin/activate make upgrade ``` This is based on PR #95
grmartin
added a commit
to edx/commerce-coordinator
that referenced
this issue
Sep 5, 2023
* chore: `pkg-config` added to Docker File + PIP Reqs This is to future proof the update of mysql client in future releases. See: edx/edx-arch-experiments#349 * fix: Docker Compose issues * fix: Bringing all pip req.s in line with those used by the code in `2u/project-theseus` * fix: make upgrade on Py3.8 This is a guess, but since im upgrading the requirements locally, and i rebuilt my venv... It swapped Python versions to 3.10 instead of 3.8 (the target of our other tooling)... ``` brew install [email protected] python3.8 -m venv .venv . .venv/bin/activate make upgrade ``` This is based on PR #95
grmartin
added a commit
to edx/commerce-coordinator
that referenced
this issue
Sep 5, 2023
* chore: `pkg-config` added to Docker File + PIP Reqs This is to future proof the update of mysql client in future releases. See: edx/edx-arch-experiments#349 * fix: Docker Compose issues * fix: Bringing all pip req.s in line with those used by the code in `2u/project-theseus` * fix: make upgrade on Py3.8 This is a guess, but since im upgrading the requirements locally, and i rebuilt my venv... It swapped Python versions to 3.10 instead of 3.8 (the target of our other tooling)... ``` brew install [email protected] python3.8 -m venv .venv . .venv/bin/activate make upgrade ``` This is based on PR #95
pshiu
pushed a commit
to edx/commerce-coordinator
that referenced
this issue
Sep 7, 2023
* chore: `pkg-config` added to Docker File + PIP Reqs This is to future proof the update of mysql client in future releases. See: edx/edx-arch-experiments#349 * fix: Docker Compose issues * fix: Bringing all pip req.s in line with those used by the code in `2u/project-theseus` * fix: make upgrade on Py3.8 This is a guess, but since im upgrading the requirements locally, and i rebuilt my venv... It swapped Python versions to 3.10 instead of 3.8 (the target of our other tooling)... ``` brew install [email protected] python3.8 -m venv .venv . .venv/bin/activate make upgrade ``` This is based on PR #95
pshiu
pushed a commit
to edx/commerce-coordinator
that referenced
this issue
Sep 7, 2023
* chore: `pkg-config` added to Docker File + PIP Reqs This is to future proof the update of mysql client in future releases. See: edx/edx-arch-experiments#349 * fix: Docker Compose issues * fix: Bringing all pip req.s in line with those used by the code in `2u/project-theseus` * fix: make upgrade on Py3.8 This is a guess, but since im upgrading the requirements locally, and i rebuilt my venv... It swapped Python versions to 3.10 instead of 3.8 (the target of our other tooling)... ``` brew install [email protected] python3.8 -m venv .venv . .venv/bin/activate make upgrade ``` This is based on PR #95
pshiu
pushed a commit
to edx/commerce-coordinator
that referenced
this issue
Dec 11, 2023
* chore: `pkg-config` added to Docker File + PIP Reqs This is to future proof the update of mysql client in future releases. See: edx/edx-arch-experiments#349 * fix: Docker Compose issues * fix: Bringing all pip req.s in line with those used by the code in `2u/project-theseus` * fix: make upgrade on Py3.8 This is a guess, but since im upgrading the requirements locally, and i rebuilt my venv... It swapped Python versions to 3.10 instead of 3.8 (the target of our other tooling)... ``` brew install [email protected] python3.8 -m venv .venv . .venv/bin/activate make upgrade ``` This is based on PR #95
pshiu
pushed a commit
to edx/commerce-coordinator
that referenced
this issue
Dec 11, 2023
* chore: `pkg-config` added to Docker File + PIP Reqs This is to future proof the update of mysql client in future releases. See: edx/edx-arch-experiments#349 * fix: Docker Compose issues * fix: Bringing all pip req.s in line with those used by the code in `2u/project-theseus` * fix: make upgrade on Py3.8 This is a guess, but since im upgrading the requirements locally, and i rebuilt my venv... It swapped Python versions to 3.10 instead of 3.8 (the target of our other tooling)... ``` brew install [email protected] python3.8 -m venv .venv . .venv/bin/activate make upgrade ``` This is based on PR #95
pshiu
pushed a commit
to edx/commerce-coordinator
that referenced
this issue
Dec 11, 2023
* chore: `pkg-config` added to Docker File + PIP Reqs This is to future proof the update of mysql client in future releases. See: edx/edx-arch-experiments#349 * fix: Docker Compose issues * fix: Bringing all pip req.s in line with those used by the code in `2u/project-theseus` * fix: make upgrade on Py3.8 This is a guess, but since im upgrading the requirements locally, and i rebuilt my venv... It swapped Python versions to 3.10 instead of 3.8 (the target of our other tooling)... ``` brew install [email protected] python3.8 -m venv .venv . .venv/bin/activate make upgrade ``` This is based on PR #95
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Symptom
Repos that depend on mysqlclient>=2.2.0 will need to install the package
pkg-config
in their Dockerfile: PyMySQL/mysqlclient#620If this is missing, then pip install of mysqlclient fails with an error that includes the following:
Fix
pkg-config
in the list of packages installed by apt# mysqlclient>=2.2.0 requires pkg-config
to explain the additiontzdata
as a new system dependency, and tzdata requests manual configuration, you may need to includeDEBIAN_FRONTEND=noninteractive
at the front of the apt install line in order to not have docker image building hang. (It's possible that--no-install-recommends
would suffice, if missing, but no harm in using both.)So, that part of your Dockerfile may end up looking something like:
Affected repos
For reference, the following repos have Dockerfiles that reference
libmysqlclient-dev
, another known apt package dependency for the mysqlclient Python dep (broken out by 2U ownership):cookiecutter-django-ida/{{cookiecutter.repo_name}}/Dockerfile
): Issuetests/fake_repos/python_repo/Dockerfile
): Issuedocker/Dockerfile
)gocd-agents/Dockerfile
) PRThe text was updated successfully, but these errors were encountered: