bw2 / ConfigArgParse

A drop-in replacement for argparse that allows options to also be set via config files and/or environment variables.
MIT License
722 stars 121 forks source link

ModuleNotFoundError: No module named 'ConfigArgparse' on MacOS Big Sur #204

Closed nospam2k closed 3 years ago

nospam2k commented 3 years ago

See next entry

nospam2k commented 3 years ago

python3 -c "import ConfigArgparse"
Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'ConfigArgparse'

Yet pip3 list shows: Package Version


certifi 2020.12.5 chardet 4.0.0 ConfigArgParse 1.2.3 idna 2.10 pip 20.3.3 requests 2.25.1 setuptools 41.2.0 six 1.15.0 urllib3 1.26.2 wheel 0.33.1

nospam2k commented 3 years ago

Ok, if I just put configargparse.py in the same dir as I run the command it works and if I go into /Users/david/Library/Python/3.8/lib/python/site-packages and run the command there, it also works.

bw2 commented 3 years ago

This seems to me like a problem of more than one python version installed, or PYTHONPATH set incorrectly.