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

Temporary files deleted too soon #1

Closed
tporeba opened this issue Mar 4, 2012 · 1 comment
Closed

Temporary files deleted too soon #1

tporeba opened this issue Mar 4, 2012 · 1 comment

Comments

@tporeba
Copy link

tporeba commented Mar 4, 2012

I had some problems with rfshell on my WinXP with Python 2.7. I installed the tool with pip command.
After that I got 'Permission denied' every time I tried to run the rfshell:

[ ERROR ] Parsing 'c:\docume~1\tporeba\locals~1\temp\robot_debugyigx5j.txt' fail
ed: IOError: [Errno 13] Permission denied: u'c:\\docume~1\\tporeba\\locals~1\\te
mp\\robot_debugyigx5j.txt'

Try --help for usage information.

It seems, the temporary file the tool is looking for is being deleted too soon. I found a dirty workaround and wanted to share it :) In line 167 in DebugLibrary.py I added 'delete=False', now temporary files are not removed at all.

source = tempfile.NamedTemporaryFile(prefix='robot_debug', suffix='.txt', delete=False)

Then I had to install library from fixed source and it is working.
Great thanks for the tool, I love it.

@xyb
Copy link
Owner

xyb commented Mar 13, 2012

Thank you for your report. I have release a new revision, please try it.

@xyb xyb closed this as completed Mar 14, 2012
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

No branches or pull requests

2 participants