Skip to content
New issue

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

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

Already on GitHub? # to your account

文档说支持的requests库导入也报错 #31

Closed
euzenlee opened this issue Jun 12, 2021 · 2 comments
Closed

文档说支持的requests库导入也报错 #31

euzenlee opened this issue Jun 12, 2021 · 2 comments

Comments

@euzenlee
Copy link

没有第三方库支持,python发挥不了作用啊。

Traceback (most recent call last):
File "D:\CTFTools\Crypto\CTFcrackTools\plugins\test.py", line 11, in
import requests
File "D:\CTFTools\Crypto\CTFcrackTools\Lib\site-packages\requests_init_.py", line 43, in
import urllib3
File "D:\CTFTools\Crypto\CTFcrackTools\Lib\site-packages\urllib3_init_.py", line 5, in
from future import absolute_import
ImportError: No module named future
java.lang.NullPointerException: null cannot be cast to non-null type org.python.core.PyFunction

@euzenlee
Copy link
Author

Core.kt 第852行
props["python.home"]=System.getProperty("user.dir")+"/Lib"
改为:
props["python.home"]=System.getProperty("user.dir")
就可以了。

@0Chencc
Copy link
Owner

0Chencc commented Jun 13, 2021

幸苦了。

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

No branches or pull requests

2 participants