Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1492 by denniss...@gmail.com: Sometimes I get "No usable temporary directory found ..." I/O exceptions after pybot starts executing
http://code.google.com/p/robotframework/issues/detail?id=1492

As title.
I can get this error about every 3~5 times.
Sometimes errors can have 10 consecutive times.
My platform is Windows 8 x64.

Now I have a quick workaround by adding a sleep(0.05) function before _os.unlink(filename) in _get_default_tempdir()@C:\Python27\Lib\tempfile.py, line 195.

pybot --version
Robot Framework 2.8.1 (Python 2.7 on win32)

python --version
Python 2.7


Below is my debug message:

pybot --pythonpath=.\lib .\test.
txt
[ ERROR ] Unexpected error: IOError: [Errno 2] No usable temporary directory fou
nd in [... ... ...]
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\robot\run.py", line 385, in main
    result = suite.run(settings)
File "C:\Python27\lib\site-packages\robot\running\model.py", line 184, in run
    init_global_variables(settings)
File "C:\Python27\lib\site-packages\robot\variables\__init__.py", line 39, in
init_global_variables
for name, value in [ ('${TEMPDIR}', utils.abspath(tempfile.gettempdir())),
  File "C:\Python27\lib\tempfile.py", line 256, in gettempdir
    tempdir = _get_default_tempdir()
  File "C:\Python27\lib\tempfile.py", line 203, in _get_default_tempdir
    ("No usable temporary directory found in %s" % dirlist))





--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to