To solve Python 3 ImportError: No module named ‘ConfigParser’ error follow below methods.
__import__('pkg_resources').run_script('packstack==7.0.0', 'packstack') import ConfigParser ImportError: No module named 'ConfigParser'
How to solve Python 3 ImportError: No module named ‘ConfigParser’ ?
Refer the given methods to solve the issue.
Instead, you can use the mysqlclient package as a stand-in for MySQL-python. It is a fork of MySQL-python that includes Python 3 support.
pip install mysqlclient
in python3 virtualenv after
sudo apt-get install python3-dev libmysqlclient-dev
Method 2 :
In Python 3,
ConfigParser has been renamed to
configparser for PEP 8 compliance. It looks like the package you are installing does not support Python 3.
According to the error message, the packstack command is unable to load one of the Python modules called ConfigParser. This means you must install the ConfigParser module. I recommend that you install Python PIP, which allows you to simply install modules. Once PIP is installed, run the following command to install the ConfigParser module.
pip install configparser
Hope the above solution works.
Also read :