Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named context #5

Open
zbmcz opened this issue May 13, 2020 · 7 comments
Open

ImportError: No module named context #5

zbmcz opened this issue May 13, 2020 · 7 comments

Comments

@zbmcz
Copy link

zbmcz commented May 13, 2020

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

是我的环境问题吗

@WangYihang
Copy link
Owner

我这边 Python3 测试没问题,你是不是 Python2?(有可能是我没来得及在 2 下测试,如果方便的话先用 3 试试)

@zbmcz
Copy link
Author

zbmcz commented May 26, 2020

Python3 没问题,多谢,之前的环境是mac os,看来我要好好学习一下Python了。

@WangYihang
Copy link
Owner

@zbmcz 好嘞!俺这边 Python2 再测试一下,争取俩版本都能无缝使用。多谢反馈!

@snow212-cn
Copy link

snow212-cn commented Nov 18, 2020

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

@WangYihang WangYihang reopened this May 16, 2021
@xaeroborg
Copy link

I am seeing a similar error
image

@WangYihang
Copy link
Owner

@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.

@xaeroborg
Copy link

@WangYihang It works great thanks a ton for the prompt response and Happy New Year

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants