V4.10.2升级V4.10.12 在第五步就报错这个,大佬求助

  1. Apply database changes
    Changing database schema may take a while, please wait patiently
    Detected that the JumpServer container is running. Do you want to close the container and continue to upgrade? (y/n) (default y):

[+] Running 9/9
:heavy_check_mark: Container jms_web Removed 0.4s
:heavy_check_mark: Container jms_postgresql Removed 0.3s
:heavy_check_mark: Container jms_celery Removed 11.0s
:heavy_check_mark: Container jms_core Removed 13.3s
:heavy_check_mark: Container jms_chen Removed 0.3s
:heavy_check_mark: Container jms_lion Removed 0.5s
:heavy_check_mark: Container jms_redis Removed 0.4s
:heavy_check_mark: Container jms_koko Removed 0.2s
:heavy_check_mark: Network jms_net Removed 0.3s

[+] Running 4/4
:heavy_check_mark: Network jms_net Created 0.2s
:heavy_check_mark: Container jms_redis Started 0.5s
:heavy_check_mark: Container jms_core Started 0.4s
:heavy_check_mark: Container jms_postgresql Started
/opt/py3/lib/python3.11/site-packages/httpsig/init.py:1: UserWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
from pkg_resources import get_distribution, DistributionNotFound

  1. 升级 setuptools:将系统中的 setuptools 升级至 81 或更高版本,以兼容新 API 并消除 pkg_resources 弃用警告。

  2. 代码适配:将依赖 pkg_resources 的代码替换为 importlib.metadata(Python 3.8+)或 importlib_metadata(Python 3.7 及以下)。

  3. 联系技术支持:如无法立即修改代码或不确定影响范围,建议联系 JumpServer 技术支持 获取适配帮助。