sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #34837
[Question #271968]: How can I avoid: “ZipFile instance has no attribute '__exit__''” when extracting a zip file?
New question #271968 on Sikuli:
https://answers.launchpad.net/sikuli/+question/271968
hello,
[1]
The structure is: .bat file triggers a .py file
The bat file reads: start /i /b /wait C:\Sikuli\Downloads\runIDE.cmd -r "C:\automat\end2end.sikuli"
The code inside .py is :
import zipfile
with zipfile.ZipFile('test.jar', 'r') as z:
z.extractall(r"C:\testfolder")
This code produces:
AttributeError ( ZipFile instance has no attribute '__exit__' )
[2]
note: The code from "test.py" works when run from python idle. I am running python v2.7.10
note: Other methods (that i tried) from zip module do not return any issues.
Take care
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.