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

大佬报错啦 configparser.NoSectionError: No section: 'kuaidaili' #1

Closed
Cha0sJ opened this issue Oct 31, 2022 · 5 comments
Closed

Comments

@Cha0sJ
Copy link

Cha0sJ commented Oct 31, 2022

Traceback (most recent call last):
File "/ShuiZe_0x727/ShuiZe.py", line 1642, in
_init()
File "/ShuiZe_0x727/ShuiZe.py", line 1468, in _init
kuaidaili_tunnel = cf.get('kuaidaili', 'tunnel')
File "/usr/local/lib/python3.8/configparser.py", line 781, in get
d = self._unify_values(section, vars)
File "/usr/local/lib/python3.8/configparser.py", line 1149, in _unify_values
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'kuaidaili'

@1itt1eB0y
Copy link
Owner

如果使用快代理的话需要把iniFile文件夹下的对应文件挂载volume映射到容器内。
命令参考 docker run -v yourIniFile:/ShuiZe_0x727/iniFile/config.ini

@1itt1eB0y
Copy link
Owner

可以把你运行的时候用的命令贴一下,我尝试复现一下

@Cha0sJ
Copy link
Author

Cha0sJ commented Nov 2, 2022

就是直接./Suize的时候就出现的,但是我没用代理 直接输入的

@1itt1eB0y
Copy link
Owner

里面有个默认的volume挂载参数,会挂载当前目录下的iniFile文件夹到容器内,如果你本地没有这个文件夹,就会覆盖容器内原有文件夹为空文件夹,而不是将容器内的文件映射出来。
可以把文件内容改成如下:

docker run -it -v $(pwd)/result:/ShuiZe_0x727/result --name shuize 1itt1eb0y/shuize:latest $1

或者直接用这个命令跑

@1itt1eB0y 1itt1eB0y pinned this issue Nov 3, 2022
@1itt1eB0y 1itt1eB0y changed the title 大佬报错啦 大佬报错啦 configparser.NoSectionError: No section: 'kuaidaili' Nov 3, 2022
@1itt1eB0y
Copy link
Owner

没有什么问题我先将issue关闭了

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

2 participants