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

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日

悬赏问题

  • ¥100 需要跳转番茄畅听app的adb命令
  • ¥50 寻找一位有逆向游戏盾sdk 应用程序经验的技术
  • ¥15 请问有用MZmine处理 “Waters SYNAPT G2-Si QTOF质谱仪在MSE模式下采集的非靶向数据” 的分析教程吗
  • ¥50 opencv4nodejs 如何安装
  • ¥15 adb push异常 adb: error: 1409-byte write failed: Invalid argument
  • ¥15 nginx反向代理获取ip,java获取真实ip
  • ¥15 eda:门禁系统设计
  • ¥50 如何使用js去调用vscode-js-debugger的方法去调试网页
  • ¥15 376.1电表主站通信协议下发指令全被否认问题
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证