I'm trying to run db_create.py
in Flask, and am getting the following error:
from six.moves.configparser import ConfigParser
ImportError: No module named configparser
Even after a successfull pip install
, the same error code comes up.
I'm seeing solutions targeting Python 3, but not lower.
For anyone following along, this was likely caused by an old (broken) version of the six
module, e.g. see https://github.com/Parsely/streamparse/issues/113, for instance
which caused six.moves
to be almost empty (contained no configparser
module)
The fix was to upgrade the version of six
used.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With