No module named 'acme.magic_typing

I have certbot vesion 2.6.0 and acme the same version. While I'm trying to run certbot I have this error:

certbot -v
An unexpected error occurred:
ModuleNotFoundError: No module named 'acme.magic_typing'
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/certbot-log-22ookg1y/log or re-run Certbot with -v for more details.

If I get it right acme.magic_typing was deprecated in recent versions. How to solve this problem and why it's happening. What versions of certbot and acme is working correctly together

Hi @AndreyPushkinA, and welcome to the LE community forum :slight_smile:

acme?
Please be more specific about the product/software in use.

2 Likes

I mean this acme · PyPI

Why do you need both?
What shows?
which certbot

2 Likes

I found the solution:

pip3 uninstall certbot certbot-nginx acme
apt install --reinstall python3-certbot-nginx python3-acme python3-certbot certbot
3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.