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

Access Denied. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. #554

Closed
Ndohjapan opened this issue Sep 24, 2020 · 3 comments
Labels

Comments

@Ndohjapan
Copy link

Please, I have tried installing pyjnius for my project but each time I do so using the pip install command, I get the error bellow.
ERROR: Command errored out with exit status 1: command: 'c:\users\user\appdata\local\programs\python\python36-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Temp\\pip-install-4qsfikmm\\pyjnius\\setup.py'"'"'; __file__='"'"'C:\\Temp\\pip-install-4qsfikmm\\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:\Temp\pip-pip-egg-info-k0oh_gxs' cwd: C:\Temp\pip-install-4qsfikmm\pyjnius\ Complete output (15 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Temp\pip-install-4qsfikmm\pyjnius\setup.py", line 95, in <module> compile_native_invocation_handler(*get_possible_homes(PLATFORM)) File "C:\Temp\pip-install-4qsfikmm\pyjnius\setup.py", line 87, in compile_native_invocation_handler join('jnius', 'src', 'org', 'jnius', 'NativeInvocationHandler.java') File "c:\users\user\appdata\local\programs\python\python36-32\lib\subprocess.py", line 306, in check_call retcode = call(*popenargs, **kwargs) File "c:\users\user\appdata\local\programs\python\python36-32\lib\subprocess.py", line 287, in call with Popen(*popenargs, **kwargs) as p: File "c:\users\user\appdata\local\programs\python\python36-32\lib\subprocess.py", line 729, in __init__ restore_signals, start_new_session) File "c:\users\user\appdata\local\programs\python\python36-32\lib\subprocess.py", line 1017, in _execute_child startupinfo) PermissionError: [WinError 5] Access is denied ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

@Ndohjapan
Copy link
Author

Hope for help.

@hx2A
Copy link
Member

hx2A commented Sep 24, 2020

You are doing this on Windows, and it looks like you don't have write access to one of the directories the install process is using. This might be an issue with the Windows user you are using when you log in. One approach is to try giving your command prompt administrator rights. You can do that by starting a new command prompt window with admin rights through the Windows start menu.

My personal experience with Python on Windows is limited to using Anaconda to manage everything. Anaconda works well and seems to make up for the shortcomings of Windows and other cross-platform idiosyncracies.

@github-actions
Copy link

👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.
Let us know if this comment was made in error, and we'll be happy to reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants