Closed augjoh closed 11 months ago
Are you using certbot 2.0? If so, try to stay at a version >=1.20 && < 2.0
I'm using the versions specified in setup-py
via INSTALL_REQUIRES
:
Successfully installed ConfigArgParse-1.5.3 PyOpenSSL-23.0.0 acme-2.1.0 certbot-2.1.0 certbot-castle-0.12.1.dev0 certifi-2022.12.7 charset-normalizer-2.1.1 configobj-5.0.6 distro-1.8.0 dkimpy-1.0.5 dnspython-2.2.1 idna-3.4 imapclient-2.3.1 josepy-1.13.0 parsedatetime-2.6 pyrfc3339-1.1 pytz-2022.7 requests-2.28.1 urllib3-1.26.13 zope.interface-5.5.2
Any specify a working set of dependencies there?
After edit
INSTALL_REQUIRES = [
'certbot<2.0',
'acme<2.0',
Client started, but after License agreement it throw 500 error. Autority server https://acme.castle.cloud still alive?
$ python3 cli.py cert --config-dir . --work-dir . --logs-dir . -e example@example.at --contact example@example.at --usage digitalSignature --usage keyEncipherment
It should work with latest version 0.13.1.
I've tried this with the latest version, but I does not install anymore:
$ git log -n1
commit 8f326dfae632be8fe0ce293bbd9d511e60b5afbb
Author: Pol Henarejos <pol.henarejos@cttc.es>
Date: Tue Apr 18 12:03:07 2023 +0200
Upgrade to version 0.13.1
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
$ pip install .
Processing /builds/platynum/certification-authority/flows/acme_email
[...]
Building wheels for collected packages: psutil
Building wheel for psutil (pyproject.toml): started
Building wheel for psutil (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Building wheel for psutil (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [43 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-310
creating build/lib.linux-x86_64-cpython-310/psutil
copying psutil/_compat.py -> build/lib.linux-x86_64-cpython-310/psutil
copying psutil/_psaix.py -> build/lib.linux-x86_64-cpython-310/psutil
copying psutil/__init__.py -> build/lib.linux-x86_64-cpython-310/psutil
copying psutil/_psbsd.py -> build/lib.linux-x86_64-cpython-310/psutil
copying psutil/_psosx.py -> build/lib.linux-x86_64-cpython-310/psutil
copying psutil/_psposix.py -> build/lib.linux-x86_64-cpython-310/psutil
copying psutil/_pslinux.py -> build/lib.linux-x86_64-cpython-310/psutil
copying psutil/_common.py -> build/lib.linux-x86_64-cpython-310/psutil
copying psutil/_pssunos.py -> build/lib.linux-x86_64-cpython-310/psutil
copying psutil/_pswindows.py -> build/lib.linux-x86_64-cpython-310/psutil
creating build/lib.linux-x86_64-cpython-310/psutil/tests
copying psutil/tests/runner.py -> build/lib.linux-x86_64-cpython-310/psutil/tests
copying psutil/tests/test_unicode.py -> build/lib.linux-x86_64-cpython-310/psutil/tests
copying psutil/tests/test_sunos.py -> build/lib.linux-x86_64-cpython-310/psutil/tests
copying psutil/tests/__init__.py -> build/lib.linux-x86_64-cpython-310/psutil/tests
copying psutil/tests/test_memleaks.py -> build/lib.linux-x86_64-cpython-310/psutil/tests
copying psutil/tests/test_testutils.py -> build/lib.linux-x86_64-cpython-310/psutil/tests
copying psutil/tests/test_linux.py -> build/lib.linux-x86_64-cpython-310/psutil/tests
copying psutil/tests/test_contracts.py -> build/lib.linux-x86_64-cpython-310/psutil/tests
copying psutil/tests/test_misc.py -> build/lib.linux-x86_64-cpython-310/psutil/tests
copying psutil/tests/test_posix.py -> build/lib.linux-x86_64-cpython-310/psutil/tests
copying psutil/tests/test_connections.py -> build/lib.linux-x86_64-cpython-310/psutil/tests
copying psutil/tests/test_bsd.py -> build/lib.linux-x86_64-cpython-310/psutil/tests
copying psutil/tests/__main__.py -> build/lib.linux-x86_64-cpython-310/psutil/tests
copying psutil/tests/test_windows.py -> build/lib.linux-x86_64-cpython-310/psutil/tests
copying psutil/tests/test_aix.py -> build/lib.linux-x86_64-cpython-310/psutil/tests
copying psutil/tests/test_system.py -> build/lib.linux-x86_64-cpython-310/psutil/tests
copying psutil/tests/test_osx.py -> build/lib.linux-x86_64-cpython-310/psutil/tests
copying psutil/tests/test_process.py -> build/lib.linux-x86_64-cpython-310/psutil/tests
running build_ext
building 'psutil._psutil_linux' extension
creating build/temp.linux-x86_64-cpython-310
creating build/temp.linux-x86_64-cpython-310/psutil
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -O2 -Os -fomit-frame-pointer -g -O2 -Os -fomit-frame-pointer -g -O2 -DTHREAD_STACK_SIZE=0x100000 -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=595 -DPy_LIMITED_API=0x03060000 -DPSUTIL_ETHTOOL_MISSING_TYPES=1 -DPSUTIL_LINUX=1 -I/usr/include/python3.10 -c psutil/_psutil_common.c -o build/temp.linux-x86_64-cpython-310/psutil/_psutil_common.o
psutil could not be installed from sources because gcc is not installed. Try running:
sudo apk add gcc python3-dev
error: command 'gcc' failed: No such file or directory
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for psutil
Failed to build psutil
ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects
@polhenarejos: Is it possible to avoid installation of a development environment somehow?
psutil
is used by the new thunderbird authenticator. In the meanwhile, if you do not use this, comment line 20 of thunderbird.py
where import psutil
and edit setup.py
to remove psutil
dependence. You won't be able to run this authenticator, but it should not fail.
I will figure out how to solve it.
gcc
is necessary to build acme_email
.
The client does not start anymore. I'm using the following command on latest alpine: