Skip to content
This repository

error: WindowsError(5, 'Access is denied.') #41

Closed
bhadra opened this Issue May 14, 2012 · 7 comments

2 participants

Srijit Kumar Bhadra Wojciech Bederski
Srijit Kumar Bhadra
bhadra commented May 14, 2012

With the recent version of SublimeREPL (v1.0.31) on Sublime Text 2 (Windows 7 32-bit), I am always getting the error "error: WindowsError(5, 'Access is denied.')", whenever I try to run Python REPL or Node REPL. I have not tried REPLs of other languages.

This problem was not happening with the previous version of SublimeREPL. Even after uninstalling, rebooting Windows 7 and installing SublimeREPL, this WindowsError is repeatedly coming. In other words it is no longer possible to use SublimeREPL on Windows 7 32-bit with Sublime Text 2. I have to uninstall SublimeREPL v1.0.31 for good.

I have always used SublimeREPL through http://wbond.net/sublime_packages/community. Please provide the previous version in http://wbond.net/sublime_packages/community.

Wojciech Bederski
Owner
wuub commented May 14, 2012

OK. I was able to reproduce this problem. Basically it seems that non admin accounts on Win7 are unable to launch any repl. For now please use 1.0.20.zip from here https://github.com/wuub/SublimeREPL/tags and I'll try to fix it ASAP.

Srijit Kumar Bhadra
bhadra commented May 14, 2012

Thank you for your support. For now, I am using SublimeREPL 1.0.20. I look forward to your fix.

Wojciech Bederski wuub referenced this issue from a commit May 14, 2012
Wojciech Bederski Fix issue #41 WindowsError(5, 'Access is denied.') at the cost of bri…
…nging back runaway processes bug :/
930a019
Wojciech Bederski
Owner
wuub commented May 14, 2012

1.0.32 should show up in Package Control very soon.

Keep in mind that what this fix also reintroduces runaway process problem for non-admin users on Windows. If you're using Python or Node, you're OK, but anyone launching REPLs that use *.bat files (irb, clojure, ...) should try to get admin rights instead.

Wojciech Bederski wuub closed this May 14, 2012
Srijit Kumar Bhadra
bhadra commented May 14, 2012

should try to get admin rights instead.

Which folders should have admin rights? For example, should the corresponding Python or Clojure installation folder have admin rights?

Wojciech Bederski
Owner
wuub commented May 15, 2012

I was able to reproduce this problem when ST2 was started in the context of non Administrator user (Shift, RightClick -> Run as user...). But willy1234x1 is reporting, that user with administrator rights can experiencing similar problem, so it might not be the main reason.

Srijit Kumar Bhadra
bhadra commented May 15, 2012

I guess that you may be right. Does killableprocess require only administrative rights? Otherwise, why do you require that ST2 should be started as an Administrative user?

Wojciech Bederski
Owner
wuub commented May 15, 2012

Does killableprocess require only administrative rights?

To be honest, I'm not sure. On Linux/OSX killableprocess uses process groups and then issues .killpg() instead of simple .kill() w/o any additional rights required. On windows things looks a bit different, you have to create a Job object and assign processes to it to kill them reliably.

why do you require that ST2 should be started as an Administrative user

It seems that for some users (right now my best bet is that it's connected with being local admin) creating a job (windll.kernel32.CreateJobObjectW()) fails with WindowsError(5, 'Access is denied.').

FWIW 1.0.32 doesn't require any additional rights, killable process first checks if it will be able to create Job object and fallbacks to a simpler version instead of dying with WindowsError. It's not ideal but at least it works.

Kannon Kannon referenced this issue in SublimeCodeIntel/SublimeCodeIntel March 04, 2013
Open

Access Denied Error on Windows 7 64 bit as Admin User #132

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.