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

load `defaults.ini` cause File contains no section headers #476

Closed
KaitoHH opened this Issue Aug 25, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@KaitoHH
Copy link

KaitoHH commented Aug 25, 2018

isso seems to consider defaults.ini as default isso.conf that causes following erorr.

configparser.MissingSectionHeaderError: File contains no section headers.
file: '/isso/lib/python3.7/site-packages/isso-0.10.7.dev0-py3.7.egg/isso/defaults.ini', line: 1
'../share/isso.conf'

Copying a default isso.conf and replacing defaults.ini solves this problem.

There is also no use to specify ISSO_SETTINGS because isso will always load default.ini first.

isso/isso/config.py

Lines 129 to 135 in 5bc176d

parser = new()
parser.read(default)
a = setify(parser)
if user:
parser.read(user)

Line 130 ensures that default.ini will be load first, so error will definitely happen if isso fails to load defaults.ini

@KaitoHH

This comment has been minimized.

Copy link
Author

KaitoHH commented Aug 27, 2018

Seems that this problem causes in Windows as Windows does not treat defaults.ini as symlink file.

@KaitoHH KaitoHH closed this Aug 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment