How to fix Python’s ConfigParser or RawConfigParser’s raise KeyError(key) configparser.py”,__getitem__

This is to show how to troubleshoot Python’s ConfigParser or RawConfigParser’s raise KeyError(key)

I grabbed fewPython codes to get some work done and encountered a following error while running Python. I will hide few items that don’t need.

Basically, this file was looking for config.ini file and supposed to load into a config variable. An odd thing was that I expected this code to create…

--

--

--

A cloud practitioner talking about technology, travels & career tips. But I will sometimes cover financial advises and some random stuffs.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Neo4j Certification — Pass Like a Pro

All about TRANSISTORS!!!

Full Stack Development using Java Spring Framework under the guidance of DLithe (www.dlithe.com)

Top 8 Web Development Technologies Trends for 2021

Does Your Favorite Programming Language Require a Semicolon? 💻

Selenium alternatives everyone is talking about — Choose wisely!

Backup of Room Database files in Android | REST API v3

Sorting Algorithms: Quick Sort

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bryant Jimin Son

Bryant Jimin Son

A cloud practitioner talking about technology, travels & career tips. But I will sometimes cover financial advises and some random stuffs.

More from Medium

Quick Tip: Writing newline character to JSON file in Python

For loop in python

Python Date Time Cheat Sheet

How to Decorate Your Code With Decorators