On 09/07/2018 03:46 PM, Hang Yang wrote:
Hi there,

I'm new to the DIB tool and ran into an issue when used 2.16.0 DIB tool to build a CentOS based image with pip-and-virtualenv element. It failed at https://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/elements/pip-and-virtualenv/install.d/pip-and-virtualenv-source-install/04-install-pip#L78 due to cannot find pip command.

I found the /tmp/get_pip.py was there but totally empty. I have to manually add a wget step to retreat the get_pip.py right before the failed step then it worked. But should the get_pip.py be downloaded automatically by this https://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/elements/pip-and-virtualenv/source-repository-pip-and-virtualenv ? Does anyone know how could this issue happen? Thanks in advance for any help.

Hi Hang,

Are you using a package or a source-based installation for your dib? The reason I ask is because from the docs it seems that the installation procedure for pip is quite different depending on whether you're using a package or source-based install.

Best,
-jay

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to