obdeploy icon indicating copy to clipboard operation
obdeploy copied to clipboard

obd编译成功,执行报错

Open ChrisYuan opened this issue 3 years ago • 4 comments

编译一切正常,执行obd命令,报错信息如下:

[chris@obdeploy ~]$ obd Traceback (most recent call last): File "obd.py", line 32, in File "/usr/lib/python2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 391, in load_module exec(bytecode, module.dict) File "core.py", line 32, in File "/usr/lib/python2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 391, in load_module exec(bytecode, module.dict) File "prettytable.py", line 46, in File "/usr/lib/python2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 391, in load_module exec(bytecode, module.dict) File "wcwidth/init.py", line 12, in File "/usr/lib/python2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 391, in load_module exec(bytecode, module.dict) File "wcwidth/wcwidth.py", line 79, in ImportError: No module named functools_lru_cache [30322] Failed to execute script obd [chris@obdeploy ~]$

ChrisYuan avatar May 08 '22 11:05 ChrisYuan

请提供下OS版本、Python版本和pyinstaller版本

frf12 avatar May 09 '22 02:05 frf12

配置信息如下,看是否还需要其他内容信息,我可以再补充:

CentOS Linux release 7.9.2009 (Core)

Python 2.7.5

[chris@obdeploy ~]$ pyinstaller -v 3.6

ChrisYuan avatar May 09 '22 03:05 ChrisYuan

我也遇到了同样的问题,我是Ubuntu16.04 Python3.8

changtonghf avatar May 18 '22 15:05 changtonghf

~/CLionProjects/OceanBase/obdeploy$ obd cluster deploy c1 -c ./example/mini-local-example.yaml Traceback (most recent call last): File "obd.py", line 32, in File "/usr/local/lib/python3.8/site-packages/PyInstaller/loader/pyimod03_importers.py", line 623, in exec_module exec(bytecode, module.dict) File "core.py", line 32, in from prettytable import PrettyTable File "/usr/local/lib/python3.8/site-packages/PyInstaller/loader/pyimod03_importers.py", line 623, in exec_module exec(bytecode, module.dict) File "site-packages/prettytable/init.py", line 48, in File "importlib/metadata.py", line 530, in version File "importlib/metadata.py", line 503, in distribution File "importlib/metadata.py", line 177, in from_name importlib.metadata.PackageNotFoundError: prettytable [9695] Failed to execute script obd

changtonghf avatar May 18 '22 15:05 changtonghf

You can use the latest version of OBD code for compilation. If you still have any issues, please open a new issue to ask your question.

gys-git avatar Jul 03 '24 08:07 gys-git