Issue 26339: Python rk0.3b1 KeyError: 'config_argparse_rel_path' (original) (raw)

Hi, we use python 2.7.3 on Linux SuSe Enterprise 11 x86 64 bits. After installing the python module rk0.3b1, we have this error when rk parse the configuration file: KeyError: 'config_argparse_rel_path' after this function dict.getitem(self, key)

You will find below the debugger trace:

python -m pdb /opt/python-2.7.3/bin/rk

/opt/python-2.7.3/bin/rk(3)()

-> requires = 'rk==0.3b1'

(Pdb) cont

Traceback (most recent call last):

File "/opt/python-2.7.3/lib/python2.7/pdb.py", line 1314, in main

pdb._runscript(mainpyfile)

File "/opt/python-2.7.3/lib/python2.7/pdb.py", line 1233, in _runscript

self.run(statement)

File "/opt/python-2.7.3/lib/python2.7/bdb.py", line 387, in run

exec cmd in globals, locals

File "", line 1, in

File "/opt/python-2.7.3/bin/rk", line 3, in

__requires__ = 'rk==0.3b1'

File "build/bdist.linux-x86_64/egg/rk/rk.py", line 253, in main

create_dictionaries()

File "build/bdist.linux-x86_64/egg/rk/rk.py", line 25, in create_dictionaries

config_argparse_rel_path = config["config_argparse_rel_path"]

File "/opt/python-2.7.3/lib/python2.7/site-packages/configobj.py", line 554, in getitem

val = dict.__getitem__(self, key)

KeyError: 'config_argparse_rel_path'

Uncaught exception. Entering post mortem debugging

Running 'cont' or 'step' will restart the program

/opt/python-2.7.3/lib/python2.7/site-packages/configobj.py(554)getitem()

-> val = dict.getitem(self, key)

(Pdb)