tuna / opentuna

TUNA on AWS
https://opentuna.cn
Apache License 2.0
143 stars 6 forks source link

cert renew job failed on installing dependencies #134

Closed zxkane closed 3 years ago

zxkane commented 3 years ago

failed on installing dependencies

Reproduction Steps

run renew cert job,

An unexpected error occurred:
--
980 | pkg_resources.ContextualVersionConflict: (cryptography 3.1.1 (/usr/local/lib/python3.7/dist-packages), Requirement.parse('cryptography>=3.2'), {'PyOpenSSL'})
981 | Please see the logfile '/tmp/tmpwtu2kod2/log' for more details.
982 | An unexpected error occurred:
983 | pkg_resources.ContextualVersionConflict: (cryptography 3.1.1 (/usr/local/lib/python3.7/dist-packages), Requirement.parse('cryptography>=3.2'), {'PyOpenSSL'})
984 | Please see the logfile '/tmp/tmp8vmdzb23/log' for more details.
985 | An unexpected error occurred:
986 | pkg_resources.ContextualVersionConflict: (cryptography 3.1.1 (/usr/local/lib/python3.7/dist-packages), Requirement.parse('cryptography>=3.2'), {'PyOpenSSL', 'pyOpenSSL'})
987 | Please see the logfile '/tmp/tmp10x2xjnx/log' for more details.
988 | An unexpected error occurred:
989 | pkg_resources.ContextualVersionConflict: (cryptography 3.1.1 (/usr/local/lib/python3.7/dist-packages), Requirement.parse('cryptography>=3.2'), {'PyOpenSSL'})
990 | Please see the logfile '/tmp/tmpjvcxn5u6/log' for more details.
991 | An unexpected error occurred:
992 | pkg_resources.ContextualVersionConflict: (cryptography 3.1.1 (/usr/local/lib/python3.7/dist-packages), Requirement.parse('cryptography>=3.2'), {'PyOpenSSL'})
993 | Please see the logfile '/tmp/tmpho5dbotb/log' for more details.

Error Log

Environment

Other


This is :bug: Bug Report

zxkane commented 3 years ago

Still failing with below error,

pyopenssl 20.0.1 has requirement cryptography>=3.2, but you'll have cryptography 2.6.1 which is incompatible.
--
975 | Installing collected packages: PyOpenSSL, josepy, parsedatetime, configobj, distro, pytz, zope.interface, idna, urllib3, certifi, chardet, requests, requests-toolbelt, pyrfc3339, acme, zope.proxy, zope.deferredimport, zope.event, zope.deprecation, zope.hookable, zope.component, ConfigArgParse, certbot, jmespath, python-dateutil, botocore, s3transfer, boto3, certbot-dns-route53

Looks like there are built-in cryptography in debian:buster. We have to explicitly pin both pyopenssl and cryptography.

zxkane commented 3 years ago

resolved by #139