USER
Что это за ошибка
{
"name": "AttributeError",
"message": "module 'numba' has no attribute 'core'",
"stack": "---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[40], line 1
----> 1 audio_input = fleurs_asr[\"train\"][0][\"audio\"]
2 transcription = fleurs_asr[\"train\"][0][\"transcription\"]
File ~/.local/lib/python3.10/site-packages/datasets/arrow_dataset.py:2810, in Dataset.__getitem__(self, key)
2808 def __getitem__(self, key): # noqa: F811
2809 \"\"\"Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).\"\"\"
-> 2810 return self._getitem(key)
File ~/.local/lib/python3.10/site-packages/datasets/arrow_dataset.py:2795, in Dataset._getitem(self, key, **kwargs)
2793 formatter = get_formatter(format_type, features=self._info.features, **format_kwargs)
2794 pa_subtable = query_table(self._data, key, indices=self._indices)
-> 2795 formatted_output = format_table(
2796 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns
2797 )
2798 return formatted_output
File ~/.local/lib/python3.10/site-packages/datasets/formatting/formatting.py:629, in format_table(table, key, formatter, format_columns, output_all_columns)
627 python_formatter = PythonFormatter(features=formatter.features)
628 if format_columns is None:
--> 629 return formatter(pa_table, query_type=query_type)
630 elif query_type == \"column\":
631 if key in format_columns:
File ~/.local/lib/python3.10/site-packages/datasets/formatting/formatting.py:396, in Formatter.__call__(self, pa_table, query_type)
394 def __call__(self, pa_table: pa.Table, query_type: str) -> Union[RowFormat, ColumnFormat, BatchFormat]:
395 if query_type == \"row\":
--> 396 return self.format_row(pa_table)
397 elif query_type == \"column\":
398 return self.format_column(pa_table)
File ~/.local/lib/python3.10/site-packages/datasets/formatting/formatting.py:437, in PythonFormatter.format_row(self, pa_table)
435 return LazyRow(pa_table, self)
436 row = self.python_arrow_extractor().extract_row(pa_table)
--> 437 row = self.python_features_decoder.decode_row(row)
438 return row
File ~/.local/lib/python3.10/site-packages/datasets/formatting/formatting.py:215, in PythonFeaturesDecoder.decode_row(self, row)
214 def decode_row(self, row: dict) -> dict:
--> 215 return self.features.decode_example(row) if self.features else row
File ~/.local/lib/python3.10/site-packages/datasets/features/features.py:1940, in Features.decode_example(self, example, token_per_repo_id)
1926 def decode_example(self, example: dict, token_per_repo_id: Optional[Dict[str, Union[str, bool, None]]] = None):
1927 \"\"\"Decode example with custom feature decoding.
1928
1929 Args:
(...)
1937 `dict[str, Any]`
1938 \"\"\"
-> 1940 return {
1941 column_name: decode_nested_example(feature, value, token_per_repo_id=token_per_repo_id)
1942 if self._column_requires_decoding[column_name]
1943 else value
1944 for column_name, (feature, value) in zip_dict(
1945 {key: value for key, value in self.items() if key in example}, example
1946 )
1947 }
File ~/.local/lib/python3.10/site-packages/datasets/features/features.py:1941, in <dictcomp>(.0)
1926 def decode_example(self, example: dict, token_per_repo_id: Optional[Dict[str, Union[str, bool, None]]] = None):
1927 \"\"\"Decode example with custom feature decoding.
1928
1929 Args:
(...)
1937 `dict[str, Any]`
1938 \"\"\"
1940 return {
-> 1941 column_name: decode_nested_example(feature, value, token_per_repo_id=token_per_repo_id)
1942 if self._column_requires_decoding[column_name]
1943 else value
1944 for column_name, (feature, value) in zip_dict(
1945 {key: value for key, value in self.items() if key in example}, example
1946 )
1947 }
File ~/.local/lib/python3.10/site-packages/datasets/features/features.py:1341, in decode_nested_example(schema, obj, token_per_repo_id)
1338 elif isinstance(schema, (Audio, Image)):
1339 # we pass the token to read and decode files from private repositories in streaming mode
1340 if obj is not None and schema.decode:
-> 1341 return schema.decode_example(obj, token_per_repo_id=token_per_repo_id)
1342 return obj
File ~/.local/lib/python3.10/site-packages/datasets/features/audio.py:191, in Audio.decode_example(self, value, token_per_repo_id)
189 array = array.T
190 if self.mono:
--> 191 array = librosa.to_mono(array)
192 if self.sampling_rate and self.sampling_rate != sampling_rate:
193 array = librosa.resample(array, orig_sr=sampling_rate, target_sr=self.sampling_rate)
File ~/.local/lib/python3.10/site-packages/lazy_loader/__init__.py:78, in attach.<locals>.__getattr__(name)
76 submod_path = f\"{package_name}.{attr_to_modules[name]}\"
77 submod = importlib.import_module(submod_path)
---> 78 attr = getattr(submod, name)
80 # If the attribute lives in a file (module) with the same
81 # name as the attribute, ensure that the attribute and *not*
82 # the module is accessible on the package.
83 if name == attr_to_modules[name]:
File ~/.local/lib/python3.10/site-packages/lazy_loader/__init__.py:77, in attach.<locals>.__getattr__(name)
75 elif name in attr_to_modules:
76 submod_path = f\"{package_name}.{attr_to_modules[name]}\"
---> 77 submod = importlib.import_module(submod_path)
78 attr = getattr(submod, name)
80 # If the attribute lives in a file (module) with the same
81 # name as the attribute, ensure that the attribute and *not*
82 # the module is accessible on the package.
File /usr/lib/python3.10/importlib/__init__.py:126, in import_module(name, package)
124 break
125 level += 1
--> 126 return _bootstrap._gcd_import(name[level:], package, level)
File <frozen importlib._bootstrap>:1050, in _gcd_import(name, package, level)
File <frozen importlib._bootstrap>:1027, in _find_and_load(name, import_)
File <frozen importlib._bootstrap>:1006, in _find_and_load_unlocked(name, import_)
File <frozen importlib._bootstrap>:688, in _load_unlocked(spec)
File <frozen importlib._bootstrap_external>:883, in exec_module(self, module)
File <frozen importlib._bootstrap>:241, in _call_with_frames_removed(f, *args, **kwds)
File ~/.local/lib/python3.10/site-packages/librosa/core/audio.py:18
15 import soxr
16 import lazy_loader as lazy
---> 18 from numba import jit, stencil, guvectorize
19 from .fft import get_fftlib
20 from .convert import frames_to_samples, time_to_samples
File ~/.local/lib/python3.10/site-packages/numba/__init__.py:71
67 del generate_version_info
70 from numba.core import config
---> 71 from numba.core import types, errors
73 # Re-export typeof
74 from numba.misc.special import (
75 typeof, prange, pndindex, gdb, gdb_breakpoint, gdb_init,
76 literally, literal_unroll,
77 )
File ~/.local/lib/python3.10/site-packages/numba/core/types/__init__.py:7
4 from numba.core import utils
6 from .abstract import *
----> 7 from .containers import *
8 from .functions import *
9 from .iterators import *
File ~/.local/lib/python3.10/site-packages/numba/core/types/containers.py:23
5 from .abstract import (
6 ConstSized,
7 Container,
(...)
15 Poison,
16 )
17 from .common import (
18 Buffer,
19 IterableType,
20 SimpleIterableType,
21 SimpleIteratorType,
22 )
---> 23 from .misc import Undefined, unliteral, Optional, NoneType
24 from ..typeconv import Conversion
25 from ..errors import TypingError
File ~/.local/lib/python3.10/site-packages/numba/core/types/misc.py:6
4 from numba.core.typeconv import Conversion
5 from numba.core.errors import TypingError, LiteralTypingError
----> 6 from numba.core.ir import UndefinedType
7 from numba.core.utils import get_hashable_key
10 class PyObject(Dummy):
File ~/.local/lib/python3.10/site-packages/numba/core/ir.py:22
19 from numba.core import consts
21 # terminal color markup
---> 22 _termcolor = errors.termcolor()
25 class Loc(object):
26 \"\"\"Source location
27
28 \"\"\"
File ~/.local/lib/python3.10/site-packages/numba/core/errors.py:353, in termcolor()
351 global _termcolor_inst
352 if _termcolor_inst is None:
--> 353 scheme = themes[numba.core.config.COLOR_SCHEME]
354 _termcolor_inst = HighlightColorScheme(scheme)
355 return _termcolor_inst
AttributeError: module 'numba' has no attribute 'core'"
}