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

Build error #1871

Open
Karag0 opened this issue Jul 15, 2024 · 3 comments
Open

Build error #1871

Karag0 opened this issue Jul 15, 2024 · 3 comments

Comments

@Karag0
Copy link

Karag0 commented Jul 15, 2024

Spiderfoot stable version kali linux error with building wheel
pip install -r requirements.txt
Collecting adblockparser<1,>=0.7
Using cached adblockparser-0.7-py2.py3-none-any.whl (13 kB)
Collecting dnspython<3,>=2.1.0
Using cached dnspython-2.6.1-py3-none-any.whl (307 kB)
Collecting ExifRead<3,>=2.3.2
Using cached ExifRead-2.3.2-py3-none-any.whl (38 kB)
Collecting CherryPy<19,>=18.6.1
Using cached CherryPy-18.10.0-py3-none-any.whl (349 kB)
Collecting cherrypy-cors<2,>=1.6
Using cached cherrypy_cors-1.7.0-py3-none-any.whl (5.2 kB)
Collecting Mako<2,>=1.1.5
Using cached Mako-1.3.5-py3-none-any.whl (78 kB)
Collecting beautifulsoup4<5,>=4.10.0
Using cached beautifulsoup4-4.12.3-py3-none-any.whl (147 kB)
Collecting lxml<5,>=4.6.3
Using cached lxml-4.9.4-cp311-cp311-manylinux_2_28_x86_64.whl (7.9 MB)
Collecting netaddr<1,>=0.8.0
Using cached netaddr-0.10.1-py2.py3-none-any.whl (2.2 MB)
Collecting pysocks<2,>=1.7.1
Using cached PySocks-1.7.1-py3-none-any.whl (16 kB)
Collecting requests<3,>=2.26.0
Using cached requests-2.32.3-py3-none-any.whl (64 kB)
Collecting ipwhois<1.2.0,>=1.1.0
Using cached ipwhois-1.1.0-py2.py3-none-any.whl (74 kB)
Collecting ipaddr<3,>=2.2.0
Using cached ipaddr-2.2.0.tar.gz (26 kB)
Preparing metadata (setup.py) ... done
Collecting phonenumbers<9,>=8.12.34
Using cached phonenumbers-8.13.40-py2.py3-none-any.whl (2.6 MB)
Collecting pygexf<0.3,>=0.2.2
Using cached pygexf-0.2.2.tar.gz (5.1 kB)
Preparing metadata (setup.py) ... done
Collecting PyPDF2<2,>=1.26.0
Using cached PyPDF2-1.28.6-py3-none-any.whl (87 kB)
Collecting python-whois<0.8,>=0.7.3
Using cached python-whois-0.7.3.tar.gz (91 kB)
Preparing metadata (setup.py) ... done
Collecting secure<0.4.0,>=0.3.0
Using cached secure-0.3.0-py3-none-any.whl (9.6 kB)
Collecting pyOpenSSL<22,>=21.0.0
Using cached pyOpenSSL-21.0.0-py2.py3-none-any.whl (55 kB)
Collecting python-docx<0.9,>=0.8.11
Using cached python-docx-0.8.11.tar.gz (5.6 MB)
Preparing metadata (setup.py) ... done
Collecting python-pptx<0.7,>=0.6.21
Using cached python_pptx-0.6.23-py3-none-any.whl (471 kB)
Collecting networkx<2.7,>=2.6.3
Using cached networkx-2.6.3-py3-none-any.whl (1.9 MB)
Collecting cryptography<4,>=3.4.8
Using cached cryptography-3.4.8-cp36-abi3-manylinux_2_24_x86_64.whl (3.0 MB)
Collecting publicsuffixlist<0.8,>=0.7.9
Using cached publicsuffixlist-0.7.14-py2.py3-none-any.whl (95 kB)
Collecting openpyxl<4,>=3.0.9
Using cached openpyxl-3.1.5-py2.py3-none-any.whl (250 kB)
Collecting pyyaml<6,>=5.4.1
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 "/home/alasdair/spiderfoot/spiderfoot-4.0/spider/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/home/alasdair/spiderfoot/spiderfoot-4.0/spider/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/alasdair/spiderfoot/spiderfoot-4.0/spider/lib/python3.11/site-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-rbfxdewc/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 327, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-rbfxdewc/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 297, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-rbfxdewc/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 313, in run_setup
exec(code, locals())
File "", line 271, in
File "/tmp/pip-build-env-rbfxdewc/overlay/lib/python3.11/site-packages/setuptools/init.py", line 103, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-rbfxdewc/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 184, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-rbfxdewc/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-rbfxdewc/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 970, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-rbfxdewc/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 974, in run_command
super().run_command(command)
File "/tmp/pip-build-env-rbfxdewc/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 989, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-rbfxdewc/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 321, in run
self.find_sources()
File "/tmp/pip-build-env-rbfxdewc/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 329, in find_sources
mm.run()
File "/tmp/pip-build-env-rbfxdewc/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 550, in run
self.add_defaults()
File "/tmp/pip-build-env-rbfxdewc/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 588, in add_defaults
sdist.add_defaults(self)
File "/tmp/pip-build-env-rbfxdewc/overlay/lib/python3.11/site-packages/setuptools/command/sdist.py", line 102, in add_defaults
super().add_defaults()
File "/tmp/pip-build-env-rbfxdewc/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/sdist.py", line 250, in add_defaults
self._add_defaults_ext()
File "/tmp/pip-build-env-rbfxdewc/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/sdist.py", line 335, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 201, in get_source_files
File "/tmp/pip-build-env-rbfxdewc/overlay/lib/python3.11/site-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.

@Karag0
Copy link
Author

Karag0 commented Jul 15, 2024

https://stackoverflow.com/questions/77490435/attributeerror-cython-sources i trying to use this but now i have cant find pkg PyYaml

@Karag0
Copy link
Author

Karag0 commented Jul 15, 2024

If i use apt install spiderfoot then spiderfoot i have this error File "/home/kali/Desktop/spiderfoot-4.0/./sf.py", line 29, in
from sflib import SpiderFoot
File "/home/kali/Desktop/spiderfoot-4.0/sflib.py", line 34, in
import dns.resolver
File "/usr/lib/python3/dist-packages/dns/resolver.py", line 30, in
import dns._ddr
File "/usr/lib/python3/dist-packages/dns/ddr.py", line 12, in
import dns.nameserver
File "/usr/lib/python3/dist-packages/dns/nameserver.py", line 5, in
import dns.asyncquery
File "/usr/lib/python3/dist-packages/dns/asyncquery.py", line 32, in
import dns.quic
File "/usr/lib/python3/dist-packages/dns/quic/_init.py", line 7, in
import aioquic.quic.configuration # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/aioquic/quic/configuration.py", line 6, in
from ..tls import (
File "/usr/lib/python3/dist-packages/aioquic/tls.py", line 41, in
from cryptography.hazmat.primitives.asymmetric.types import (
ModuleNotFoundError: No module named 'cryptography.hazmat.primitives.asymmetric.types'

@bcoles
Copy link
Contributor

bcoles commented Jul 28, 2024

Upgrading pyOpenSSL, pip and cryptography worked for me.

pip3 install pip --upgrade
pip3 install pyopenssl --upgrade
pip3 install cryptography --upgrade

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

2 participants