Closed Gokhan169 closed 6 months ago
Hi, please give me something to work with, like a traceback.
You could e.g. try setting the environment variable PYTHONFAULTHANDLER=1
before starting jupyter lab.
I’ll close this since it has no actionable information, but please comment if you have anything workable and I’ll reopen
I am facing the same problem. This is my code: ` import anndata2ri import logging
import rpy2.rinterface_lib.callbacks as rcb import rpy2.robjects as ro
rcb.logger.setLevel(logging.ERROR) ro.pandas2ri.activate() anndata2ri.activate()
%load_ext rpy2.ipython `
ImportError Traceback (most recent call last)
File ~/.local/lib/python3.10/site-packages/pandas/init.py:23, in
File ~/.local/lib/python3.10/site-packages/pandas/compat/init.py:26, in
File ~/.local/lib/python3.10/site-packages/pandas/compat/numpy/init.py:17, in
ImportError: this version of pandas is incompatible with numpy < 1.22.4 your numpy version is 1.22.3. Please upgrade numpy to >= 1.22.4 to use this pandas version
The above exception was the direct cause of the following exception:
ImportError Traceback (most recent call last) Input In [2], in <cell line: 1>() ----> 1 import anndata2ri 2 import logging 4 import rpy2.rinterface_lib.callbacks as rcb
File ~/.local/lib/python3.10/site-packages/anndata2ri/init.py:20, in
File ~/.local/lib/python3.10/site-packages/anndata2ri/_py2r.py:8, in
File ~/.local/lib/python3.10/site-packages/anndata/init.py:7, in
File ~/.local/lib/python3.10/site-packages/anndata/_core/anndata.py:21, in
File ~/.local/lib/python3.10/site-packages/pandas/init.py:28, in
ImportError: C extension: None not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext' to build the C extensions first.
Hi,
It seems that I am unable to import anndata2ri. Whenever I tried in the jupyter notebook, I get the following error. I would be really glad if you can help me with this issue. Thanks.
Kernel Restarting The kernel for Desktop/Merfish analysis/Untitled8.ipynb appears to have died. It will restart automatically.