Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mech destroy has OSError after running vmrun deleteVM #57

Open
dodo5522 opened this issue May 4, 2019 · 0 comments
Open

mech destroy has OSError after running vmrun deleteVM #57

dodo5522 opened this issue May 4, 2019 · 0 comments

Comments

@dodo5522
Copy link

dodo5522 commented May 4, 2019

mech destroy had OSError on my environment VMWare Fusion 11 with macOS High Sierra.
It seems that vmrun deleteVM has removed VM's instance path after vmrun deleteVM.

$ mech destroy
Are you sure you want to delete mechtest at /Users/takashi/Development/mechtest [y/N] y
Deleting...
Traceback (most recent call last):
  File "/usr/local/bin/mech", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/site-packages/mech/__main__.py", line 39, in main
    return Mech(arguments)()
  File "/usr/local/lib/python2.7/site-packages/mech/command.py", line 89, in __call__
    obj = klass(arguments)
  File "/usr/local/lib/python2.7/site-packages/mech/mech.py", line 720, in destroy
    shutil.rmtree(mech_path)
  File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 262, in rmtree
    onerror(os.listdir, path, sys.exc_info())
  File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 260, in rmtree
    names = os.listdir(path)
OSError: [Errno 2] No such file or directory: '/Users/takashi/Development/mechtest/.mech'
dodo5522 pushed a commit to dodo5522/mech that referenced this issue May 4, 2019
dodo5522 pushed a commit to dodo5522/mech that referenced this issue May 4, 2019
dodo5522 pushed a commit to dodo5522/mech that referenced this issue May 4, 2019
dodo5522 pushed a commit to dodo5522/mech that referenced this issue Aug 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant