You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"When I was working on computing gene-gene distances, I encountered this error. How can I resolve it? Thank you."
cal_ot_mat_from_numpy <- reticulate::import('gene_trajectory.compute_gene_distance_cmd')$cal_ot_mat_from_numpy
error in py_module_import(module, convert = convert):
ImportError: numpy.core.multiarray failed to import (auto-generated because you didn't call 'numpy.import_array()' after cimporting numpy; use 'numpy._import_array' to disable if you are certain you don't need it).
The text was updated successfully, but these errors were encountered:
It looks like there are issues with your Python environment and the installation of numpy.
Are you using conda or virtualenv? Can you check the version of Python and numpy you are using? To get the values, start a new R session, pick the environment to use with reticulate (e.g. reticulate::use_virtualenv('igt')) and then run reticulate::py_config().
If you have an older version of numpy, updating may solve the issue
"I've been using the latest versions of Python and numpy. If I need to use another version.
version: 3.12.4 (tags/v3.12.4:8e8a4ba, Jun 6 2024, 19:30:16)
numpy_version: 2.0.0
"When I was working on computing gene-gene distances, I encountered this error. How can I resolve it? Thank you."
cal_ot_mat_from_numpy <- reticulate::import('gene_trajectory.compute_gene_distance_cmd')$cal_ot_mat_from_numpy
error in py_module_import(module, convert = convert):
ImportError: numpy.core.multiarray failed to import (auto-generated because you didn't call 'numpy.import_array()' after cimporting numpy; use 'numpy._import_array' to disable if you are certain you don't need it).
The text was updated successfully, but these errors were encountered: