question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installation for PyJNIus - PermissionError: [WinError 5] Acess denied

See original GitHub issue

I have tried the following measures, but error still pops up

Run the cmd in administrator role Set myself as pycham and python files in administrator role Used pip install --user PyJNIus Used python -m pip install --user PyJNIus Closed Pycham, and run cmd in administrator role I am already having the highest access right for all files Can anyone help me out?

C:\WINDOWS\system32>python -m pip install --user PyJNIus
Collecting PyJNIus
  Using cached pyjnius-1.2.1.tar.gz (40 kB)
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\tom\AppData\Local\Programs\Python\Python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\tom\\AppData\\Local\\Temp\\pip-install-ueh9n_76\\PyJNIus\\setup.py'"'"'; __file__='"'"'C:\\Users\\tom\\AppData\\Local\\Temp\\pip-install-ueh9n_76\\PyJNIus\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\tom\AppData\Local\Temp\pip-install-ueh9n_76\PyJNIus\pip-egg-info'
         cwd: C:\Users\tom\AppData\Local\Temp\pip-install-ueh9n_76\PyJNIus\
    Complete output (15 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\tom\AppData\Local\Temp\pip-install-ueh9n_76\PyJNIus\setup.py", line 92, in <module>
        compile_native_invocation_handler(*get_possible_homes(PLATFORM))
      File "C:\Users\tom\AppData\Local\Temp\pip-install-ueh9n_76\PyJNIus\setup.py", line 82, in compile_native_invocation_handler
        subprocess.check_call([
      File "C:\Users\tom\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 359, in check_call
        retcode = call(*popenargs, **kwargs)
      File "C:\Users\tom\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 340, in call
        with Popen(*popenargs, **kwargs) as p:
      File "C:\Users\tom\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 854, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
      File "C:\Users\tom\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 1307, in _execute_child
        hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
    PermissionError: [WinError 5] Acess denied

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
cmacdonaldcommented, Oct 26, 2020

I rewrote env.py – which does the hunts down the JDK/JRE – a few months ago, and its an outstanding Pull Request - see https://github.com/kivy/pyjnius/pull/541 - so personally I don’t want to debug the older version!

1reaction
cmacdonaldcommented, Oct 26, 2020

So 3.9 is now on the Continuous Deployment github action script (as of 4 days ago) - see https://github.com/kivy/pyjnius/blob/master/.github/workflows/create.yml#L13 - so I think that the next release will have a binary distribution for Python 3.9 64bit on Windows.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation for PyJNIus - PermissionError ... - Google Groups
Used python -m pip install --user PyJNIus. - Closed Pycham, and run cmd in administrator role. - I am already having the highest...
Read more >
Installation for PyJNIus - PermissionError: [WinError 5] Acess ...
Installation for PyJNIus - PermissionError: [WinError 5] Acess denied ... I am already having the highest access right for all files.
Read more >
PIP install trouble shooting - PermissionError: [WinError 5 ...
PYTHON : Python - PIP install trouble shooting - PermissionError : [ WinError 5 ] Access is denied [ Gift : Animated Search...
Read more >
PermissionError: [WinError 5] Access is denied: - YouTube
[SOLVED] [FIXED] [WINDOWS] [PYTHON] PermissionError : [ WinError 5 ] Access is denied : while trying to install Python package.
Read more >
Pip Install - PermissionError: [WinError 5] Access is denied
Exception:Traceback (most recent call last): File "C:\Users\ramit.girdhar\AppData\Local\Programs\Python\Python36-32\lib\shutil.py", ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found