PDA

View Full Version : Troubleshooting running theHarvester first time



No.9
2022-01-03, 16:43
Hi all ,
kali
release 2021.4

I tried to run theHarvester for the first time by typing "theHarvester"

got message:


raceback (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

Aryanadi
2022-01-28, 01:20
I just had the same issue of theHarvester this morning, even when I run it in the root with sudo

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

QUESTION: Will Kali Linux be able to fix this issue pls?

Thanks in advance!