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

Error when Pip install rpy2 #1049

Open
nmagdanz opened this issue Jul 21, 2023 · 1 comment
Open

Error when Pip install rpy2 #1049

nmagdanz opened this issue Jul 21, 2023 · 1 comment
Labels
bug Something isn't working Windows

Comments

@nmagdanz
Copy link

Cannot install Rpy2 using Pip install rpy2. Get the following error (no errors with other packages).

(base) PS C:\Windows\system32> pip install rpy2 --user
Collecting rpy2
Using cached rpy2-3.5.13.tar.gz (218 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [28 lines of output]
Traceback (most recent call last):
File "C:\Users\nmagd\anaconda3\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\nmagd\anaconda3\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\nmagd\anaconda3\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\nmagd\AppData\Local\Temp\pip-build-env-7bwn6qyw\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "C:\Users\nmagd\AppData\Local\Temp\pip-build-env-7bwn6qyw\overlay\Lib\site-packages\setuptools\build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "C:\Users\nmagd\AppData\Local\Temp\pip-build-env-7bwn6qyw\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
exec(code, locals())
File "", line 124, in
File "", line 110, in get_r_c_extension_status
File "C:\Users\nmagd\AppData\Local\Temp\pip-install-uavjx8fv\rpy2_0ebf52157e104fdab38c514e3d30a9f1./rpy2/situation.py", line 286, in get_r_flags
_get_r_cmd_config(r_home, flags,
File "C:\Users\nmagd\AppData\Local\Temp\pip-install-uavjx8fv\rpy2_0ebf52157e104fdab38c514e3d30a9f1./rpy2/situation.py", line 246, in _get_r_cmd_config
output = subprocess.check_output(
File "C:\Users\nmagd\anaconda3\lib\subprocess.py", line 421, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Users\nmagd\anaconda3\lib\subprocess.py", line 503, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\nmagd\anaconda3\lib\subprocess.py", line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\nmagd\anaconda3\lib\subprocess.py", line 1456, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
PermissionError: [WinError 5] Access is denied
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Thanks for the help.

@nmagdanz nmagdanz added the bug Something isn't working label Jul 21, 2023
@GegznaV
Copy link

GegznaV commented Jul 29, 2023

I think this is a duplicate of

@nmagdanz, until the issue is fixed, try:

pip install rpy2==3.5.12

Does this solve your problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Windows
Projects
None yet
Development

No branches or pull requests

3 participants