Duo_client_python NotADirectoryError

I am unable to execute the example Python API script (report_users_and_phones.py)that is published on DUO’s Github page.
GitHub - duosecurity/duo_client_python

I am receiving the following error:

.env/lib/python3.8/site-packages/duo_client-4.3.2-py3.8.egg/duo_client/https_wrapper.py", line 77, in __init__

NotADirectoryError: [Errno 20] Not a directory

I have tried installing python certifi and relinking the certificate, but I’m still getting an error. Any help appreciated.