[GH-ISSUE #344] requirements build failed at brotli #276

Closed
opened 2026-10-13 19:53:40 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @ecLAllanon on GitHub (Jun 7, 2020).
Original GitHub issue: https://github.com/werwolfby/monitorrent/issues/344

pip install -r requirements.txt
for few setups on FreeBSD 12 (in my case it's XigmaNAS) build failed at brotli

Building wheel for brotli (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-w70crtv8/brotli/setup.py'"'"'; file='"'"'/tmp/pip-install-w70crtv8/brotli/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-zb0yjfpm
cwd: /tmp/pip-install-w70crtv8/brotli/
Complete output (16 lines):
running bdist_wheel
running build
running build_py
creating bin
creating bin/lib.freebsd-12.1-RELEASE-p3-amd64-3.7
copying python/brotli.py -> bin/lib.freebsd-12.1-RELEASE-p3-amd64-3.7
running build_ext
building '_brotli' extension
creating bin/temp.freebsd-12.1-RELEASE-p3-amd64-3.7
creating bin/temp.freebsd-12.1-RELEASE-p3-amd64-3.7/c
creating bin/temp.freebsd-12.1-RELEASE-p3-amd64-3.7/c/common
creating bin/temp.freebsd-12.1-RELEASE-p3-amd64-3.7/c/dec
creating bin/temp.freebsd-12.1-RELEASE-p3-amd64-3.7/c/enc
cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -Ic/include -I/usr/local/include/python3.7m -c c/common/dictionary.c -o bin/temp.freebsd-12.1-RELEASE-p3-amd64-3.7/c/common/dictionary.o
unable to execute 'cc': No such file or directory
error: command 'cc' failed with exit status 1


ERROR: Failed building wheel for brotli

SOLUTION
brotli must be installed from binary package:

pkg install py37-brotli

Maybe must be included in readme?

Originally created by @ecLAllanon on GitHub (Jun 7, 2020). Original GitHub issue: https://github.com/werwolfby/monitorrent/issues/344 > pip install -r requirements.txt for few setups on FreeBSD 12 (in my case it's XigmaNAS) build failed at **brotli** > Building wheel for brotli (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-w70crtv8/brotli/setup.py'"'"'; __file__='"'"'/tmp/pip-install-w70crtv8/brotli/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-zb0yjfpm cwd: /tmp/pip-install-w70crtv8/brotli/ Complete output (16 lines): running bdist_wheel running build running build_py creating bin creating bin/lib.freebsd-12.1-RELEASE-p3-amd64-3.7 copying python/brotli.py -> bin/lib.freebsd-12.1-RELEASE-p3-amd64-3.7 running build_ext building '_brotli' extension creating bin/temp.freebsd-12.1-RELEASE-p3-amd64-3.7 creating bin/temp.freebsd-12.1-RELEASE-p3-amd64-3.7/c creating bin/temp.freebsd-12.1-RELEASE-p3-amd64-3.7/c/common creating bin/temp.freebsd-12.1-RELEASE-p3-amd64-3.7/c/dec creating bin/temp.freebsd-12.1-RELEASE-p3-amd64-3.7/c/enc cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -Ic/include -I/usr/local/include/python3.7m -c c/common/dictionary.c -o bin/temp.freebsd-12.1-RELEASE-p3-amd64-3.7/c/common/dictionary.o unable to execute 'cc': No such file or directory error: command 'cc' failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel for brotli **SOLUTION** brotli must be installed from binary package: > pkg install py37-brotli Maybe must be included in readme?
bsakaguchi 2026-10-13 19:53:40 +00:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@werwolfby commented on GitHub (Apr 2, 2023):

Я надеюсь что фриз requirements.txt все пофиксил уже, спасибо.

<!-- gh-comment-id:1493251349 --> @werwolfby commented on GitHub (Apr 2, 2023): Я надеюсь что фриз requirements.txt все пофиксил уже, спасибо.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
werwolfby/monitorrent#276
No description provided.