Skip to content
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

fix: Install python3 executable for node-gyp #8998

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

mcheshkov
Copy link
Member

Description of Changes Made (if issue reference is not provided)

By default node-gyp looks only for python and python3 executables, and python3.11 package installs only python3.11 That leads to failure during installation optional dependency java from NPM even in -jdk image

Without python3 executable java fails during installation, and because it is marked optional, installation is successful.
But later, at runtime any JDBC driver would fail with Cannot find module 'java', even in image with JDK installed.

This PR installs python3 executable, as expected by node-gyp, but there are alternative aproaches:

local.Dockerfile and testing-drivers.Dockerfile were not affected because they both had python3 package installed before running yarn install.

@mcheshkov mcheshkov marked this pull request as ready for review November 27, 2024 13:01
@mcheshkov mcheshkov requested a review from a team as a code owner November 27, 2024 13:01
@mcheshkov mcheshkov force-pushed the container-image-yarn-missing-python branch from bd817dd to 03f8b6c Compare November 27, 2024 14:01
Copy link

vercel bot commented Nov 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-angular-dashboard ⬜️ Ignored (Inspect) Visit Preview Nov 27, 2024 2:03pm
examples-react-d3 ⬜️ Ignored (Inspect) Visit Preview Nov 27, 2024 2:03pm
examples-react-dashboard ⬜️ Ignored (Inspect) Visit Preview Nov 27, 2024 2:03pm
examples-react-data-table ⬜️ Ignored (Inspect) Visit Preview Nov 27, 2024 2:03pm
examples-react-highcharts ⬜️ Ignored (Inspect) Visit Preview Nov 27, 2024 2:03pm
examples-react-material-ui ⬜️ Ignored (Inspect) Visit Preview Nov 27, 2024 2:03pm
examples-react-pivot-table ⬜️ Ignored (Inspect) Visit Preview Nov 27, 2024 2:03pm
examples-vue-query-builder ⬜️ Ignored (Inspect) Visit Preview Nov 27, 2024 2:03pm

@mcheshkov mcheshkov force-pushed the container-image-yarn-missing-python branch from 03f8b6c to 3028305 Compare December 20, 2024 11:55
@mcheshkov mcheshkov force-pushed the container-image-yarn-missing-python branch from 3028305 to 58f4467 Compare January 14, 2025 19:30
By default node-gyp looks only for `python` and `python3` executables, and python3.11 package installs only `python3.11`
That leads to failure during installation optional dependency `java` from NPM even in `-jdk` image
@mcheshkov mcheshkov force-pushed the container-image-yarn-missing-python branch from 58f4467 to 056cd32 Compare January 16, 2025 13:15
@mcheshkov mcheshkov merged commit 9700dc8 into master Jan 16, 2025
31 checks passed
@mcheshkov mcheshkov deleted the container-image-yarn-missing-python branch January 16, 2025 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant