EsgynDB Troubleshooting-ImportError: No module named crontab

现象

EsgynDB数据库安装完成后,EsgynDB Manager管理器中的备份/还原模块报以下错误,

Failed to get schedules :, Reason : Traceback (most recent call last):
  File "/opt/trafodion/esgyndb/sql/scripts/edb_cron_scheduler.py", line 16, in <module>
    from crontab import CronTab
ImportError: No module named crontab

截图如下,
在这里插入图片描述

解决

此报错是因为缺少对应的module,需要在每个EsgynDB安装相应的module。
方法有两种,1 yum安装 2 离线安装

1 yum安装

yum install python-pip 
pip install python-crontab 

2 离线安装

yum install rpmbuild 
yum install rpmdevtools 
python-crontab-2.3.4.tar.gz
tar -xzvf python-crontab-2.3.4.tar.gz
cd python-crontab-2.3.4
./setup.py bdist_rpm
rpm -ivh dist/python-crontab-2.3.4-1.noarch.rpm

安装完成后显示正常,
在这里插入图片描述

发布了352 篇原创文章 · 获赞 400 · 访问量 73万+

猜你喜欢

转载自blog.csdn.net/Post_Yuan/article/details/95765422