infinite-omicron / pentesting-vm

Penetration Testing Virtual Machine
GNU General Public License v3.0
2 stars 2 forks source link

theharvester installation errors #12

Closed oxr463 closed 2 years ago

oxr463 commented 2 years ago
    default: Cloning into '/opt/theharvester'...
    default: Collecting aiodns==3.0.0
    default:   Downloading aiodns-3.0.0-py3-none-any.whl (5.0 kB)
    default: Collecting aiofiles==0.7.0
    default:   Downloading aiofiles-0.7.0-py3-none-any.whl (13 kB)
    default: Collecting aiohttp==3.7.4.post0
    default:   Downloading aiohttp-3.7.4.post0.tar.gz (1.1 MB)
    default:   Installing build dependencies: started
    default:   Installing build dependencies: finished with status 'done'
    default:   Getting requirements to build wheel: started
    default:   Getting requirements to build wheel: finished with status 'done'
    default:   Preparing metadata (pyproject.toml): started
    default:   Preparing metadata (pyproject.toml): finished with status 'done'
    default: Collecting aiomultiprocess==0.9.0
    default:   Downloading aiomultiprocess-0.9.0-py3-none-any.whl (17 kB)
    default: Collecting aiosqlite==0.17.0
    default:   Downloading aiosqlite-0.17.0-py3-none-any.whl (15 kB)
    default: Collecting beautifulsoup4==4.10.0
    default:   Downloading beautifulsoup4-4.10.0-py3-none-any.whl (97 kB)
    default: Collecting censys==2.0.9
    default:   Downloading censys-2.0.9-py3-none-any.whl (52 kB)
    default: Requirement already satisfied: certifi==2021.10.8 in /usr/lib/python3.8/site-packages (from -r requirements/base.txt (line 8)) (2021.10.8)
    default: Collecting dnspython==2.1.0
    default:   Downloading dnspython-2.1.0-py3-none-any.whl (241 kB)
    default: Collecting fastapi==0.70.0
    default:   Downloading fastapi-0.70.0-py3-none-any.whl (51 kB)
    default: Collecting lxml==4.6.3
    default:   Downloading lxml-4.6.3.tar.gz (3.2 MB)
    default:   Preparing metadata (setup.py): started
    default:   Preparing metadata (setup.py): finished with status 'done'
    default: Collecting netaddr==0.8.0
    default:   Downloading netaddr-0.8.0-py2.py3-none-any.whl (1.9 MB)
    default: Collecting orjson==3.6.4
    default:   Downloading orjson-3.6.4.tar.gz (548 kB)
    default:   Installing build dependencies: started
    default:   Installing build dependencies: finished with status 'error'
    default:   ERROR: Command errored out with exit status 1:
    default:    command: /usr/bin/python3 /tmp/pip-standalone-pip-o7q57hv_/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-2h58rvu6/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'maturin>=0.11.4,<0.12'
    default:        cwd: None
    default:   Complete output (57 lines):
    default:   Collecting maturin<0.12,>=0.11.4
    default:     Downloading maturin-0.11.5.tar.gz (469 kB)
    default:     Installing build dependencies: started
    default:     Installing build dependencies: finished with status 'done'
    default:     Getting requirements to build wheel: started
    default:     Getting requirements to build wheel: finished with status 'done'
    default:     Preparing metadata (pyproject.toml): started
    default:     Preparing metadata (pyproject.toml): finished with status 'done'
    default:   Collecting toml~=0.10.0
    default:     Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
    default:   Building wheels for collected packages: maturin
    default:     Building wheel for maturin (pyproject.toml): started
    default:     Building wheel for maturin (pyproject.toml): finished with status 'error'
    default:     ERROR: Command errored out with exit status 1:
    default:      command: /usr/bin/python3 /tmp/tmpz2j0wygi build_wheel /tmp/tmp6faewj09
    default:          cwd: /tmp/pip-install-w3s18gqk/maturin_ab2c81ddde1b4a06a3e252701ab787d3
    default:     Complete output (36 lines):
    default:     running bdist_wheel
    default:     running build
    default:     installing to build/bdist.linux-x86_64/wheel
    default:     running install
    default:     Traceback (most recent call last):
    default:       File "/tmp/tmpz2j0wygi", line 363, in <module>
    default:         main()
    default:       File "/tmp/tmpz2j0wygi", line 345, in main
    default:         json_out['return_val'] = hook(**hook_input['kwargs'])
    default:       File "/tmp/tmpz2j0wygi", line 261, in build_wheel
    default:         return _build_backend().build_wheel(wheel_directory, config_settings,
    default:       File "/tmp/pip-build-env-q4l4h3uj/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 216, in build_wheel
    default:         return self._build_with_temp_dir(['bdist_wheel'], '.whl',
    default:       File "/tmp/pip-build-env-q4l4h3uj/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 202, in _build_with_temp_dir
    default:         self.run_setup()
    default:       File "/tmp/pip-build-env-q4l4h3uj/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 145, in run_setup
    default:         exec(compile(code, __file__, 'exec'), locals())
    default:       File "setup.py", line 106, in <module>
    default:         setup(
    default:       File "/tmp/pip-build-env-q4l4h3uj/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
    default:         return distutils.core.setup(**attrs)
    default:       File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
    default:         dist.run_commands()
    default:       File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
    default:         self.run_command(cmd)
    default:       File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
    default:         cmd_obj.run()
    default:       File "/tmp/pip-build-env-q4l4h3uj/overlay/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 335, in run
    default:         self.run_command('install')
    default:       File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
    default:         self.distribution.run_command(command)
    default:       File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
    default:         cmd_obj.run()
    default:       File "setup.py", line 58, in run
    default:         raise RuntimeError(
    default:     RuntimeError: cargo not found in PATH. Please install rust (https://www.rust-lang.org/tools/install) and try again
    default:     ----------------------------------------
    default:     ERROR: Failed building wheel for maturin
    default:   Failed to build maturin
    default:   ERROR: Could not build wheels for maturin, which is required to install pyproject.toml-based projects
    default:   ----------------------------------------
    default: WARNING: Discarding https://files.pythonhosted.org/packages/f6/1e/61225fb33a9f614ac67f595a80008ded0bdc58ea20c0201703a166d37fca/orjson-3.6.4.tar.gz#sha256=f8dbc428fc6d7420f231a7133d8dff4c882e64acb585dcf2fda74bdcfe1a6d9d (from https://pypi.org/simple/orjson/) (requires-python:>=3.7). Command errored out with exit status 1: /usr/bin/python3 /tmp/pip-standalone-pip-o7q57hv_/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-2h58rvu6/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'maturin>=0.11.4,<0.12' Check the logs for full command output.
    default: ERROR: Could not find a version that satisfies the requirement orjson==3.6.4 (from versions: 2.0.7, 2.0.8, 2.0.9, 2.0.10, 2.0.11, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.4.0, 2.5.0, 2.5.1, 2.5.2, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.6.6, 2.6.7, 2.6.8, 3.0.0, 3.0.1, 3.0.2, 3.1.0, 3.1.1, 3.1.2, 3.2.0, 3.2.1, 3.2.2, 3.3.0, 3.3.1, 3.4.0, 3.4.1, 3.4.2, 3.4.3, 3.4.4, 3.4.5, 3.4.6, 3.4.7, 3.4.8, 3.5.0, 3.5.1, 3.5.2, 3.5.3, 3.5.4, 3.6.0, 3.6.1, 3.6.2, 3.6.3, 3.6.4)
    default: ERROR: No matching distribution found for orjson==3.6.4
    default:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
    default:                                  Dload  Upload   Total   Spent    Left  Speed
100   659  100   659    0     0   2189      0 --:--:-- --:--:-- --:--:--  2189
100 92.3M  100 92.3M    0     0  9069k      0  0:00:10  0:00:10 --:--:-- 11.1M
outzhu commented 2 years ago

Probably due to using python3 -m pip install -r requirements/dev.txt instead of python3 -m pip install -r requirements/base.txt

oxr463 commented 2 years ago

We'll need to update that here: https://github.com/infinite-omicron/pentesting-vm/blob/master/packer/scripts/theharvester.sh

outzhu commented 2 years ago

Testing it on my end first. Will make MR once it works.

outzhu commented 2 years ago

https://github.com/infinite-omicron/pentesting-vm/pull/22