smicallef / spiderfoot

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

New pip venv BS #1887

Open hwac121 opened 1 month ago

hwac121 commented 1 month ago

Is there a work around to avoid this new pip venv crap that breaks "pip install -r requirements.txt" installs?

yelrom0 commented 1 month ago

It seems to be an issue with the version of PyYaml, specifically building the binary wheels. If you change the PyYaml version in requirements.txt to the version on the master branch pyyaml>=6.0.0,<7 it will install (at least it did for me).

I haven't had the opportunity to look into it further and test spiderfoot stable thoroughly with this version of pyyaml, I will update accordingly once I do.

DinoDavidRaptor commented 1 month ago

pip install setuptools pip3 install --no-build-isolation "pyyaml==5.4.1" pip install -r requirements.txt

bcoles commented 1 month ago

Is there a work around to avoid this new pip venv crap that breaks "pip install -r requirements.txt" installs?

If you want to use venv rather than work around it:

python3 -m venv venv
./venv/bin/pip3 install -r requirements.txt
./venv/bin/python3 ./sf.py -l 127.0.0.1:5001
DinoDavidRaptor commented 1 month ago

Is there a work around to avoid this new pip venv crap that breaks "pip install -r requirements.txt" installs?

If you want to use venv rather than work around it:

python3 -m venv venv
./venv/bin/pip3 install -r requirements.txt
./venv/bin/python3 ./sf.py -l 127.0.0.1:5001

The problem doesn't has nothing to do with the environment, it's the PyYAML module, so even if you try to install it through a virtual environment it will still being the same problem.