#863: Cryptic error message for configuration syntax error
------------------------+---------------------------------------------------
Reporter: max | Owner: Fuzzyman
Type: defect | Status: new
Priority: normal | Milestone: 1.0b1
Component: TurboGears | Version: 0.9a6
Severity: normal | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Changes (by jorge.vargas):
* version: 0.9a5 => 0.9a6
Comment:
a diferent issue but a cryptic error too
Traceback (most recent call last):
File "/usr/local/bin/tg-admin", line 7, in ?
sys.exit(
File "/usr/lib/python2.4/site-packages/TurboGears-0.9a6-
py2.4.egg/turbogears/command/base.py", line 274, in main
command = command.load()(turbogears.__version__)
File "/usr/lib/python2.4/site-packages/TurboGears-0.9a6-
py2.4.egg/turbogears/command/base.py", line 101, in __init__
self.find_config()
File "/usr/lib/python2.4/site-packages/TurboGears-0.9a6-
py2.4.egg/turbogears/command/base.py", line 66, in find_config
load_project_config(self.config)
File "/usr/lib/python2.4/site-packages/TurboGears-0.9a6-
py2.4.egg/turbogears/command/base.py", line 54, in load_project_config
modulename = package + ".config")
File "/usr/lib/python2.4/site-packages/TurboGears-0.9a6-
py2.4.egg/turbogears/config.py", line 183, in update_config
configdata2 = ConfigObj(configfile, unrepr=True)
File "/usr/lib/python2.4/site-
packages/ConfigObj-4.3.1-py2.4.egg/configobj.py", line 1077, in __init__
configobj.ConfigObjError: Parsing failed.
this happens when you have 2 keys inside the same section with the same
name, which will become a common problem ones people start not seeing the
default uncommented sqlobject.dburi in dev.cfg