Logger Error when running through python -
i have python script takes in couple of command line arguments , executes function. when run shell runs perfectly
$ ./test.py arg1 arg2 arg3
but when call through python function throws error
os.system("./test.py arg1 arg2 arg3")
this throws error
traceback (most recent call last): file "/var/redshift/proj/query/test.py", line 4, in <module> new_main_queryandprocess import main_queryandprocess file "/var/redshift/proj/query/new_main_queryandprocess.py", line 7, in <module> import mdr_lib mdr file "/var/redshift/proj/query/mdr_lib.py", line 26, in <module> logging.config.fileconfig('logging.conf') file "/usr/lib/python3.4/logging/config.py", line 76, in fileconfig formatters = _create_formatters(cp) file "/usr/lib/python3.4/logging/config.py", line 109, in _create_formatters flist = cp["formatters"]["keys"] file "/usr/lib/python3.4/configparser.py", line 937, in __getitem__ raise keyerror(key) keyerror: 'formatters' 256
Comments
Post a Comment