Traceback (most recent call last):
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/train.py", line 16, in
from utils.metric import Metric
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/utils/metric.py", line 1, in
from datasets import load_metric
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/datasets/init.py", line 37, in
from .arrow_dataset import Dataset, concatenate_datasets
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 53, in
from huggingface_hub import HfApi, HfFolder
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/huggingface_hub/init.py", line 63, in
from .keras_mixin import (
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/huggingface_hub/keras_mixin.py", line 24, in
import tensorflow as tf
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/tensorflow/init.py", line 37, in
from tensorflow.python.tools import module_util as _module_util
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/tensorflow/python/init.py", line 37, in
from tensorflow.python.eager import context
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/tensorflow/python/eager/context.py", line 29, in
from tensorflow.core.framework import function_pb2
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/tensorflow/core/framework/function_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attrvaluepb2
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/tensorflow/core/framework/attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensorpb2
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/tensorflow/core/framework/tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resourcehandlepb2
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/tensorflow/core/framework/resource_handle_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensorshapepb2
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/tensorflow/core/framework/tensor_shape_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/google/protobuf/descriptor.py", line 561, in new__
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
Downgrade the protobuf package to 3.20.x or lower.
Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
When I try to run: python train.py -c config.toml
I get this:
Traceback (most recent call last): File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/train.py", line 16, in
from utils.metric import Metric
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/utils/metric.py", line 1, in
from datasets import load_metric
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/datasets/init.py", line 37, in
from .arrow_dataset import Dataset, concatenate_datasets
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 53, in
from huggingface_hub import HfApi, HfFolder
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/huggingface_hub/init.py", line 63, in
from .keras_mixin import (
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/huggingface_hub/keras_mixin.py", line 24, in
import tensorflow as tf
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/tensorflow/init.py", line 37, in
from tensorflow.python.tools import module_util as _module_util
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/tensorflow/python/init.py", line 37, in
from tensorflow.python.eager import context
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/tensorflow/python/eager/context.py", line 29, in
from tensorflow.core.framework import function_pb2
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/tensorflow/core/framework/function_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attrvaluepb2
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/tensorflow/core/framework/attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensorpb2
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/tensorflow/core/framework/tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resourcehandlepb2
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/tensorflow/core/framework/resource_handle_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensorshapepb2
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/tensorflow/core/framework/tensor_shape_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "/homedtic/rzevallos/ASR-Wav2vec-Finetune/venv/lib/python3.8/site-packages/google/protobuf/descriptor.py", line 561, in new__
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates