ERROR: Service 'web' failed to build : Build failed when running 'docker-compose up --build'
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 621
- Forks
- 128
- PR merge metrics
- No merged PRs in 30d
Description
`Collecting reportlab
Downloading reportlab-3.6.12.tar.gz (4.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 29.1 MB/s eta 0:00:00
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
##### setup-python-3.10.9-linux-x86_64: ================================================
##### setup-python-3.10.9-linux-x86_64: Attempting build of _rl_accel
##### setup-python-3.10.9-linux-x86_64: extensions from 'src/rl_addons/rl_accel'
##### setup-python-3.10.9-linux-x86_64: ================================================
##### setup-python-3.10.9-linux-x86_64: ===================================================
##### setup-python-3.10.9-linux-x86_64: Attempting build of _renderPM
##### setup-python-3.10.9-linux-x86_64: extensions from 'src/rl_addons/renderPM'
##### setup-python-3.10.9-linux-x86_64: ===================================================
##### setup-python-3.10.9-linux-x86_64: will use package libart 2.3.21
!!!!! cannot find ft2build.h
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
The command '/bin/sh -c apk add --no-cache bash bison file jansson jpeg libffi python3 su-exec tini zip zlib && apk add --no-cache -t .build-deps autoconf automake build-base file-dev flex git jansson-dev jpeg-dev libc-dev libffi-dev libtool musl-dev postgresql-dev py3-pip python3-dev zlib-dev && echo "Install ssdeep from source..." && cd /tmp && wget -O /tmp/$SSDEEP.tar.gz https://downloads.sourceforge.net/project/ssdeep/$SSDEEP/$SSDEEP.tar.gz && tar zxvf $SSDEEP.tar.gz && cd $SSDEEP && ./configure && make && make install && echo "Install Yara from source..." && cd /tmp/ && git clone --recursive --branch v$YARA_VERSION https://github.com/VirusTotal/yara.git && cd /tmp/yara && ./bootstrap.sh && sync && ./configure --with-crypto --enable-magic --enable-cuckoo --enable-dotnet && make && make install && echo "Install yara-python..." && cd /tmp/ && git clone --recursive --branch v$YARA_PY_VERSION https://github.com/VirusTotal/yara-python && cd yara-python && python3 setup.py build --dynamic-linking && python3 setup.py install && echo "Downloading yara signatures..." && git clone --depth 1 https://github.com/Yara-Rules/rules.git /opt/multiscanner/etc/yarasigs/Yara-Rules && cd /opt/multiscanner && pip3 install --upgrade pip && pip3 install -r requirements.txt && rm -rf /tmp/* && apk del --purge .build-deps' returned a non-zero code: 1
ERROR: Service 'web' failed to build : Build failed`
any solution to this? =)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with docker-compose up --build and inspect the Docker build command shown in the issue, especially the Alpine build dependencies and requirements.txt installation. Trace the reportlab failure around the missing ft2build.h header, then verify that the web service builds successfully from a clean image.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose, python
- Domain
- build-system, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100