Hi,
I am currently trying to import hail(0.2.72
). However, I get the following error.
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/sphinx/ext/autodoc/importer.py", line 70, in import_module
return importlib.import_module(modname)
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/jupyter/notebooks/piranha/__init__.py", line 11, in <module>
module = import_module(f"{__name__}.{module_name}")
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/jupyter/notebooks/piranha/utils.py", line 19, in <module>
import hail as hl
File "/usr/local/lib/python3.7/site-packages/hail/__init__.py", line 48, in <module>
from .methods import * # noqa: F401,F403,E402
File "/usr/local/lib/python3.7/site-packages/hail/methods/__init__.py", line 8, in <module>
from .statgen import (skat, impute_sex, genetic_relatedness_matrix, realized_relationship_matrix,
File "/usr/local/lib/python3.7/site-packages/hail/methods/statgen.py", line 16, in <module>
from hail.linalg import BlockMatrix
File "/usr/local/lib/python3.7/site-packages/hail/linalg/__init__.py", line 1, in <module>
from .blockmatrix import BlockMatrix, _jarray_from_ndarray, _breeze_from_ndarray, _svd, _eigh
File "/usr/local/lib/python3.7/site-packages/hail/linalg/blockmatrix.py", line 7, in <module>
import scipy.linalg as spla
File "/usr/local/lib/python3.7/site-packages/scipy/__init__.py", line 77, in <module>
_fun = _deprecated(_msg.format(_key))(_fun)
File "/usr/local/lib/python3.7/site-packages/scipy/_lib/deprecation.py", line 16, in wrap
@functools.wraps(fun)
File "/home/jupyter/notebooks/ref_docs/source/conf.py", line 27, in no_op_wraps
if func.__module__ is None or module_name not in func.__module__:
AttributeError: 'numpy.ufunc' object has no attribute '__module__'
The versions are as follows:
pandas==1.1.4
scipy==1.6.3
numpy==1.21.1
PS: I installed hail(0.2.72
) on a fresh system using pip
.