You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the pkg_resources module is imported, which comes from the setuptools package.
If you install Certipy in a fresh environment (e.g. a new virtualenv, or via pipx, at least with Python 3.12) the module is not available and the following error occurs:
$ certipyTraceback (most recent call last): File "/home/user/repos/Certipy/venv/bin/certipy", line 5, in <module> from certipy.entry import main File "/home/user/repos/Certipy/venv/lib/python3.12/site-packages/certipy/entry.py", line 6, in <module> from certipy import version File "/home/user/repos/Certipy/venv/lib/python3.12/site-packages/certipy/version.py", line 1, in <module> import pkg_resourcesModuleNotFoundError: No module named 'pkg_resources'
As a quick fix, setuptools should be added to the install_requires section of setup.py. However, according to the setuptools docspkg_resources is deprecated anyway and should be substituted.
The text was updated successfully, but these errors were encountered:
For those that encounter the same issue, I found that injecting setuptools within the certipy-ad pipx environment helps with the error "ModuleNotFoundError: No module named 'pkg_resources":
Certipy does not only depend on
setuptools
during build time, it is also a runtime dependency because inCertipy/certipy/version.py
Line 1 in 2780d53
pkg_resources
module is imported, which comes from thesetuptools
package.If you install Certipy in a fresh environment (e.g. a new virtualenv, or via pipx, at least with Python 3.12) the module is not available and the following error occurs:
As a quick fix,
setuptools
should be added to theinstall_requires
section ofsetup.py
. However, according to the setuptools docspkg_resources
is deprecated anyway and should be substituted.The text was updated successfully, but these errors were encountered: