Closed cventour closed 5 months ago
Same ^
I had ran into the same issue in RHEL 8.0 and for me the fix was python-devel package e.g., yum install python38-devel
then ran the requirement.txt. Hope this helps
Looking into now.
Same issue anyone solve it?
After researching it seems the donut package does not support ARM CPUs, hence it is not building on a Mac with M series chipset.
As a workaround you can remove donut from the requirements and try to install again.
In my use case, removing donut from the requirements did not have any impact on how I use caldera which is just chaining and automating some activities
After researching it seems the donut package does not support ARM CPUs, hence it is not building on a Mac with M series chipset.
As a workaround you can remove donut from the requirements and try to install again.
In my use case, removing donut from the requirements did not have any impact on how I use caldera which is just chaining and automating some activities
How would you remove donut from the requirements?
Apologies for delayed response.
See https://github.com/mitre/caldera/issues/2873#issuecomment-1939483235.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
Describe the bug Following the instructions to build caldera locally or in a container, I am getting an error while the requirements.txt packages are deployed. More specifically the error is
ERROR: Failed building wheel for donut-shellcode Failed to build donut-shellcode ERROR: Could not build wheels for donut-shellcode, which is required to install pyproject.toml-based projects
To Reproduce Steps to reproduce the behavior:
Expected behavior Deployment of prerequisites should be succesul.
Screenshots ERROR MESSAGE IN DETAIL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 120.0/120.0 kB 11.5 MB/s eta 0:00:00 Downloading sphinxcontrib_devhelp-1.0.5-py3-none-any.whl (83 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 83.5/83.5 kB 5.9 MB/s eta 0:00:00 Downloading sphinxcontrib_qthelp-1.0.6-py3-none-any.whl (89 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 89.4/89.4 kB 7.6 MB/s eta 0:00:00 Downloading certifi-2023.11.17-py3-none-any.whl (162 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.5/162.5 kB 14.9 MB/s eta 0:00:00 Downloading idna-3.6-py3-none-any.whl (61 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.6/61.6 kB 5.3 MB/s eta 0:00:00 Downloading pathspec-0.12.1-py3-none-any.whl (31 kB) Downloading urllib3-2.1.0-py3-none-any.whl (104 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 104.6/104.6 kB 8.8 MB/s eta 0:00:00 Building wheels for collected packages: aiohttp-apispec, donut-shellcode, svglib, scantree Building wheel for aiohttp-apispec (pyproject.toml) ... done Created wheel for aiohttp-apispec: filename=aiohttp_apispec-2.2.3-py3-none-any.whl size=2672621 sha256=a18cd223583685540d7d6f1b5eba0ef57e35389a5d78aaf55a473796b4c24119 Stored in directory: /Users/cventour/Library/Caches/pip/wheels/0c/6f/96/fb5a6f3849333cc9bafd0049b57c2efe59c0ba016de7b370ca Building wheel for donut-shellcode (pyproject.toml) ... error error: subprocess-exited-with-error
× Building wheel for donut-shellcode (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [130 lines of output] running bdist_wheel running build running build_ext building 'donut' extension creating build creating build/temp.macosx-14-arm64-cpython-311 creating build/temp.macosx-14-arm64-cpython-311/loader clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -Iinclude -I/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c donut.c -o build/temp.macosx-14-arm64-cpython-311/donut.o In file included from donut.c:32: In file included from include/donut.h:66: include/pe.h:14:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
include "pshpack4.h" // 4 byte packing is the default
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for donut-shellcode Building wheel for svglib (setup.py) ... done Created wheel for svglib: filename=svglib-1.5.1-py3-none-any.whl size=30903 sha256=0ef7d20df90be99c6476ee6f6bf289fda482e372bfc801d3df454defdfb5a926 Stored in directory: /Users/cventour/Library/Caches/pip/wheels/7e/01/0e/e6e336915d6e8448890a695770ba88fe030cc71060988016f6 Building wheel for scantree (setup.py) ... done Created wheel for scantree: filename=scantree-0.0.1-py3-none-any.whl size=14399 sha256=6792ed9b5ee5925aeadc4617d31ed8a2483b4d00ebbc389af337cfa74bd814ad Stored in directory: /Users/cventour/Library/Caches/pip/wheels/b7/e4/26/d20dc7412cb3cec815e872d4698fb23f8beb8ff767307d935d Successfully built aiohttp-apispec svglib scantree Failed to build donut-shellcode ERROR: Could not build wheels for donut-shellcode, which is required to install pyproject.toml-based projects
Desktop (please complete the following information):
Additional context Add any other context about the problem here.