We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have successfully installed rpy2, but have trouble while importing rpy2. Here are my codes:
import os, sys import rpy2 from rpy2.robjects import r # %load_ext rpy2.ipython --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) ~/.local/lib/python3.7/site-packages/rpy2/rinterface_lib/openrlib.py in <module> 13 try: ---> 14 import _rinterface_cffi_api as _rinterface_cffi 15 except ImportError: ModuleNotFoundError: No module named '_rinterface_cffi_api' During handling of the above exception, another exception occurred: ImportError Traceback (most recent call last) /tmp/ipykernel_88811/4253977157.py in <module> 15 16 import rpy2 ---> 17 from rpy2.robjects import r 18 # %load_ext rpy2.ipython 19 ~/.local/lib/python3.7/site-packages/rpy2/robjects/__init__.py in <module> 14 from functools import partial 15 import types ---> 16 import rpy2.rinterface as rinterface 17 import rpy2.rlike.container as rlc 18 ~/.local/lib/python3.7/site-packages/rpy2/rinterface.py in <module> 10 import warnings 11 from typing import Union ---> 12 from rpy2.rinterface_lib import openrlib 13 import rpy2.rinterface_lib._rinterface_capi as _rinterface 14 import rpy2.rinterface_lib.embedded as embedded ~/.local/lib/python3.7/site-packages/rpy2/rinterface_lib/openrlib.py in <module> 14 import _rinterface_cffi_api as _rinterface_cffi 15 except ImportError: ---> 16 import _rinterface_cffi_abi as _rinterface_cffi 17 18 ffi = _rinterface_cffi.ffi ~/.local/lib/python3.7/site-packages/_rinterface_cffi_abi.py in <module> 1 # auto-generated file ----> 2 import _cffi_backend 3 4 ffi = _cffi_backend.FFI('_rinterface_cffi_abi', 5 _version = 0x2601, ImportError: libffi.so.7: cannot open shared object file: No such file or directory
I already tried conda install cffi, and it seems like a sucesss. But still the same error.
Thank you so much!
The text was updated successfully, but these errors were encountered:
This seems odd. Did you install rpy2 and cffi the same way?
rpy2
cffi
Sorry, something went wrong.
Yes! I confirm I have successfully installed rpy2 and cffi.
Did you install them the same way?
No branches or pull requests
I have successfully installed rpy2, but have trouble while importing rpy2. Here are my codes:
I already tried conda install cffi, and it seems like a sucesss. But still the same error.
Thank you so much!
The text was updated successfully, but these errors were encountered: