canprog seems to be incompatible with newer versions of python-can.
Using the latest version of python-can yields various runtime errors.
I resolved the issues by downgrading to python-can version 2.2.1.
pip install --force-reinstall -v python-can==2.2.1