On 5/31/23 16:06, Adriano Barbosa wrote:
> Hi.
> I'm getting the error below while trying to run certbot from ports on
> 7.3. It runs after installing py3-setuptools. Should it be added in
> RUN_DEPENDS?
From https://setuptools.pypa.io/en/latest/pkg_resources.html
> Use of |pkg_resources| is deprecated in favor of |importlib.resources|
<https://docs.python.org/3/library/importlib.resources.html#module-importlib.resources>,
|importlib.metadata|
<https://docs.python.org/3/library/importlib.metadata.html#module-importlib.metadata>
and their backports (importlib_resources
<https://pypi.org/project/importlib_resources>, importlib_metadata
<https://pypi.org/project/importlib_metadata>). Users should refrain
from new usage of |pkg_resources| and should work to port to
importlib-based solutions.
Someone with enough enthusiasm should tell upstream.
OK aisha@ to add RUN_DEPENDS.
> Obrigado!
> --
> Adriano
>
>
> $ certbot --version
> Traceback (most recent call last):
> File "/usr/local/bin/certbot", line 5, in <module>
> from certbot.main import main
> File "/usr/local/lib/python3.10/site-packages/certbot/main.py", line 6, in <module>
> from certbot._internal import main as internal_main
> File "/usr/local/lib/python3.10/site-packages/certbot/_internal/main.py", line 28, in <module>
> from certbot import configuration
> File "/usr/local/lib/python3.10/site-packages/certbot/configuration.py", line 11, in <module>
> from certbot import util
> File "/usr/local/lib/python3.10/site-packages/certbot/util.py", line 26, in <module>
> from certbot._internal import constants
> File "/usr/local/lib/python3.10/site-packages/certbot/_internal/constants.py", line 6, in <module>
> import pkg_resources
> ModuleNotFoundError: No module named 'pkg_resources'
>
No comments:
Post a Comment