ITPub博客

首页 > 数据库 > > TroubleshootingImportError: Nomodule named crontab

TroubleshootingImportError: Nomodule named crontab

作者:TTT1234 时间:2022-07-18 16:06:32 0 删除 编辑

现象

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


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69953058/viewspace-3132396/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-11-13

  • 博文量
    566
  • 访问量
    5204