sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #48400
Re: [Question #673348]: using xlrd: Error attempting to delete file after wb.release_resources()
Question #673348 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/673348
Ron Turrentine posted a new comment:
I think I may have found a clue as to the possible root cause of my
issue.
I tried deleting the file using the subprocess library. I tried it with
both the "Popen" And "call" methods. Both failed, giving me an error of
"OSError: [Errno 2] No such file or directory ". Both the file &
directory indeed exist.
So I decided to try a simple "dir" command on the directory in question.
It also returned a "No such file or directory" error.
Intrigued, I decided to simplify my test. I ran the following script to
run a simple "dir" command at the root of my C: drive (the script
follows this post). It also returned a "No such file or directory" error
(see the notes following the script for the verbose error returned by
Sikuli).
Am I running this command with the correct syntax? Or is there possibly
a problem with the subprocess on Windows 10?
Raiman, would love to hear your input on this.
Thanks,
Ron
####################
import subprocess
ret = subprocess.Popen(["dir","c:\\"],
stdout=subprocess.PIPE).communicate()
print ret
###################
[error] script [ TestPopen ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last): File "\\corpDpt02\CHMShare\Testing_Services\Automation Comparison\Sikuli Scripts\TestPopen.sikuli\TestPopen.py", line 3, in <module> ret = subprocess.Popen(["dir","c:\\"], stdout=subprocess.PIPE).communicate() File "C:\Users\bye8557\AppData\Roaming\Sikulix\Lib\subprocess.py", line 859, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\bye8557\AppData\Roaming\Sikulix\Lib\subprocess.py", line 1369, in _execute_child raise OSError(errno.ENOENT, os.strerror(errno.ENOENT)) OSError: [Errno 2] No such file or directory
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.