Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spider foot installation subprocess error #1906

Open
ajiam812 opened this issue Jan 1, 2025 · 2 comments
Open

spider foot installation subprocess error #1906

ajiam812 opened this issue Jan 1, 2025 · 2 comments

Comments

@ajiam812
Copy link

ajiam812 commented Jan 1, 2025

Please provide a description of the issue and any relevant error messages.[~/spiderfoot-4.0]
└─$ pip3 install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: adblockparser<1,>=0.7 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 1)) (0.7)
Requirement already satisfied: dnspython<3,>=2.1.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 2)) (2.6.1)
Collecting ExifRead<3,>=2.3.2 (from -r requirements.txt (line 3))
Using cached ExifRead-2.3.2-py3-none-any.whl.metadata (6.2 kB)
Requirement already satisfied: CherryPy<19,>=18.6.1 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 4)) (18.9.0)
Requirement already satisfied: cherrypy-cors<2,>=1.6 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 5)) (1.6)
Requirement already satisfied: Mako<2,>=1.1.5 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 6)) (1.3.5.dev0)
Requirement already satisfied: beautifulsoup4<5,>=4.10.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 7)) (4.12.3)
Collecting lxml<5,>=4.6.3 (from -r requirements.txt (line 8))
Using cached lxml-4.9.4-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_24_i686.whl.metadata (3.7 kB)
Requirement already satisfied: netaddr<1,>=0.8.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 9)) (0.10.1)
Requirement already satisfied: pysocks<2,>=1.7.1 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 10)) (1.7.1)
Requirement already satisfied: requests<3,>=2.26.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 11)) (2.31.0)
Collecting ipwhois<1.2.0,>=1.1.0 (from -r requirements.txt (line 12))
Using cached ipwhois-1.1.0-py2.py3-none-any.whl.metadata (19 kB)
Collecting ipaddr<3,>=2.2.0 (from -r requirements.txt (line 13))
Using cached ipaddr-2.2.0-py3-none-any.whl
Requirement already satisfied: phonenumbers<9,>=8.12.34 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 14)) (8.12.57)
Requirement already satisfied: pygexf<0.3,>=0.2.2 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 15)) (0.2.2)
Collecting PyPDF2<2,>=1.26.0 (from -r requirements.txt (line 16))
Using cached PyPDF2-1.28.6-py3-none-any.whl.metadata (5.3 kB)
Collecting python-whois<0.8,>=0.7.3 (from -r requirements.txt (line 17))
Using cached python_whois-0.7.3-py3-none-any.whl
Requirement already satisfied: secure<0.4.0,>=0.3.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 18)) (0.3.0)
Collecting pyOpenSSL<22,>=21.0.0 (from -r requirements.txt (line 19))
Using cached pyOpenSSL-21.0.0-py2.py3-none-any.whl.metadata (7.4 kB)
Collecting python-docx<0.9,>=0.8.11 (from -r requirements.txt (line 20))
Using cached python_docx-0.8.11-py3-none-any.whl
Collecting python-pptx<0.7,>=0.6.21 (from -r requirements.txt (line 21))
Using cached python_pptx-0.6.23-py3-none-any.whl.metadata (18 kB)
Collecting networkx<2.7,>=2.6.3 (from -r requirements.txt (line 22))
Using cached networkx-2.6.3-py3-none-any.whl.metadata (5.0 kB)
Collecting cryptography<4,>=3.4.8 (from -r requirements.txt (line 23))
Using cached cryptography-3.4.8.tar.gz (546 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting publicsuffixlist<0.8,>=0.7.9 (from -r requirements.txt (line 24))
Using cached publicsuffixlist-0.7.14-py2.py3-none-any.whl.metadata (4.5 kB)
Requirement already satisfied: openpyxl<4,>=3.0.9 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 25)) (3.1.5)
Collecting pyyaml<6,>=5.4.1 (from -r requirements.txt (line 26))
Using cached PyYAML-5.4.1.tar.gz (175 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [54 lines of output]
running egg_info
writing lib3/PyYAML.egg-info/PKG-INFO
writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
writing top-level names to lib3/PyYAML.egg-info/top_level.txt
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/usr/lib/python3/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-uryhktpf/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-uryhktpf/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 304, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-uryhktpf/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
File "", line 271, in
File "/tmp/pip-build-env-uryhktpf/overlay/local/lib/python3.11/dist-packages/setuptools/init.py", line 117, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-uryhktpf/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/core.py", line 183, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-uryhktpf/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/core.py", line 199, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-uryhktpf/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 954, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-uryhktpf/overlay/local/lib/python3.11/dist-packages/setuptools/dist.py", line 995, in run_command
super().run_command(command)
File "/tmp/pip-build-env-uryhktpf/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 973, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-uryhktpf/overlay/local/lib/python3.11/dist-packages/setuptools/command/egg_info.py", line 313, in run
self.find_sources()
File "/tmp/pip-build-env-uryhktpf/overlay/local/lib/python3.11/dist-packages/setuptools/command/egg_info.py", line 321, in find_sources
mm.run()
File "/tmp/pip-build-env-uryhktpf/overlay/local/lib/python3.11/dist-packages/setuptools/command/egg_info.py", line 544, in run
self.add_defaults()
File "/tmp/pip-build-env-uryhktpf/overlay/local/lib/python3.11/dist-packages/setuptools/command/egg_info.py", line 582, in add_defaults
sdist.add_defaults(self)
File "/tmp/pip-build-env-uryhktpf/overlay/local/lib/python3.11/dist-packages/setuptools/command/sdist.py", line 109, in add_defaults
super().add_defaults()
File "/tmp/pip-build-env-uryhktpf/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/command/sdist.py", line 238, in add_defaults
self._add_defaults_ext()
File "/tmp/pip-build-env-uryhktpf/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/command/sdist.py", line 323, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 201, in get_source_files
File "/tmp/pip-build-env-uryhktpf/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/cmd.py", line 107, in getattr
raise AttributeError(attr)
AttributeError: cython_sources
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

installation error in kali linux virtual
What version of SpiderFoot are you using - stable release

@krlabs
Copy link

krlabs commented Jan 8, 2025

get same error

@getcake
Copy link

getcake commented Jan 13, 2025

for anyone still experiencing issues, this ended up doing it for me:

  1. Ensure dependencies are installed:

    • Make sure you have OpenSSL (including the development package) installed.
    • Verify that setuptools is installed.
  2. Purge your pip cache:

    • Run pip cache purge to clear any potentially problematic cached files.
  3. Update requirements.txt:

    • Comment out the pyyaml line at the bottom of your requirements.txt file.
    • Replace it with the following line:
      pyyaml!=6.0.0,!=5.4.0,!=5.4.1
      

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants