mxrch / GHunt

🕵️‍♂️ Offensive Google framework.
Other
15.65k stars 1.3k forks source link

ISSUE: function() argument 'code' must be code, not str #309

Closed Mrpolack closed 2 years ago

Mrpolack commented 2 years ago

on kali 2021.1- python3 3.9.9 it gets me this error:

Traceback (most recent call last): File "/home/kali/ghunt/ghunt.py", line 12, in from modules.email import email_hunt File "/home/kali/ghunt/modules/email.py", line 14, in from geopy.geocoders import Nominatim File "/usr/local/lib/python3.9/dist-packages/geopy/init.py", line 12, in from geopy.geocoders import * # noqa File "/usr/local/lib/python3.9/dist-packages/geopy/geocoders/init.py", line 223, in from geopy.geocoders.algolia import AlgoliaPlaces File "/usr/local/lib/python3.9/dist-packages/geopy/geocoders/algolia.py", line 5, in from geopy.geocoders.base import DEFAULT_SENTINEL, Geocoder File "/usr/local/lib/python3.9/dist-packages/geopy/geocoders/base.py", line 7, in from geopy.adapters import ( File "/usr/local/lib/python3.9/dist-packages/geopy/adapters.py", line 55, in import aiohttp File "/usr/lib/python3/dist-packages/aiohttp/init.py", line 6, in from .client import ( File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 35, in from . import hdrs, http, payload File "/usr/lib/python3/dist-packages/aiohttp/http.py", line 7, in from .http_parser import ( File "/usr/lib/python3/dist-packages/aiohttp/http_parser.py", line 15, in from .helpers import NO_EXTENSIONS, BaseTimerContext File "/usr/lib/python3/dist-packages/aiohttp/helpers.py", line 667, in class CeilTimeout(async_timeout.timeout): TypeError: function() argument 'code' must be code, not str

imabhays commented 2 years ago

You need to update aiohttp to the latest version by using command below sudo pip install aiohttp==3.8.1