宝塔用户_rlwsox 发表于 2026-2-12 11:24:58

系统升级出现问题

出错了,面板运行时发生错误!ModuleNotFoundError: No module named 'cryptography.hazmat.primitives.asymmetric.ec'
REQUEST_DATE: 2026-02-12 11:20:36VERSION: CentOS7.9.2009 x86_64(Py3.7.9) - 11.5.0 REMOTE_ADDR: 223.90.99.172 REQUEST_URI: GET /?REQUEST_FORM: {}USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36Traceback (most recent call last):File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1823, in full_dispatch_request    rv = self.dispatch_request()File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request    return self.ensure_sync(self.view_functions)(**view_args)File "/www/server/panel/BTPanel/__init__.py", line 529, in home    comReturn = comm.local()File "class/common.py", line 134, in local    result = self.setSession()File "class/common.py", line 149, in setSession    import configFile "class/config.py", line 16, in <module>    from webauthn_util import WebAuthnFile "class/webauthn_util.py", line 12, in <module>    from webauthn import (File "class/webauthn/__init__.py", line 1, in <module>    from .registration.generate_registration_options import generate_registration_optionsFile "class/webauthn/registration/generate_registration_options.py", line 3, in <module>    from webauthn.helpers import generate_challenge, generate_user_handle, byteslike_to_bytesFile "class/webauthn/helpers/__init__.py", line 6, in <module>    from .decoded_public_key_to_cryptography import decoded_public_key_to_cryptographyFile "class/webauthn/helpers/decoded_public_key_to_cryptography.py", line 5, in <module>    from cryptography.hazmat.primitives.asymmetric.ec import (ModuleNotFoundError: No module named 'cryptography.hazmat.primitives.asymmetric.ec'
麻烦看下怎么修复 修复 修复
页: [1]
查看完整版本: 系统升级出现问题