centos7部署hub服务模式报错
Created by: fociceo
按照官方的serving配置说明,做到了hub install deploy/hubserving/ocr_system/命令,等了很久后,报如下错误: Traceback (most recent call last): File "/usr/local/python3/bin/hub", line 8, in sys.exit(main()) File "/usr/local/python3/lib/python3.7/site-packages/paddlehub/commands/hub.py", line 64, in main command.execute(argv[1:]) File "/usr/local/python3/lib/python3.7/site-packages/paddlehub/commands/hub.py", line 51, in execute return command.execute(argv[1:]) File "/usr/local/python3/lib/python3.7/site-packages/paddlehub/commands/install.py", line 54, in execute module_dir=argv[0], extra=extra) File "/usr/local/python3/lib/python3.7/site-packages/paddlehub/module/manager.py", line 199, in install_module self.all_modules(update=False) File "/usr/local/python3/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/python3/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