<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hello There, <br>
</p>
<p>I have VM called Win 11 and I create snapshot called "Snapshot1". Then I create python file to restore the VM through python script. I got error I can'y understand what is it. I search on internet  since three day I don't found  solution . I tried many example
 But I got the same error. The error is <br>
</p>
<p><br>
</p>
<p>"</p>
<div><span style="color: rgb(255, 0, 0);">AttributeError: Failed to find attribute restoreSnapshot in win 8.1</span><br>
</div>
"
<p></p>
<p><br>
</p>
<p>My python script is : \</p>
<p><br>
</p>
<p><br>
</p>
<p></p>
<div>import virtualbox<br>
import time<br>
from virtualbox.library import LockType<br>
vbox = virtualbox.VirtualBox()<br>
session = virtualbox.Session()<br>
vm = vbox.find_machine('win 8.1')<br>
vm.lock_machine(session, LockType.shared)<br>
console = session.console;<br>
machine = session.machine<br>
<br>
<br>
snapShot = vm.find_snapshot("snapshot 1");<br>
<br>
snapShotProgress = machine.restore_snapshot(snapShot);<br>
snapShotProgress.WaitForCompletion(300000);<br>
<br>
session.unlock_machine()<br>
<br>
<br>
Can Any help me and explain to me which is the problem. I snapshot is created and the Vm is run correctly. but I cannot restore the snapshot through python.
<br>
</div>
<br>
<p></p>
<p><br>
</p>
<p><br>
</p>
<div id="Signature"></div>
</div>
</body>
</html>