Hi everyone,
when i start pylint to check my code i get the following output:
> pylint Test.py
Traceback (most recent call last):
File "/usr/bin/pylint", line 4, in <module>
lint.Run(sys.argv[1:])
File "/usr/lib/python2.7/dist-packages/pylint/lint.py", line 839, in __init__
linter.read_config_file()
File "/usr/lib/python2.7/dist-packages/logilab/common/configuration.py", line 612, in read_config_file
parser.read([config_file])
File "/usr/lib/python2.7/ConfigParser.py", line 305, in read
self._read(fp, filename)
File "/usr/lib/python2.7/ConfigParser.py", line 512, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: /home/akki/.pylintrc, line: 1
'ignored-classes=SQLObject,_socketobject'
Environment:
- Ubuntu 12.04 Desktop
- python 2.7
- pylint from ubuntu-Repos
Can anybody tell me how to fix this.
Thank you very much
Regards
Akki
|
Comments
-
2012/10/12 07:47, written by vanish
-
2012/10/12 09:12, written by akki
add commentThis comes from a syntax error in your .pylintrc file. It should read:
Try pylint --generate-rcfile > sample_pylintrc to get a well formed one which you can edit at will.
This solved my problem. Thank you very much :-)