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

Unable to build with python >3.8 #1

Open
gichumburu opened this issue Nov 29, 2023 · 0 comments
Open

Unable to build with python >3.8 #1

gichumburu opened this issue Nov 29, 2023 · 0 comments

Comments

@gichumburu
Copy link

The Docker file is set to use the latest alpine image

FROM alpine:latest
This however brings build issues as the current python image is > 3.8. Build fails with the below error

_582.9   Building wheel for msgpack (pyproject.toml): started
611.2   Building wheel for msgpack (pyproject.toml): finished with status 'error'
611.7   error: subprocess-exited-with-error
611.7
611.7   × Building wheel for msgpack (pyproject.toml) did not run successfully.
611.7   │ exit code: 1
611.7   ╰─> [38 lines of output]
611.7       running bdist_wheel
611.7       running build
611.7       running build_py
611.7       creating build
611.7       creating build/lib.linux-armv6l-cpython-311
611.7       creating build/lib.linux-armv6l-cpython-311/msgpack
611.7       copying msgpack/__init__.py -> build/lib.linux-armv6l-cpython-311/msgpack
611.7       copying msgpack/ext.py -> build/lib.linux-armv6l-cpython-311/msgpack
611.7       copying msgpack/exceptions.py -> build/lib.linux-armv6l-cpython-311/msgpack
611.7       copying msgpack/fallback.py -> build/lib.linux-armv6l-cpython-311/msgpack
611.7       running egg_info
611.7       writing msgpack.egg-info/PKG-INFO
611.7       writing dependency_links to msgpack.egg-info/dependency_links.txt
611.7       writing top-level names to msgpack.egg-info/top_level.txt
611.7       reading manifest file 'msgpack.egg-info/SOURCES.txt'
611.7       reading manifest template 'MANIFEST.in'
611.7       warning: no files found matching '*.c' under directory 'msgpack'
611.7       adding license file 'COPYING'
611.7       writing manifest file 'msgpack.egg-info/SOURCES.txt'
611.7       copying msgpack/_cmsgpack.cpp -> build/lib.linux-armv6l-cpython-311/msgpack
611.7       copying msgpack/_cmsgpack.pyx -> build/lib.linux-armv6l-cpython-311/msgpack
611.7       copying msgpack/_packer.pyx -> build/lib.linux-armv6l-cpython-311/msgpack
611.7       copying msgpack/_unpacker.pyx -> build/lib.linux-armv6l-cpython-311/msgpack
611.7       copying msgpack/buff_converter.h -> build/lib.linux-armv6l-cpython-311/msgpack
611.7       copying msgpack/pack.h -> build/lib.linux-armv6l-cpython-311/msgpack
611.7       copying msgpack/pack_template.h -> build/lib.linux-armv6l-cpython-311/msgpack
611.7       copying msgpack/sysdep.h -> build/lib.linux-armv6l-cpython-311/msgpack
611.7       copying msgpack/unpack.h -> build/lib.linux-armv6l-cpython-311/msgpack
611.7       copying msgpack/unpack_define.h -> build/lib.linux-armv6l-cpython-311/msgpack
611.7       copying msgpack/unpack_template.h -> build/lib.linux-armv6l-cpython-311/msgpack
611.7       running build_ext
611.7       building 'msgpack._cmsgpack' extension
611.7       creating build/temp.linux-armv6l-cpython-311
611.7       creating build/temp.linux-armv6l-cpython-311/msgpack
611.7       gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I. -I/usr/include/python3.11 -c msgpack/_cmsgpack.cpp -o build/temp.linux-armv6l-cpython-311/msgpack/_cmsgpack.o
611.7       gcc: fatal error: cannot execute 'cc1plus': execvp: No such file or directory
611.7       compilation terminated.
611.7       error: command '/usr/bin/gcc' failed with exit code 1
611.7       [end of output]
611.7
611.7   note: This error originates from a subprocess, and is likely not a problem with pip.
611.7   ERROR: Failed building wheel for msgpack_

Forcing the alpine image to the last supported version of Python lets the build complete

FROM alpine:3.13

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

No branches or pull requests

1 participant