tijme/angularjs-csti-scanner

Encountered error while trying to install package. ╰─> lxml

Opened this issue · 1 comments

Hi, I'm using Kali Linux Release: 2022.4
python --version:
Python 3.10.7

After running the command pip install https://github.com/tijme/angularjs-csti-scanner/archive/master.zip
I'm getting the error:
Compile failed: command '/usr/bin/gcc' failed with exit code 1
cc -I/usr/include/libxml2 -I/usr/include/libxml2 -c /tmp/xmlXPathInit7gbia19y.c -o tmp/xmlXPathInit7gbia19y.o
cc tmp/xmlXPathInit7gbia19y.o -lxml2 -o a.out
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
Rolling back uninstall of lxml
Moving to /home/jetfree/.pyenv/versions/3.10.7/envs/angular_scanner/lib/python3.10/site-packages/lxml-4.9.2.dist-info/
from /home/jetfree/.pyenv/versions/3.10.7/envs/angular_scanner/lib/python3.10/site-packages/~xml-4.9.2.dist-info
Moving to /home/jetfree/.pyenv/versions/3.10.7/envs/angular_scanner/lib/python3.10/site-packages/lxml/
from /home/jetfree/.pyenv/versions/3.10.7/envs/angular_scanner/lib/python3.10/site-packages/~xml
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> lxml

I've installed and updated all needed packages, that could cause this error:
python3-lxml is already the newest version (4.9.2-1+b1).
libxml2-dev is already the newest version (2.9.14+dfsg-1.1+b3).
libxslt1-dev is already the newest version (1.1.35-1).
I've also updated wheel and setuptools packages, but still face this error during installation.
GCC package also installed: gcc is already the newest version (4:12.2.0-3).

Please, help.

Hi!
I had the same error (Kali 2024.1, Python 3.11.9) and solved this problem using miniconda (virtual environment manager) and python3.5:

  1. Download "Miniconda3Linux 64-bit" from vendor web site, run the installation
  2. Create virtual environment (directory for your environment, for example "myenv", will be created automatically) and specify python3.5 as interpreter:
    conda create -n "myenv" python=3.5
  3. Activate your virtual environment:
    conda activate myenv
  4. Run angularjs-csti-scanner installation:
    pip install https://github.com/tijme/angularjs-csti-scanner/archive/master.zip

Hope it will work for you.