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

Install gcc as part of docker build #102

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bkowshik
Copy link

Error

Running docker compose build failed with the following error locally.

$ docker compose build

67.05 Building wheels for collected packages: great-expectations, minimal-snowplow-tracker, logbook, parsedatetime, backports.zoneinfo
67.06   Building wheel for great-expectations (setup.py): started
67.37   Building wheel for great-expectations (setup.py): finished with status 'done'
67.38   Created wheel for great-expectations: filename=great_expectations-0.12.10-py3-none-any.whl size=4239493 sha256=60f580d364aa18ed3262d6aeffc747d86591526f5b688b134df40818abcd1c9f
67.38   Stored in directory: /root/.cache/pip/wheels/f6/ca/69/b67e031b9c4332034d0ba4638831138ae9032180cb5a33d73b
67.38   Building wheel for minimal-snowplow-tracker (setup.py): started
67.47   Building wheel for minimal-snowplow-tracker (setup.py): finished with status 'done'
67.47   Created wheel for minimal-snowplow-tracker: filename=minimal_snowplow_tracker-0.0.2-py3-none-any.whl size=17797 sha256=0c9fb3e1fe3cec73c6be2b73ac7161d1856b7287585eb8f7c20a1b4424f69c7e
67.47   Stored in directory: /root/.cache/pip/wheels/d4/04/77/72a8c17c9c19691be497bb4e192bd760aff6d47fa959d184e8
67.47   Building wheel for logbook (setup.py): started
67.59   Building wheel for logbook (setup.py): finished with status 'done'
67.59   Created wheel for logbook: filename=Logbook-1.5.3-cp38-cp38-linux_aarch64.whl size=65608 sha256=80e7edab44dd42bb812e20b4f94405a5bc571e68a396d4c566c7b089d3033ffa
67.59   Stored in directory: /root/.cache/pip/wheels/25/9a/c0/03bf368ac5f673e9c0bde58837146b004424b25555ca3aedfb
67.59   Building wheel for parsedatetime (setup.py): started
67.69   Building wheel for parsedatetime (setup.py): finished with status 'done'
67.69   Created wheel for parsedatetime: filename=parsedatetime-2.4-py3-none-any.whl size=42773 sha256=59d8b1f0f6f4bf8157bf3aa5bef991c9f4a6edd8f43cc9068b2c8d95d68f9a64
67.69   Stored in directory: /root/.cache/pip/wheels/e5/2b/42/2b5388ce43276783c42176a76229c21f74e4433a8e2a0daae6
67.70   Building wheel for backports.zoneinfo (pyproject.toml): started
67.80   Building wheel for backports.zoneinfo (pyproject.toml): finished with status 'error'
67.80   error: subprocess-exited-with-error
67.80
67.80   × Building wheel for backports.zoneinfo (pyproject.toml) did not run successfully.
67.80   │ exit code: 1
67.80   ╰─> [32 lines of output]
67.80       running bdist_wheel
67.80       running build
67.80       running build_py
67.80       creating build/lib.linux-aarch64-cpython-38/backports
67.80       copying src/backports/__init__.py -> build/lib.linux-aarch64-cpython-38/backports
67.80       creating build/lib.linux-aarch64-cpython-38/backports/zoneinfo
67.80       copying src/backports/zoneinfo/__init__.py -> build/lib.linux-aarch64-cpython-38/backports/zoneinfo
67.80       copying src/backports/zoneinfo/_zoneinfo.py -> build/lib.linux-aarch64-cpython-38/backports/zoneinfo
67.80       copying src/backports/zoneinfo/_common.py -> build/lib.linux-aarch64-cpython-38/backports/zoneinfo
67.80       copying src/backports/zoneinfo/_tzpath.py -> build/lib.linux-aarch64-cpython-38/backports/zoneinfo
67.80       copying src/backports/zoneinfo/_version.py -> build/lib.linux-aarch64-cpython-38/backports/zoneinfo
67.80       running egg_info
67.80       writing src/backports.zoneinfo.egg-info/PKG-INFO
67.80       writing dependency_links to src/backports.zoneinfo.egg-info/dependency_links.txt
67.80       writing requirements to src/backports.zoneinfo.egg-info/requires.txt
67.80       writing top-level names to src/backports.zoneinfo.egg-info/top_level.txt
67.80       reading manifest file 'src/backports.zoneinfo.egg-info/SOURCES.txt'
67.80       reading manifest template 'MANIFEST.in'
67.80       warning: no files found matching '*.png' under directory 'docs'
67.80       warning: no files found matching '*.svg' under directory 'docs'
67.80       no previously-included directories found matching 'docs/_build'
67.80       no previously-included directories found matching 'docs/_output'
67.80       adding license file 'LICENSE'
67.80       adding license file 'licenses/LICENSE_APACHE'
67.80       writing manifest file 'src/backports.zoneinfo.egg-info/SOURCES.txt'
67.80       copying src/backports/zoneinfo/__init__.pyi -> build/lib.linux-aarch64-cpython-38/backports/zoneinfo
67.80       copying src/backports/zoneinfo/py.typed -> build/lib.linux-aarch64-cpython-38/backports/zoneinfo
67.80       running build_ext
67.80       building 'backports.zoneinfo._czoneinfo' extension
67.80       creating build/temp.linux-aarch64-cpython-38/lib
67.80       gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.8 -c lib/zoneinfo_module.c -o build/temp.linux-aarch64-cpython-38/lib/zoneinfo_module.o -std=c99
67.80       error: command 'gcc' failed: No such file or directory
67.80       [end of output]
67.80
67.80   note: This error originates from a subprocess, and is likely not a problem with pip.
67.80   ERROR: Failed building wheel for backports.zoneinfo

Fix

Added installation of gcc to Dockerfile and rebuilt the Docker container.

$ docker compose build

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