Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

vmdkops_admin.py - ImportError: No module named argparse #647

Closed
hreidar opened this issue Oct 26, 2016 · 3 comments
Closed

vmdkops_admin.py - ImportError: No module named argparse #647

hreidar opened this issue Oct 26, 2016 · 3 comments
Labels
Milestone

Comments

@hreidar
Copy link

hreidar commented Oct 26, 2016

Any idea on how to fix this?

/tmp # esxcli --version
Script 'esxcli' version: 5.5.0
/tmp #
/tmp # esxcli software vib install --no-sig-check -v /tmp/vmware-esx-vmd
kops-1.0.beta.vib

Installation Result
Message: Operation finished successfully.
Reboot Required: false
VIBs Installed: VMWare_bootbank_esx-vmdkops-service_1.0.0-0.0.1
VIBs Removed:
VIBs Skipped:
/tmp #
/tmp #
/tmp # /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py ls
Traceback (most recent call last):
File "/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py", line 18, in
import argparse
ImportError: No module named argparse
/tmp #

@msterin msterin added this to the 0.8 release milestone Oct 26, 2016
@msterin msterin added the P1 label Oct 26, 2016
@msterin
Copy link
Contributor

msterin commented Oct 26, 2016

Thanks for reporting this one. Per Readme.md we tested on ESX 6.0 and newer.

It looks like you are running 5.5. It does not have some Python modules (argsparse is one of them).

But I agree the behavior is wrong, we should either block VIB install or provide a clear failure message.

//CC @pdhamdhere

@msterin msterin assigned kerneltime and unassigned kerneltime Oct 27, 2016
@msterin
Copy link
Contributor

msterin commented Oct 27, 2016

An update - there is more in the code dependent on ESX 6.0, so we currently do not plan to support ESX 5.5

@kerneltime - we need to block install on pre-6.0 ESX using in VIB XML.

@pdhamdhere
Copy link
Contributor

Fixed with #674

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants