mech
mech copied to clipboard
json.decoder.JSONDecodeError on Windows 10 with Python 3.7.0 32-bit
I get this error when I try to run mech:
mech init bento/ubuntu-14.04
Initializing mech
Traceback (most recent call last):
File "C:\Users\clc\AppData\Local\Programs\Python\Python37-32\Scripts\mech-script.py", line 11, in
Deleted the .mech directory, and now it's working.
But now it creates four different directories with the disk files:
07/07/2018 02:32 PM <DIR> 13307551143 07/07/2018 02:33 PM <DIR> 13307551145 07/07/2018 02:33 PM <DIR> 13307551146 07/07/2018 02:33 PM <DIR> 13307551147 07/07/2018 02:32 PM <DIR> boxes 07/07/2018 02:32 PM <DIR> data
I can get it to work by copying the vmdk's to the 13307551147 folder, where the .vmx file is
python -m tarfile -l vmware_desktop.box 13307551147/Vagrantfile 13307551143/disk-s001.vmdk 13307551145/disk-s002.vmdk 13307551146/disk-s007.vmdk ... 13307551147/disk.vmdk 13307551147/metadata.json 13307551147/ubuntu-14.04-amd64.nvram 13307551147/ubuntu-14.04-amd64.vmsd 13307551147/ubuntu-14.04-amd64.vmx 13307551147/ubuntu-14.04-amd64.vmxf
while running gnu tar -xvf puts them all in the same directory
This is only happening with bento images
This is weird, it seems the error comes from reading the index file. Could you please share your ~/.mech/data/index
When the error shows.