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: 'main' #12

Open
cuckoo-linux opened this issue Aug 15, 2018 · 1 comment
Open

ConfigParser.NoSectionError: No section: 'main' #12

cuckoo-linux opened this issue Aug 15, 2018 · 1 comment

Comments

@cuckoo-linux
Copy link

habo@habo-VirtualBox:~/HaboMalHunter$ sudo python AnalyzeControl.py -v -l ./test/bin/read.64.elf
Traceback (most recent call last):
File "AnalyzeControl.py", line 688, in
ret = main(len(sys.argv), sys.argv)
File "AnalyzeControl.py", line 615, in main
cfg = init_arguments(argv)
File "AnalyzeControl.py", line 156, in init_arguments
cfg = init_cfg(args.config_path,args)
File "AnalyzeControl.py", line 96, in init_cfg
for k,v in conf_parser.items(SECTION_DEF):
File "/usr/lib/python2.7/ConfigParser.py", line 642, in items
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'main'

@jingleyang
Copy link
Collaborator

hi,
The issue is related with config.ini. By default, the configuration file is config.ini in the first level of source code. Please try to use option -e CONFIG_PATH , to point config file path explicitly. And check whether a section named [main] exists in the config file.
Thanks

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