SourceLeakHacker
SourceLeakHacker copied to clipboard
ImportError: No module named context
git clone https://github.com/WangYihang/SourceLeakHacker.git
cd SourceLeakHacker
pip install -r requirments.txt
python SourceLeakHacker.py --url=http://server:port/ --threads=4 --timeout=8
之后出现:
Traceback (most recent call last):
File "SourceLeakHacker.py", line 16, in <module>
from lib.util import output
File "/Users/boming/Downloads/SourceLeakHacker-3.0/lib/util/output.py", line 7, in <module>
from lib.context import context
ImportError: No module named context
是我的环境问题吗
我这边 Python3 测试没问题,你是不是 Python2?(有可能是我没来得及在 2 下测试,如果方便的话先用 3 试试)
Python3 没问题,多谢,之前的环境是mac os,看来我要好好学习一下Python了。
@zbmcz 好嘞!俺这边 Python2 再测试一下,争取俩版本都能无缝使用。多谢反馈!
Python3也无法使用,
Traceback (most recent call last):
File "SourceLeakHacker.py", line 11, in <module>
import prettytable
File "/home/test/.local/lib/python3.5/site-packages/prettytable/__init__.py", line 3, in <module>
from .prettytable import (
File "/home/test/.local/lib/python3.5/site-packages/prettytable/prettytable.py", line 250
raise Exception(f"Index {index} is invalid, must be an integer or slice")
^
SyntaxError: invalid syntax
I am seeing a similar error

@xaeroborg xaeroborg, Python 2.7 is not supported, please use python 3.6+. It works on Python 3.8.10; Ubuntu 20.04.3 LTSat least.
@WangYihang It works great thanks a ton for the prompt response and Happy New Year