Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
bhadra opened this Issue · 7 comments

2 participants

@bhadra

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.

@wuub
Owner

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.

@bhadra

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

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

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.

@wuub wuub closed this
@bhadra

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?

@wuub
Owner

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.

@bhadra

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?

@wuub
Owner

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
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.