https://linen.dev logo
m

Martin Larsson

10/02/2021, 9:11 PM
Hi! Im trying to create a docker image for my simple api connector following instructions from this page. I get the following error message when building the image:
Copy code
9 38.65   running build_ext
#9 38.65   building 'multidict._multidict' extension
#9 38.65   creating build/temp.linux-x86_64-3.7
#9 38.65   creating build/temp.linux-x86_64-3.7/multidict
#9 38.65   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/local/include/python3.7m -c multidict/_multidict.c -o build/temp.linux-x86_64-3.7/multidict/_multidict.o -O2 -std=c99 -Wall -Wsign-compare -Wconversion -fno-strict-aliasing -pedantic
#9 38.65   error: command 'gcc' failed with exit status 1
#9 38.65   ----------------------------------------
#9 38.66   ERROR: Failed building wheel for multidict
#9 38.66 Successfully built source-provet pyrsistent PyYAML wrapt pendulum
#9 38.66 Failed to build yarl multidict
#9 38.66 ERROR: Could not build wheels for yarl, multidict which use PEP 517 and cannot be installed directly
------
executor failed running [/bin/sh -c pip install --prefix=/install .]: exit code: 1
I am running on a mac which points python by default to 2.7. If I run python I use python3 and pip3. Can that be the problem here?
u

user

10/02/2021, 9:14 PM
I tried running
docker build . -t airbyte/source-provet:dev
inside my virtual environment but got the same result
u

user

10/02/2021, 10:35 PM
@Martin Larsson can you try adding build-base like this PR does to a few docker images https://github.com/airbytehq/airbyte/pull/6457/files
5 Views