knownsec / Kunyu

Kunyu, more efficient corporate asset collection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error on latest kali linux purple

Visalyputra opened this issue · comments

How to solve this error?

Traceback (most recent call last):
File "/usr/local/bin/kunyu", line 33, in
sys.exit(load_entry_point('kunyu==1.7.2', 'console_scripts', 'kunyu')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/bin/kunyu", line 25, in importlib_load_entry_point
return next(matches).load()
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/init.py", line 202, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/usr/local/lib/python3.11/dist-packages/kunyu-1.7.2-py3.11.egg/kunyu/console.py", line 17, in
from kunyu.core.console import KunyuInterpreter
File "/usr/local/lib/python3.11/dist-packages/kunyu-1.7.2-py3.11.egg/kunyu/core/console.py", line 23, in
from kunyu.core.zoomeye import ZoomEye
File "/usr/local/lib/python3.11/dist-packages/kunyu-1.7.2-py3.11.egg/kunyu/core/zoomeye.py", line 25, in
from pocsuite3 import set_paths
File "/usr/local/lib/python3.11/dist-packages/pocsuite3/init.py", line 11, in
from .cli import module_path
File "/usr/local/lib/python3.11/dist-packages/pocsuite3/cli.py", line 12, in
from pocsuite3.lib.core.option import init
File "/usr/local/lib/python3.11/dist-packages/pocsuite3/lib/core/option.py", line 11, in
import socks
File "/usr/local/lib/python3.11/dist-packages/socks.py", line 58, in
from collections import Callable
ImportError: cannot import name 'Callable' from 'collections' (/usr/lib/python3.11/collections/init.py)

commented

Probably because your python version is too high,you can use command "pip install kunyu" to solved this issue.

Probably because your python version is too high,you can use command "pip install kunyu" to solved this issue.

still error above appears even i use the "pip install kunyu" 😢

The kunyu itself is working when i use the kunyu -h but the kunyu init --apikey --seebug is not working and this error appears.

Traceback (most recent call last):
File "/usr/local/bin/kunyu", line 5, in
from kunyu.console import main
File "/usr/local/lib/python3.11/dist-packages/kunyu/console.py", line 17, in
from kunyu.core.console import KunyuInterpreter
File "/usr/local/lib/python3.11/dist-packages/kunyu/core/console.py", line 23, in
from kunyu.core.zoomeye import ZoomEye
File "/usr/local/lib/python3.11/dist-packages/kunyu/core/zoomeye.py", line 25, in
from pocsuite3 import set_paths
File "/usr/local/lib/python3.11/dist-packages/pocsuite3/init.py", line 11, in
from .cli import module_path
File "/usr/local/lib/python3.11/dist-packages/pocsuite3/cli.py", line 12, in
from pocsuite3.lib.core.option import init
File "/usr/local/lib/python3.11/dist-packages/pocsuite3/lib/core/option.py", line 11, in
import socks
File "/usr/local/lib/python3.11/dist-packages/socks.py", line 58, in
from collections import Callable
ImportError: cannot import name 'Callable' from 'collections' (/usr/lib/python3.11/collections/init.py)

commented

You need to get to https://www.zoomeye.org/ Register and get the api-key to initialize in and replace the key