Closed sec13b closed 2 hours ago
└─$ python3 -m pip install conpass Defaulting to user installation because normal site-packages is not writeable DEPRECATION: Loading egg at /usr/local/lib/python3.12/dist-packages/cffi-1.17.1-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation. Discussion can be found at https://github.com/pypa/pip/issues/12330 DEPRECATION: Loading egg at /usr/local/lib/python3.12/dist-packages/pyOpenSSL-24.0.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation. Discussion can be found at https://github.com/pypa/pip/issues/12330 DEPRECATION: Loading egg at /usr/local/lib/python3.12/dist-packages/cryptography-42.0.8-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation. Discussion can be found at https://github.com/pypa/pip/issues/12330 DEPRECATION: Loading egg at /usr/local/lib/python3.12/dist-packages/impacket-0.13.0.dev0+20240916.171021.65b774de-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation. Discussion can be found at https://github.com/pypa/pip/issues/12330 DEPRECATION: Loading egg at /usr/local/lib/python3.12/dist-packages/pycparser-2.22-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation. Discussion can be found at https://github.com/pypa/pip/issues/12330 Collecting conpass Downloading conpass-0.1.2-py3-none-any.whl.metadata (2.8 kB) Collecting python-ldap (from conpass) Downloading python-ldap-3.4.4.tar.gz (377 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: impacket in /usr/local/lib/python3.12/dist-packages/impacket-0.13.0.dev0+20240916.171021.65b774de-py3.12.egg (from conpass) (0.13.0.dev0+20240916.171021.65b774de) Requirement already satisfied: rich in /usr/lib/python3/dist-packages (from conpass) (13.7.1) Requirement already satisfied: pyasn1>=0.2.3 in ./.local/lib/python3.12/site-packages (from impacket->conpass) (0.4.8) Requirement already satisfied: pyasn1_modules in ./.local/lib/python3.12/site-packages (from impacket->conpass) (0.3.0) Requirement already satisfied: pycryptodomex in /usr/lib/python3/dist-packages (from impacket->conpass) (3.20.0) Requirement already satisfied: pyOpenSSL==24.0.0 in /usr/local/lib/python3.12/dist-packages/pyOpenSSL-24.0.0-py3.12.egg (from impacket->conpass) (24.0.0) Requirement already satisfied: six in /usr/lib/python3/dist-packages (from impacket->conpass) (1.16.0) Requirement already satisfied: ldap3!=2.5.0,!=2.5.2,!=2.6,>=2.5 in /usr/lib/python3/dist-packages (from impacket->conpass) (2.9.1) Requirement already satisfied: ldapdomaindump>=0.9.0 in /usr/lib/python3/dist-packages (from impacket->conpass) (0.9.4) Requirement already satisfied: flask>=1.0 in /usr/lib/python3/dist-packages (from impacket->conpass) (3.0.3) Requirement already satisfied: setuptools in ./.local/lib/python3.12/site-packages (from impacket->conpass) (75.2.0) Requirement already satisfied: charset_normalizer in /usr/lib/python3/dist-packages (from impacket->conpass) (3.3.2) Requirement already satisfied: cryptography<43,>=41.0.5 in /usr/local/lib/python3.12/dist-packages/cryptography-42.0.8-py3.12-linux-x86_64.egg (from pyOpenSSL==24.0.0->impacket->conpass) (42.0.8) Requirement already satisfied: markdown-it-py>=2.2.0 in /usr/lib/python3/dist-packages (from rich->conpass) (3.0.0) Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /usr/lib/python3/dist-packages (from rich->conpass) (2.18.0) Requirement already satisfied: Werkzeug>=3.0.0 in /usr/lib/python3/dist-packages (from flask>=1.0->impacket->conpass) (3.0.4) Requirement already satisfied: Jinja2>=3.1.2 in /usr/lib/python3/dist-packages (from flask>=1.0->impacket->conpass) (3.1.3) Requirement already satisfied: itsdangerous>=2.1.2 in /usr/lib/python3/dist-packages (from flask>=1.0->impacket->conpass) (2.2.0) Requirement already satisfied: click>=8.1.3 in /usr/lib/python3/dist-packages (from flask>=1.0->impacket->conpass) (8.1.7) Requirement already satisfied: blinker>=1.6.2 in /usr/lib/python3/dist-packages (from flask>=1.0->impacket->conpass) (1.8.2) Requirement already satisfied: mdurl~=0.1 in /usr/lib/python3/dist-packages (from markdown-it-py>=2.2.0->rich->conpass) (0.1.2) Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.12/dist-packages/cffi-1.17.1-py3.12-linux-x86_64.egg (from cryptography<43,>=41.0.5->pyOpenSSL==24.0.0->impacket->conpass) (1.17.1) Requirement already satisfied: MarkupSafe>=2.1.1 in /usr/lib/python3/dist-packages (from Werkzeug>=3.0.0->flask>=1.0->impacket->conpass) (2.1.5) Requirement already satisfied: pycparser in /usr/local/lib/python3.12/dist-packages/pycparser-2.22-py3.12.egg (from cffi>=1.12->cryptography<43,>=41.0.5->pyOpenSSL==24.0.0->impacket->conpass) (2.22) Downloading conpass-0.1.2-py3-none-any.whl (18 kB) Building wheels for collected packages: python-ldap Building wheel for python-ldap (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for python-ldap (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [83 lines of output] /tmp/pip-build-env-xp4qcd8_/overlay/local/lib/python3.12/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite' warnings.warn(msg) running bdist_wheel running build running build_py creating build/lib.linux-x86_64-cpython-312 copying Lib/ldapurl.py -> build/lib.linux-x86_64-cpython-312 copying Lib/ldif.py -> build/lib.linux-x86_64-cpython-312 creating build/lib.linux-x86_64-cpython-312/ldap copying Lib/ldap/__init__.py -> build/lib.linux-x86_64-cpython-312/ldap copying Lib/ldap/async.py -> build/lib.linux-x86_64-cpython-312/ldap copying Lib/ldap/asyncsearch.py -> build/lib.linux-x86_64-cpython-312/ldap copying Lib/ldap/cidict.py -> build/lib.linux-x86_64-cpython-312/ldap copying Lib/ldap/compat.py -> build/lib.linux-x86_64-cpython-312/ldap copying Lib/ldap/constants.py -> build/lib.linux-x86_64-cpython-312/ldap copying Lib/ldap/dn.py -> build/lib.linux-x86_64-cpython-312/ldap copying Lib/ldap/filter.py -> build/lib.linux-x86_64-cpython-312/ldap copying Lib/ldap/functions.py -> build/lib.linux-x86_64-cpython-312/ldap copying Lib/ldap/ldapobject.py -> build/lib.linux-x86_64-cpython-312/ldap copying Lib/ldap/logger.py -> build/lib.linux-x86_64-cpython-312/ldap copying Lib/ldap/modlist.py -> build/lib.linux-x86_64-cpython-312/ldap copying Lib/ldap/pkginfo.py -> build/lib.linux-x86_64-cpython-312/ldap copying Lib/ldap/resiter.py -> build/lib.linux-x86_64-cpython-312/ldap copying Lib/ldap/sasl.py -> build/lib.linux-x86_64-cpython-312/ldap copying Lib/ldap/syncrepl.py -> build/lib.linux-x86_64-cpython-312/ldap creating build/lib.linux-x86_64-cpython-312/ldap/controls copying Lib/ldap/controls/__init__.py -> build/lib.linux-x86_64-cpython-312/ldap/controls copying Lib/ldap/controls/deref.py -> build/lib.linux-x86_64-cpython-312/ldap/controls copying Lib/ldap/controls/libldap.py -> build/lib.linux-x86_64-cpython-312/ldap/controls copying Lib/ldap/controls/openldap.py -> build/lib.linux-x86_64-cpython-312/ldap/controls copying Lib/ldap/controls/pagedresults.py -> build/lib.linux-x86_64-cpython-312/ldap/controls copying Lib/ldap/controls/ppolicy.py -> build/lib.linux-x86_64-cpython-312/ldap/controls copying Lib/ldap/controls/psearch.py -> build/lib.linux-x86_64-cpython-312/ldap/controls copying Lib/ldap/controls/pwdpolicy.py -> build/lib.linux-x86_64-cpython-312/ldap/controls copying Lib/ldap/controls/readentry.py -> build/lib.linux-x86_64-cpython-312/ldap/controls copying Lib/ldap/controls/sessiontrack.py -> build/lib.linux-x86_64-cpython-312/ldap/controls copying Lib/ldap/controls/simple.py -> build/lib.linux-x86_64-cpython-312/ldap/controls copying Lib/ldap/controls/sss.py -> build/lib.linux-x86_64-cpython-312/ldap/controls copying Lib/ldap/controls/vlv.py -> build/lib.linux-x86_64-cpython-312/ldap/controls creating build/lib.linux-x86_64-cpython-312/ldap/extop copying Lib/ldap/extop/__init__.py -> build/lib.linux-x86_64-cpython-312/ldap/extop copying Lib/ldap/extop/dds.py -> build/lib.linux-x86_64-cpython-312/ldap/extop copying Lib/ldap/extop/passwd.py -> build/lib.linux-x86_64-cpython-312/ldap/extop creating build/lib.linux-x86_64-cpython-312/ldap/schema copying Lib/ldap/schema/__init__.py -> build/lib.linux-x86_64-cpython-312/ldap/schema copying Lib/ldap/schema/models.py -> build/lib.linux-x86_64-cpython-312/ldap/schema copying Lib/ldap/schema/subentry.py -> build/lib.linux-x86_64-cpython-312/ldap/schema copying Lib/ldap/schema/tokenizer.py -> build/lib.linux-x86_64-cpython-312/ldap/schema creating build/lib.linux-x86_64-cpython-312/slapdtest copying Lib/slapdtest/__init__.py -> build/lib.linux-x86_64-cpython-312/slapdtest copying Lib/slapdtest/_slapdtest.py -> build/lib.linux-x86_64-cpython-312/slapdtest running egg_info writing Lib/python_ldap.egg-info/PKG-INFO writing dependency_links to Lib/python_ldap.egg-info/dependency_links.txt writing requirements to Lib/python_ldap.egg-info/requires.txt writing top-level names to Lib/python_ldap.egg-info/top_level.txt reading manifest file 'Lib/python_ldap.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' no previously-included directories found matching 'Doc/.build' adding license file 'LICENCE' writing manifest file 'Lib/python_ldap.egg-info/SOURCES.txt' creating build/lib.linux-x86_64-cpython-312/slapdtest/certs copying Lib/slapdtest/certs/README -> build/lib.linux-x86_64-cpython-312/slapdtest/certs copying Lib/slapdtest/certs/ca.conf -> build/lib.linux-x86_64-cpython-312/slapdtest/certs copying Lib/slapdtest/certs/ca.pem -> build/lib.linux-x86_64-cpython-312/slapdtest/certs copying Lib/slapdtest/certs/client.conf -> build/lib.linux-x86_64-cpython-312/slapdtest/certs copying Lib/slapdtest/certs/client.key -> build/lib.linux-x86_64-cpython-312/slapdtest/certs copying Lib/slapdtest/certs/client.pem -> build/lib.linux-x86_64-cpython-312/slapdtest/certs copying Lib/slapdtest/certs/gencerts.sh -> build/lib.linux-x86_64-cpython-312/slapdtest/certs copying Lib/slapdtest/certs/gennssdb.sh -> build/lib.linux-x86_64-cpython-312/slapdtest/certs copying Lib/slapdtest/certs/server.conf -> build/lib.linux-x86_64-cpython-312/slapdtest/certs copying Lib/slapdtest/certs/server.key -> build/lib.linux-x86_64-cpython-312/slapdtest/certs copying Lib/slapdtest/certs/server.pem -> build/lib.linux-x86_64-cpython-312/slapdtest/certs running build_ext building '_ldap' extension creating build/temp.linux-x86_64-cpython-312/Modules x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -DHAVE_SASL -DHAVE_TLS -DLDAPMODULE_VERSION=3.4.4 "-DLDAPMODULE_AUTHOR=python-ldap project" "-DLDAPMODULE_LICENSE=Python style" -IModules -I/usr/include/python3.12 -c Modules/LDAPObject.c -o build/temp.linux-x86_64-cpython-312/Modules/LDAPObject.o In file included from Modules/LDAPObject.c:3: Modules/common.h:15:10: fatal error: lber.h: No such file or directory 15 | #include <lber.h> | ^~~~~~~~ compilation terminated. error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for python-ldap Failed to build python-ldap ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (python-ldap)
└─$ python --version Python 3.12.6
sudo apt install python3-ldap sudo apt install python-is-python3 python3 -m pip install conpass
solve. thank you