smicallef / spiderfoot

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
http://www.spiderfoot.net
MIT License
13.28k stars 2.29k forks source link

Docker installation not succeed #1743

Closed edo-lab closed 1 year ago

edo-lab commented 1 year ago

Hello, I found an issue with installing docker container, and i think is not a problem of my machine

Cloned the repo, i launched in the right directory docker build -t spiderfoot .

and all was fine until i had error

  Building wheels for collected packages: cryptography, pyyaml
  Building wheel for cryptography (pyproject.toml): started
  Building wheel for cryptography (pyproject.toml): finished with status \'error\'
  error: subprocess-exited-with-error

  × Building wheel for cryptography (pyproject.toml) did not run successfully.
  │ exit code: 1

[...]

note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cryptography

[...]

Successfully built pyyaml
Failed to build cryptography
ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects
The command '/bin/sh -c pip3 install -r "$REQUIREMENTS"' returned a non-zero code: 1

Tried to upgrade pip3 and also launched pip3 install --upgrade setuptools wheel

Instead,

Give me error with:

Collecting lxml<5,>=4.9.0
  Using cached lxml-4.9.2.tar.gz (3.7 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]
      Building lxml version 4.9.2.
      Building without Cython.
      Error: Please make sure the libxml2 and libxslt development packages are installed.
      [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.

But i have python3-lxml installed

I really don't know how I can resolve

edo-lab commented 1 year ago

No problem with same version on Windows Docker Desktop

Check it as solved