python脚本错误

python脚本错误

最近,我重新下载了kali linux版本2021.4。我执行了正常的设置命令“sudo apt update && sudo apt update”。完成更新后,我继续复制一个名为 Osintgram 的 github 存储库。我的所有配置都正确,但是当我执行脚本时,我收到以下错误:

Traceback (most recent call last):
  File "/home/kali/Desktop/Osint/Osintgram/main.py", line 3, in <module>
    from src.Osintgram import Osintgram
  File "/home/kali/Desktop/Osint/Osintgram/src/Osintgram.py", line 13, in <module>
    from geopy.geocoders import Nominatim
  File "/home/kali/.local/lib/python3.9/site-packages/geopy/__init__.py", line 12, in <module>
    from geopy.geocoders import *  # noqa
  File "/home/kali/.local/lib/python3.9/site-packages/geopy/geocoders/__init__.py", line 223, in <module>
    from geopy.geocoders.algolia import AlgoliaPlaces
  File "/home/kali/.local/lib/python3.9/site-packages/geopy/geocoders/algolia.py", line 5, in <module>
    from geopy.geocoders.base import DEFAULT_SENTINEL, Geocoder
  File "/home/kali/.local/lib/python3.9/site-packages/geopy/geocoders/base.py", line 7, in <module>
    from geopy.adapters import (
  File "/home/kali/.local/lib/python3.9/site-packages/geopy/adapters.py", line 55, 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

我已经在谷歌上搜索了答案,但找不到答案。对于解决此问题和/或可能的解决方案有什么建议吗?

相关内容