mechboxes/mech

Not working with VM Workstation on Windows

wpbullet opened this issue · 8 comments

Really interested in this project so I tested on Windows 10 with the latest VM Workstation. I got this error

Traceback (most recent call last):
  File "C:\Python27\Scripts\mech-script.py", line 11, in <module>
    load_entry_point('mech==0.4.1', 'console_scripts', 'mech')()
  File "c:\python27\lib\site-packages\mech\__main__.py", line 92, in main
    operation(op='start', name=name, options={'gui':gui})
  File "c:\python27\lib\site-packages\mech\__main__.py", line 49, in operation
    method()
  File "c:\python27\lib\site-packages\mech\mech.py", line 43, in start
    vm = Vmrun(self.vmx)
  File "c:\python27\lib\site-packages\mech\vmrun.py", line 69, in __init__
    rh = _winreg.OpenKey( reg, r'SOFTWARE\VMware, Inc.\VMware Workstation' )
WindowsError: [Error 2] The system cannot find the file specified```

Hmm I actually wasn't able to reproduce this. What terminal emulator are you using?

I am using the Powershell terminal emulator that is now standard on Windows 10. I have tried running as an admin and as a regular user, same error.

Do you think you can check the registry for the key that VMWare Workstation installed?

Searching the registry I see these values when searching for vmware, there are more but figured I'd stop here to see if any of these are useful

Computer\HKEY_CLASSES_ROOT.nvram\VMware.VMBios\ShellNew
Computer\HKEY_CLASSES_ROOT\AppID\vmware-shell-ext-thunker.exe
Computer\HKEY_CLASSES_ROOT\Applications\vmplayer.exe
Computer\HKEY_CLASSES_ROOT\Applications\vmware.exe

I pulled a fix suggested in #9. Please reinstall and see if that fixes it for you.

I get past that error now, will continue testing, thanks for the prompt support and fix :)

Any updates here? Im going to install mech on my PC with windows 10 and hope it will work.

Well the issue is closed so I would hope that it's fixed. If it doesn't work for you, comment again and I'll reopen.