When I click on the website SSL settings, it will show:
An error occurred while the panel was running!
ModuleNotFoundError: No module named 'dns.resolver'

Traceback (most recent call last):
File "/www/server/panel/class/acme_v2.py", line 37, in
import dns.resolver
ModuleNotFoundError: No module named 'dns.resolver'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/www/server/panel/BTPanel/init.py", line 1688, in publicObject
return run_exec().run(toObject, defs, get)
File "/home/www/server/panel/BTPanel/init.py", line 1636, in run
result = getattr(toObject,get.action)(get)
File "class/panelSite.py", line 2184, in GetSSL
import acme_v2
File "/www/server/panel/class/acme_v2.py", line 40, in
import dns.resolver
ModuleNotFoundError: No module named 'dns.resolver'

My OS is debian,
after I run "btpip install dnsPython",
it shows Requirement already satisfied: dnsPython in /home/www/server/panel/pyenv/lib/python3.7/site-packages (1.16.0)

I can successfully install a python3-dnspython with "apt install python3-dnspython", but it still doesn't work in aapanel, it still reports the no module named 'dns.resolver'

What do I need to do to use ssl normally? thank you!

    aaP_puyang

    Requirement already compatible: dnsPython in /home/www/server/panel/pyenv/lib/python3.7/site-packages (1.16.0)

    this is normal. Have you restarted the panel after executing the command? Is it normal now?
    btpip install dnsPython
    bt 1

    After uninstalling and reinstalling, it works fine, thank you!

    Every time I restart, this problem recurs several times. Whether I uninstall python3-dnspython or not, btpip will prompt me that dnsPython already exists. But in the aapanel, it still reports that the module named 'dns.resolver is not found. My system is Debian 11

      aaP_puyang
      The panel uses the module installed by btpip, will it reproduce after restarting?
      btpip install dnsPython
      bt 1