View Issue Details

IDProjectCategoryView StatusLast Update
0007566Kali LinuxKali Package Bugpublic2025-07-14 09:37
Reporterbec12 Assigned Todaniruiz  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version2021.4 
Summary0007566: theHarvester not able to run
Description

theHarvester throws an error when tying to use.

theHarvester -h
Traceback (most recent call last):
File "/usr/bin/theHarvester", line 6, in <module>
from theHarvester import main
File "/usr/lib/python3/dist-packages/theHarvester/main.py", line 4, in <module>
from theHarvester.discovery import dnssearch, takeover, shodansearch
File "/usr/lib/python3/dist-packages/theHarvester/discovery/takeover.py", line 1, in <module>
from theHarvester.lib.core import *
File "/usr/lib/python3/dist-packages/theHarvester/lib/core.py", line 6, in <module>
import aiohttp
File "/usr/lib/python3/dist-packages/aiohttp/init.py", line 6, in <module>
from .client import (
File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 35, in <module>
from . import hdrs, http, payload
File "/usr/lib/python3/dist-packages/aiohttp/http.py", line 7, in <module>
from .http_parser import (
File "/usr/lib/python3/dist-packages/aiohttp/http_parser.py", line 15, in <module>
from .helpers import NO_EXTENSIONS, BaseTimerContext
File "/usr/lib/python3/dist-packages/aiohttp/helpers.py", line 667, in <module>
class CeilTimeout(async_timeout.timeout):
TypeError: function() argument 'code' must be code, not str

Steps To Reproduce

theHarvester -h

Activities

arnaudr

arnaudr

2022-02-07 03:47

manager   ~0015690

I just tried in both Kali 2021.4 and Kali rolling, and it works for me. Did you try to run "sudo apt update && sudo apt full-upgrade" ? What's the output of these commands? Does it fix your problem?

daniruiz

daniruiz

2022-02-07 08:55

manager   ~0015691

I'm not able to replicate it either but I've found this bug in github that points to an issue with a python library
https://github.com/laramies/theHarvester/issues/967

Kali already includes python3-aiohttp version 3.8.1-4 so this issue is fixed.
You need to update your system

daniruiz

daniruiz

2022-02-07 09:01

manager   ~0015693

I'm closing this as it seems like an old issue that has already been fixed in Kali

Issue History

Date Modified Username Field Change
2022-02-06 14:05 bec12 New Issue
2022-02-07 03:47 arnaudr Note Added: 0015690
2022-02-07 08:55 daniruiz Note Added: 0015691
2022-02-07 09:01 daniruiz Note Added: 0015693
2022-02-07 09:02 daniruiz Assigned To => daniruiz
2022-02-07 09:02 daniruiz Status new => closed
2022-02-07 09:02 daniruiz Resolution open => no change required
2025-07-14 09:37 g0tmi1k Severity block => minor