奥力给大大 2023-01-09 14:53 采纳率: 50%
浏览 99
已结题

superset安装

初始化 superset 数据库时失败,执行superset db upgrade报错:
(superset) [diyizu@diyizu12 ~]$ superset db upgrade

/opt/module/miniconda3/envs/superset/lib/python3.6/site-packages/sqlalchemy_utils/types/encrypted/encrypted_type.py:18: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography (40.0) will be the last to support Python 3.6.
import cryptography
Traceback (most recent call last):
File "/opt/module/miniconda3/envs/superset/bin/superset", line 5, in
from superset.cli import superset
File "/opt/module/miniconda3/envs/superset/lib/python3.6/site-packages/superset/init.py", line 21, in
from superset.app import create_app
File "/opt/module/miniconda3/envs/superset/lib/python3.6/site-packages/superset/app.py", line 45, in
from superset.security import SupersetSecurityManager
File "/opt/module/miniconda3/envs/superset/lib/python3.6/site-packages/superset/security/init.py", line 17, in
from superset.security.manager import SupersetSecurityManager # noqa: F401
File "/opt/module/miniconda3/envs/superset/lib/python3.6/site-packages/superset/security/manager.py", line 49, in
from superset.utils.core import DatasourceName, RowLevelSecurityFilterType
File "/opt/module/miniconda3/envs/superset/lib/python3.6/site-packages/superset/utils/core.py", line 70, in
from cryptography.hazmat.backends.openssl.x509 import _Certificate
ModuleNotFoundError: No module named 'cryptography.hazmat.backends.openssl.x509'

  • 写回答

6条回答 默认 最新

  • Jackyin0720 2023-01-09 15:09
    关注
    
    ModuleNotFoundError: No module named 'cryptography.hazmat.backends.openssl.x509'
    ModuleNotFoundError:没有名为“cryptography.hazmat.backends.openssl.x509”的模块
    分析:因为cryptography模块陈旧,
    思路:
    python -m pip uninstall cryptography
    python -m pip install cryptography
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(5条)

报告相同问题?

问题事件

  • 系统已结题 1月17日
  • 已采纳回答 1月9日
  • 创建了问题 1月9日

悬赏问题

  • ¥15 streamingtool
  • ¥15 MATLAB图像问题
  • ¥20 树莓派5做人脸情感识别与反馈系统
  • ¥15 selenium 控制 chrome-for-testing 在 Linux 环境下报错 SessionNotCreatedException
  • ¥15 使用pyodbc操作SQL数据库
  • ¥15 MATLAB实现下列
  • ¥30 mininet可视化打不开.mn文件
  • ¥50 C# 全屏打开Edge浏览器
  • ¥80 WEBPACK性能优化
  • ¥30 python拟合回归分析