docker版重启容器后,启动失败,并且运行几天后容器也会自动停止运行
Created by: yuqiangabab
Traceback (most recent call last): File "/usr/local/bin/hub", line 8, in sys.exit(main()) File "/usr/local/lib/python3.7/site-packages/paddlehub/commands/hub.py", line 64, in main command.execute(argv[1:]) File "/usr/local/lib/python3.7/site-packages/paddlehub/commands/hub.py", line 51, in execute return command.execute(argv[1:]) File "/usr/local/lib/python3.7/site-packages/paddlehub/commands/install.py", line 54, in execute module_dir=argv[0], extra=extra) File "/usr/local/lib/python3.7/site-packages/paddlehub/module/manager.py", line 199, in install_module self.all_modules(update=False) File "/usr/local/lib/python3.7/site-packages/paddlehub/module/manager.py", line 105, in all_modules valid, info = self.check_module_valid(sub_dir_path) File "/usr/local/lib/python3.7/site-packages/paddlehub/module/manager.py", line 84, in check_module_valid return True, {'version': version, 'name': _item._name} UnboundLocalError: local variable 'version' referenced before assignment