pai icon indicating copy to clipboard operation
pai copied to clipboard

Config files generation fail in dev-box

Open leonfg opened this issue 8 years ago • 4 comments

pai version: 0.8.0 python paictl.py config generate -i /pai/deployment/quick-start/quick-start.yaml -o ~/pai-config -f This command will return error message 'ImportError: No module named git'. That means users should install python-git in dev-box before deployment pai. I think this package should be integrated in dev-box image, or at least add installation procedure in deployment guide document.

leonfg avatar Nov 09 '18 00:11 leonfg

GitPython is required to run the PAI command. This should be installed on dev-box.

DongZhaoYu avatar Nov 09 '18 02:11 DongZhaoYu

It has been installed https://github.com/Microsoft/pai/blob/b75ec9e102b41eb7882ddc261e64d387481aee2f/src/dev-box/build/dev-box.dockerfile#L54

Do you use the latest dev-box?

mzmssg avatar Nov 09 '18 02:11 mzmssg

checked on openpai/dev-box:v0.8.0 image, the git module can be imported.

DongZhaoYu avatar Nov 09 '18 02:11 DongZhaoYu

It has been installed

pai/src/dev-box/build/dev-box.dockerfile

Line 54 in b75ec9e pip install python-etcd docker kubernetes GitPython

Do you use the latest dev-box?

I am not sure if I reinstalled latest dev-box image yesterday. may be I used old version.

leonfg avatar Nov 09 '18 03:11 leonfg