byt3bl33d3r / CrackMapExec

A swiss army knife for pentesting networks
BSD 2-Clause "Simplified" License
8.29k stars 1.64k forks source link

Installing lxml (4.9.2): Failed #816

Open johnjohnsp1 opened 9 months ago

johnjohnsp1 commented 9 months ago

Hi everyone, trying to install cme but having problem with lxml library

poetry install
Installing dependencies from lock file

Package operations: 25 installs, 0 updates, 0 removals

• Installing lxml (4.9.2): Failed

ChefBuildError

Backend subprocess exited when trying to invoke build_wheel

:117: SyntaxWarning: invalid escape sequence '\.' :67: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html Building lxml version 4.9.2. Building without Cython. Building against libxml2 2.9.4 and libxslt 1.1.29 running bdist_wheel running build running build_py .... fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. Compile failed: command '/usr/bin/clang' failed with exit code 1 creating var creating var/folders creating var/folders/1n creating var/folders/1n/s06fb70120d5fdbkb4fwzll80000gn creating var/folders/1n/s06fb70120d5fdbkb4fwzll80000gn/T cc -I/usr/include/libxml2 -c /var/folders/1n/s06fb70120d5fdbkb4fwzll80000gn/T/xmlXPathInit_0ns6bm0.c -o var/folders/1n/s06fb70120d5fdbkb4fwzll80000gn/T/xmlXPathInit_0ns6bm0.o cc var/folders/1n/s06fb70120d5fdbkb4fwzll80000gn/T/xmlXPathInit_0ns6bm0.o -lxml2 -o a.out error: command '/usr/bin/clang' failed with exit code 1 at /opt/homebrew/Cellar/poetry/1.7.0/libexec/lib/python3.12/site-packages/poetry/installation/chef.py:166 in _prepare 162│ 163│ error = ChefBuildError("\n\n".join(message_parts)) 164│ 165│ if error is not None: → 166│ raise error from None 167│ 168│ return path 169│ 170│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path: Note: This error originates from the build backend, and is likely not a problem with poetry but with lxml (4.9.2) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "lxml (==4.9.2)"'. running on macos M1 with Sonoma 14.1, poetry installed vuw brew at 1.7.0 clang --version ─╯ Apple clang version 15.0.0 (clang-1500.0.40.1) Target: arm64-apple-darwin23.1.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin anyone else got the same problem or its just me ? thanks in advice