I just wanted to report the following issue. When trying to import FisherRaoElasticRegistration from a clean session, I get an error. Upon retrying, it then works.
>>> from skfda.preprocessing.registration import FisherRaoElasticRegistration # Doesn't work
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
File ".../python3.10/site-packages/lazy_loader/__init__.py", line 76, in __getattr__
submod = importlib.import_module(submod_path)
File ".../python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File ".../python3.10/site-packages/skfda/preprocessing/registration/_fisher_rao.py", line 11, in <module>
from ...exploratory.stats import fisher_rao_karcher_mean
File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
File ".../python3.10/site-packages/lazy_loader/__init__.py", line 76, in __getattr__
submod = importlib.import_module(submod_path)
File ".../python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File ".../python3.10/site-packages/skfda/exploratory/stats/_fisher_rao.py", line 7, in <module>
from fdasrsf.utility_functions import optimum_reparam
File ".../python3.10/site-packages/fdasrsf/__init__.py", line 44, in <module>
from .umap_metric import efda_distance, efda_distance_curve
File ".../python3.10/site-packages/fdasrsf/umap_metric.py", line 9, in <module>
import numba
File ".../python3/dist-packages/numba/__init__.py", line 42, in <module>
from numba.np.ufunc import (vectorize, guvectorize, threading_layer,
File ".../python3/dist-packages/numba/np/ufunc/__init__.py", line 3, in <module>
from numba.np.ufunc.decorators import Vectorize, GUVectorize, vectorize, guvectorize
File ".../python3/dist-packages/numba/np/ufunc/decorators.py", line 3, in <module>
from numba.np.ufunc import _internal
SystemError: initialization of _internal failed without raising an exception
>>> from skfda.preprocessing.registration import FisherRaoElasticRegistration # Now works fine
>>>
I think it is a problem with Numba. Check if your version of Numba and NumPy are compatible, as Numba is not always able to catch up with recent NumPy versions.
Hi,
I just wanted to report the following issue. When trying to import
FisherRaoElasticRegistration
from a clean session, I get an error. Upon retrying, it then works.Version information
Cheers!