ValueError: Name tf.RaggedTensorSpec has already been registered for class tensorflow.python.ops.ragged.ragged_tensor.RaggedTensorSpec.
Hi @JT-Studios ,

From the error log ,the error is generating from importing tensorflow. This might be due to different compatible version of keras vs tensorflow. Could you please try uninstalling tensorflow and keras packages and install tensorflow again and try importing tensorflow again and let us know if still issue persists.

Thanks! I have reinstalled tensorflow however when I try to use the import commands they won't stop running. After a minute I interrupted the kernel and it gave me this output:

`---------------------------------------------------------------------------
KeyboardInterrupt                         Traceback (most recent call last)
Cell In[5], line 5
      1 #!pwd
      2 #print (PYTHONPATH)
      3 #print(os.path)
----> 5 import tensorflow as tf
      6 from object_detection.utils import config_util
      7 from object_detection.protos import pipeline_pb2

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/__init__.py:54
     52 from tensorflow._api.v2 import autograph
     53 from tensorflow._api.v2 import bitwise
---> 54 from tensorflow._api.v2 import compat
     55 from tensorflow._api.v2 import config
     56 from tensorflow._api.v2 import data

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/_api/v2/compat/__init__.py:8
      3 """Public API for tf._api.v2.compat namespace
      4 """
      6 import sys as _sys
----> 8 from tensorflow._api.v2.compat import v1
      9 from tensorflow._api.v2.compat import v2
     10 from tensorflow.python.compat.compat import forward_compatibility_horizon # line: 125

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/_api/v2/compat/v1/__init__.py:32
     30 from tensorflow._api.v2.compat.v1 import autograph
     31 from tensorflow._api.v2.compat.v1 import bitwise
---> 32 from tensorflow._api.v2.compat.v1 import compat
     33 from tensorflow._api.v2.compat.v1 import config
     34 from tensorflow._api.v2.compat.v1 import data

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/_api/v2/compat/v1/compat/__init__.py:9
      6 import sys as _sys
      8 from tensorflow._api.v2.compat.v1.compat import v1
----> 9 from tensorflow._api.v2.compat.v1.compat import v2
     10 from tensorflow.python.compat.compat import forward_compatibility_horizon # line: 125
     11 from tensorflow.python.compat.compat import forward_compatible # line: 65

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/_api/v2/compat/v1/compat/v2/__init__.py:28
     25 from tensorflow.python.util.lazy_loader import LazyLoader as _LazyLoader
     26 from tensorflow.python.util.lazy_loader import KerasLazyLoader as _KerasLazyLoader
---> 28 from tensorflow._api.v2.compat.v2 import __internal__
     29 from tensorflow._api.v2.compat.v2 import __operators__
     30 from tensorflow._api.v2.compat.v2 import audio

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/_api/v2/compat/v2/__init__.py:34
     32 from tensorflow._api.v2.compat.v2 import autograph
     33 from tensorflow._api.v2.compat.v2 import bitwise
---> 34 from tensorflow._api.v2.compat.v2 import compat
     35 from tensorflow._api.v2.compat.v2 import config
     36 from tensorflow._api.v2.compat.v2 import data

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/_api/v2/compat/v2/compat/__init__.py:9
      6 import sys as _sys
      8 from tensorflow._api.v2.compat.v2.compat import v1
----> 9 from tensorflow._api.v2.compat.v2.compat import v2
     10 from tensorflow.python.compat.compat import forward_compatibility_horizon # line: 125
     11 from tensorflow.python.compat.compat import forward_compatible # line: 65

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/_api/v2/compat/v2/compat/v2/__init__.py:65
     63 from tensorflow._api.v2.compat.v2 import strings
     64 from tensorflow._api.v2.compat.v2 import summary
---> 65 from tensorflow._api.v2.compat.v2 import sysconfig
     66 from tensorflow._api.v2.compat.v2 import test
     67 from tensorflow._api.v2.compat.v2 import tpu

File <frozen importlib._bootstrap>:1176, in _find_and_load(name, import_)

File <frozen importlib._bootstrap>:1147, in _find_and_load_unlocked(name, import_)

File <frozen importlib._bootstrap>:690, in _load_unlocked(spec)

File <frozen importlib._bootstrap_external>:936, in exec_module(self, module)

File <frozen importlib._bootstrap_external>:1032, in get_code(self, fullname)

File <frozen importlib._bootstrap_external>:1131, in get_data(self, path)

KeyboardInterrupt: 
`

It is interesting to note that it is running 3.11 files even though this is not the version it is supposed to be working in. Update: I have created a new virtual environment and the issue is resolved but a new issue started appearing:

`---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[29], line 2
      1 import tensorflow as tf
----> 2 from object_detection.utils import config_util
      3 from object_detection.protos import pipeline_pb2
      4 from google.protobuf import text_format

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/object_detection/utils/config_util.py:24
     20 from google.protobuf import text_format
     22 from tensorflow.python.lib.io import file_io
---> 24 from object_detection.protos import eval_pb2
     25 from object_detection.protos import graph_rewriter_pb2
     26 from object_detection.protos import input_reader_pb2

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/object_detection/protos/eval_pb2.py:36
     13 _sym_db = _symbol_database.Default()
     18 DESCRIPTOR = _descriptor.FileDescriptor(
     19   name='object_detection/protos/eval.proto',
     20   package='object_detection.protos',
   (...)
     23   serialized_pb=_b('\n\"object_detection/protos/eval.proto\x12\x17object_detection.protos\"\xf7\x05\n\nEvalConfig\x12\x15\n\nbatch_size\x18\x19 \x01(\r:\x01\x31\x12\x1e\n\x12num_visualizations\x18\x01 \x01(\r:\x02\x31\x30\x12\x1e\n\x0cnum_examples\x18\x02 \x01(\r:\x04\x35\x30\x30\x30\x42\x02\x18\x01\x12\x1f\n\x12\x65val_interval_secs\x18\x03 \x01(\r:\x03\x33\x30\x30\x12\x18\n\tmax_evals\x18\x04 \x01(\r:\x01\x30\x42\x02\x18\x01\x12\x19\n\nsave_graph\x18\x05 \x01(\x08:\x05\x66\x61lse\x12\"\n\x18visualization_export_dir\x18\x06 \x01(\t:\x00\x12\x15\n\x0b\x65val_master\x18\x07 \x01(\t:\x00\x12\x13\n\x0bmetrics_set\x18\x08 \x03(\t\x12\x15\n\x0b\x65xport_path\x18\t \x01(\t:\x00\x12!\n\x12ignore_groundtruth\x18\n \x01(\x08:\x05\x66\x61lse\x12\"\n\x13use_moving_averages\x18\x0b \x01(\x08:\x05\x66\x61lse\x12\"\n\x13\x65val_instance_masks\x18\x0c \x01(\x08:\x05\x66\x61lse\x12 \n\x13min_score_threshold\x18\r \x01(\x02:\x03\x30.5\x12&\n\x1amax_num_boxes_to_visualize\x18\x0e \x01(\x05:\x02\x32\x30\x12\x1a\n\x0bskip_scores\x18\x0f \x01(\x08:\x05\x66\x61lse\x12\x1a\n\x0bskip_labels\x18\x10 \x01(\x08:\x05\x66\x61lse\x12*\n\x1bvisualize_groundtruth_boxes\x18\x11 \x01(\x08:\x05\x66\x61lse\x12\x32\n#groundtruth_box_visualization_color\x18\x12 \x01(\t:\x05\x62lack\x12\x35\n&keep_image_id_for_visualization_export\x18\x13 \x01(\x08:\x05\x66\x61lse\x12$\n\x16retain_original_images\x18\x17 \x01(\x08:\x04true\x12+\n\x1cinclude_metrics_per_category\x18\x18 \x01(\x08:\x05\x66\x61lse')
     24 )
     29 _EVALCONFIG = _descriptor.Descriptor(
     30   name='EvalConfig',
     31   full_name='object_detection.protos.EvalConfig',
     32   filename=None,
     33   file=DESCRIPTOR,
     34   containing_type=None,
     35   fields=[
---> 36     _descriptor.FieldDescriptor(
     37       name='batch_size', full_name='object_detection.protos.EvalConfig.batch_size', index=0,
     38       number=25, type=13, cpp_type=3, label=1,
     39       has_default_value=True, default_value=1,
     40       message_type=None, enum_type=None, containing_type=None,
     41       is_extension=False, extension_scope=None,
     42       serialized_options=None, file=DESCRIPTOR),
     43     _descriptor.FieldDescriptor(
     44       name='num_visualizations', full_name='object_detection.protos.EvalConfig.num_visualizations', index=1,
     45       number=1, type=13, cpp_type=3, label=1,
     46       has_default_value=True, default_value=10,
     47       message_type=None, enum_type=None, containing_type=None,
     48       is_extension=False, extension_scope=None,
     49       serialized_options=None, file=DESCRIPTOR),
     50     _descriptor.FieldDescriptor(
     51       name='num_examples', full_name='object_detection.protos.EvalConfig.num_examples', index=2,
     52       number=2, type=13, cpp_type=3, label=1,
     53       has_default_value=True, default_value=5000,
     54       message_type=None, enum_type=None, containing_type=None,
     55       is_extension=False, extension_scope=None,
     56       serialized_options=_b('\030\001'), file=DESCRIPTOR),
     57     _descriptor.FieldDescriptor(
     58       name='eval_interval_secs', full_name='object_detection.protos.EvalConfig.eval_interval_secs', index=3,
     59       number=3, type=13, cpp_type=3, label=1,
     60       has_default_value=True, default_value=300,
     61       message_type=None, enum_type=None, containing_type=None,
     62       is_extension=False, extension_scope=None,
     63       serialized_options=None, file=DESCRIPTOR),
     64     _descriptor.FieldDescriptor(
     65       name='max_evals', full_name='object_detection.protos.EvalConfig.max_evals', index=4,
     66       number=4, type=13, cpp_type=3, label=1,
     67       has_default_value=True, default_value=0,
     68       message_type=None, enum_type=None, containing_type=None,
     69       is_extension=False, extension_scope=None,
     70       serialized_options=_b('\030\001'), file=DESCRIPTOR),
     71     _descriptor.FieldDescriptor(
     72       name='save_graph', full_name='object_detection.protos.EvalConfig.save_graph', index=5,
     73       number=5, type=8, cpp_type=7, label=1,
     74       has_default_value=True, default_value=False,
     75       message_type=None, enum_type=None, containing_type=None,
     76       is_extension=False, extension_scope=None,
     77       serialized_options=None, file=DESCRIPTOR),
     78     _descriptor.FieldDescriptor(
     79       name='visualization_export_dir', full_name='object_detection.protos.EvalConfig.visualization_export_dir', index=6,
     80       number=6, type=9, cpp_type=9, label=1,
     81       has_default_value=True, default_value=_b("").decode('utf-8'),
     82       message_type=None, enum_type=None, containing_type=None,
     83       is_extension=False, extension_scope=None,
     84       serialized_options=None, file=DESCRIPTOR),
     85     _descriptor.FieldDescriptor(
     86       name='eval_master', full_name='object_detection.protos.EvalConfig.eval_master', index=7,
     87       number=7, type=9, cpp_type=9, label=1,
     88       has_default_value=True, default_value=_b("").decode('utf-8'),
     89       message_type=None, enum_type=None, containing_type=None,
     90       is_extension=False, extension_scope=None,
     91       serialized_options=None, file=DESCRIPTOR),
     92     _descriptor.FieldDescriptor(
     93       name='metrics_set', full_name='object_detection.protos.EvalConfig.metrics_set', index=8,
     94       number=8, type=9, cpp_type=9, label=3,
     95       has_default_value=False, default_value=[],
     96       message_type=None, enum_type=None, containing_type=None,
     97       is_extension=False, extension_scope=None,
     98       serialized_options=None, file=DESCRIPTOR),
     99     _descriptor.FieldDescriptor(
    100       name='export_path', full_name='object_detection.protos.EvalConfig.export_path', index=9,
    101       number=9, type=9, cpp_type=9, label=1,
    102       has_default_value=True, default_value=_b("").decode('utf-8'),
    103       message_type=None, enum_type=None, containing_type=None,
    104       is_extension=False, extension_scope=None,
    105       serialized_options=None, file=DESCRIPTOR),
    106     _descriptor.FieldDescriptor(
    107       name='ignore_groundtruth', full_name='object_detection.protos.EvalConfig.ignore_groundtruth', index=10,
    108       number=10, type=8, cpp_type=7, label=1,
    109       has_default_value=True, default_value=False,
    110       message_type=None, enum_type=None, containing_type=None,
    111       is_extension=False, extension_scope=None,
    112       serialized_options=None, file=DESCRIPTOR),
    113     _descriptor.FieldDescriptor(
    114       name='use_moving_averages', full_name='object_detection.protos.EvalConfig.use_moving_averages', index=11,
    115       number=11, type=8, cpp_type=7, label=1,
    116       has_default_value=True, default_value=False,
    117       message_type=None, enum_type=None, containing_type=None,
    118       is_extension=False, extension_scope=None,
    119       serialized_options=None, file=DESCRIPTOR),
    120     _descriptor.FieldDescriptor(
    121       name='eval_instance_masks', full_name='object_detection.protos.EvalConfig.eval_instance_masks', index=12,
    122       number=12, type=8, cpp_type=7, label=1,
    123       has_default_value=True, default_value=False,
    124       message_type=None, enum_type=None, containing_type=None,
    125       is_extension=False, extension_scope=None,
    126       serialized_options=None, file=DESCRIPTOR),
    127     _descriptor.FieldDescriptor(
    128       name='min_score_threshold', full_name='object_detection.protos.EvalConfig.min_score_threshold', index=13,
    129       number=13, type=2, cpp_type=6, label=1,
    130       has_default_value=True, default_value=float(0.5),
    131       message_type=None, enum_type=None, containing_type=None,
    132       is_extension=False, extension_scope=None,
    133       serialized_options=None, file=DESCRIPTOR),
    134     _descriptor.FieldDescriptor(
    135       name='max_num_boxes_to_visualize', full_name='object_detection.protos.EvalConfig.max_num_boxes_to_visualize', index=14,
    136       number=14, type=5, cpp_type=1, label=1,
    137       has_default_value=True, default_value=20,
    138       message_type=None, enum_type=None, containing_type=None,
    139       is_extension=False, extension_scope=None,
    140       serialized_options=None, file=DESCRIPTOR),
    141     _descriptor.FieldDescriptor(
    142       name='skip_scores', full_name='object_detection.protos.EvalConfig.skip_scores', index=15,
    143       number=15, type=8, cpp_type=7, label=1,
    144       has_default_value=True, default_value=False,
    145       message_type=None, enum_type=None, containing_type=None,
    146       is_extension=False, extension_scope=None,
    147       serialized_options=None, file=DESCRIPTOR),
    148     _descriptor.FieldDescriptor(
    149       name='skip_labels', full_name='object_detection.protos.EvalConfig.skip_labels', index=16,
    150       number=16, type=8, cpp_type=7, label=1,
    151       has_default_value=True, default_value=False,
    152       message_type=None, enum_type=None, containing_type=None,
    153       is_extension=False, extension_scope=None,
    154       serialized_options=None, file=DESCRIPTOR),
    155     _descriptor.FieldDescriptor(
    156       name='visualize_groundtruth_boxes', full_name='object_detection.protos.EvalConfig.visualize_groundtruth_boxes', index=17,
    157       number=17, type=8, cpp_type=7, label=1,
    158       has_default_value=True, default_value=False,
    159       message_type=None, enum_type=None, containing_type=None,
    160       is_extension=False, extension_scope=None,
    161       serialized_options=None, file=DESCRIPTOR),
    162     _descriptor.FieldDescriptor(
    163       name='groundtruth_box_visualization_color', full_name='object_detection.protos.EvalConfig.groundtruth_box_visualization_color', index=18,
    164       number=18, type=9, cpp_type=9, label=1,
    165       has_default_value=True, default_value=_b("black").decode('utf-8'),
    166       message_type=None, enum_type=None, containing_type=None,
    167       is_extension=False, extension_scope=None,
    168       serialized_options=None, file=DESCRIPTOR),
    169     _descriptor.FieldDescriptor(
    170       name='keep_image_id_for_visualization_export', full_name='object_detection.protos.EvalConfig.keep_image_id_for_visualization_export', index=19,
    171       number=19, type=8, cpp_type=7, label=1,
    172       has_default_value=True, default_value=False,
    173       message_type=None, enum_type=None, containing_type=None,
    174       is_extension=False, extension_scope=None,
    175       serialized_options=None, file=DESCRIPTOR),
    176     _descriptor.FieldDescriptor(
    177       name='retain_original_images', full_name='object_detection.protos.EvalConfig.retain_original_images', index=20,
    178       number=23, type=8, cpp_type=7, label=1,
    179       has_default_value=True, default_value=True,
    180       message_type=None, enum_type=None, containing_type=None,
    181       is_extension=False, extension_scope=None,
    182       serialized_options=None, file=DESCRIPTOR),
    183     _descriptor.FieldDescriptor(
    184       name='include_metrics_per_category', full_name='object_detection.protos.EvalConfig.include_metrics_per_category', index=21,
    185       number=24, type=8, cpp_type=7, label=1,
    186       has_default_value=True, default_value=False,
    187       message_type=None, enum_type=None, containing_type=None,
    188       is_extension=False, extension_scope=None,
    189       serialized_options=None, file=DESCRIPTOR),
    190   ],
    191   extensions=[
    192   ],
    193   nested_types=[],
    194   enum_types=[
    195   ],
    196   serialized_options=None,
    197   is_extendable=False,
    198   syntax='proto2',
    199   extension_ranges=[],
    200   oneofs=[
    201   ],
    202   serialized_start=64,
    203   serialized_end=823,
    204 )
    206 DESCRIPTOR.message_types_by_name['EvalConfig'] = _EVALCONFIG
    207 _sym_db.RegisterFileDescriptor(DESCRIPTOR)

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/google/protobuf/descriptor.py:561, in FieldDescriptor.__new__(cls, name, full_name, index, number, type, cpp_type, label, default_value, message_type, enum_type, containing_type, is_extension, extension_scope, options, serialized_options, has_default_value, containing_oneof, json_name, file, create_key)
    555 def __new__(cls, name, full_name, index, number, type, cpp_type, label,
    556             default_value, message_type, enum_type, containing_type,
    557             is_extension, extension_scope, options=None,
    558             serialized_options=None,
    559             has_default_value=True, containing_oneof=None, json_name=None,
    560             file=None, create_key=None):  # pylint: disable=redefined-builtin
--> 561   _message.Message._CheckCalledFromGeneratedFile()
    562   if is_extension:
    563     return _message.default_pool.FindExtensionByName(full_name)

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:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
`

Sorry the error is a bit lengthy. How do I go about fixing this problem? Issue has been resolved thanks for the help! Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62476">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62476">No</a>
 > Issue has been resolved thanks for the help!

Hey, How do you solved this error?? I am also getting the same error
![Uploading n.png…]()

### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

No

### Source

source

### TensorFlow version

2.13.0rc0

### Custom code

Yes

### OS platform and distribution

MacOS

### Mobile device

_No response_

### Python version

Python 3.9.12

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

This code should import tensor flow

### Standalone code to reproduce the issue

```shell
import tensorflow as tf
from object_detection.utils import config_util
from object_detection.protos import pipeline_pb2
from google.protobuf import text_format
```


### Relevant log output

```shell
--------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[24], line 1
----> 1 import tensorflow as tf
      2 from object_detection.utils import config_util
      3 from object_detection.protos import pipeline_pb2

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/__init__.py:48
     45 from tensorflow.python import tf2 as _tf2
     46 _tf2.enable()
---> 48 from tensorflow._api.v2 import __internal__
     49 from tensorflow._api.v2 import __operators__
     50 from tensorflow._api.v2 import audio

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/_api/v2/__internal__/__init__.py:11
      9 from tensorflow._api.v2.__internal__ import decorator
     10 from tensorflow._api.v2.__internal__ import dispatch
---> 11 from tensorflow._api.v2.__internal__ import distribute
     12 from tensorflow._api.v2.__internal__ import eager_context
     13 from tensorflow._api.v2.__internal__ import feature_column

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/_api/v2/__internal__/distribute/__init__.py:8
      3 """Public API for tf._api.v2.__internal__.distribute namespace
      4 """
      6 import sys as _sys
----> 8 from tensorflow._api.v2.__internal__.distribute import combinations
      9 from tensorflow._api.v2.__internal__.distribute import interim
     10 from tensorflow._api.v2.__internal__.distribute import multi_process_runner

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/_api/v2/__internal__/distribute/combinations/__init__.py:8
      3 """Public API for tf._api.v2.__internal__.distribute.combinations namespace
      4 """
      6 import sys as _sys
----> 8 from tensorflow.python.distribute.combinations import env # line: 456
      9 from tensorflow.python.distribute.combinations import generate # line: 365
     10 from tensorflow.python.distribute.combinations import in_main_process # line: 418

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/python/distribute/combinations.py:33
     29 import six
     32 from tensorflow.python.client import session
---> 33 from tensorflow.python.distribute import collective_all_reduce_strategy
     34 from tensorflow.python.distribute import distribute_lib
     35 from tensorflow.python.distribute import multi_process_runner

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/python/distribute/collective_all_reduce_strategy.py:25
     23 from tensorflow.core.protobuf import tensorflow_server_pb2
     24 from tensorflow.python.distribute import collective_util
---> 25 from tensorflow.python.distribute import cross_device_ops as cross_device_ops_lib
     26 from tensorflow.python.distribute import cross_device_utils
     27 from tensorflow.python.distribute import device_util

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/python/distribute/cross_device_ops.py:28
     26 from tensorflow.python.client import device_lib
     27 from tensorflow.python.distribute import collective_util
---> 28 from tensorflow.python.distribute import cross_device_utils
     29 from tensorflow.python.distribute import device_util
     30 from tensorflow.python.distribute import distribute_utils

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/python/distribute/cross_device_utils.py:22
     19 from typing import Callable, List, Optional, Union
     21 from tensorflow.python.distribute import collective_util
---> 22 from tensorflow.python.distribute import values as value_lib
     23 from tensorflow.python.eager import backprop_util
     24 from tensorflow.python.eager import context

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/python/distribute/values.py:23
     21 from tensorflow.core.protobuf import struct_pb2
     22 from tensorflow.python.distribute import device_util
---> 23 from tensorflow.python.distribute import distribute_lib
     24 from tensorflow.python.distribute import packed_distributed_variable as packed
     25 from tensorflow.python.distribute import reduce_util

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/python/distribute/distribute_lib.py:206
    204 from tensorflow.python.autograph.core import ag_ctx as autograph_ctx
    205 from tensorflow.python.autograph.impl import api as autograph
--> 206 from tensorflow.python.data.ops import dataset_ops
    207 from tensorflow.python.distribute import collective_util
    208 from tensorflow.python.distribute import device_util

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/python/data/__init__.py:21
     15 """`tf.data.Dataset` API for input pipelines.
     16 
     17 See [Importing Data](https://tensorflow.org/guide/data) for an overview.
     18 """
     20 # pylint: disable=unused-import
---> 21 from tensorflow.python.data import experimental
     22 from tensorflow.python.data.ops.dataset_ops import AUTOTUNE
     23 from tensorflow.python.data.ops.dataset_ops import Dataset

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/python/data/experimental/__init__.py:98
     15 """Experimental API for building input pipelines.
     16 
     17 This module contains experimental `Dataset` sources and transformations that can
   (...)
     94 @@UNKNOWN_CARDINALITY
     95 """
     97 # pylint: disable=unused-import
---> 98 from tensorflow.python.data.experimental import service
     99 from tensorflow.python.data.experimental.ops.batching import dense_to_ragged_batch
    100 from tensorflow.python.data.experimental.ops.batching import dense_to_sparse_batch

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/python/data/experimental/service/__init__.py:419
      1 # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
      2 #
      3 # Licensed under the Apache License, Version 2.0 (the "License");
   (...)
     13 # limitations under the License.
     14 # ==============================================================================
     15 """API for using the tf.data service.
     16 
     17 This module contains:
   (...)
    416   job of ParameterServerStrategy).
    417 """
--> 419 from tensorflow.python.data.experimental.ops.data_service_ops import distribute
    420 from tensorflow.python.data.experimental.ops.data_service_ops import from_dataset_id
    421 from tensorflow.python.data.experimental.ops.data_service_ops import register_dataset

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/python/data/experimental/ops/data_service_ops.py:22
     20 from tensorflow.core.protobuf import data_service_pb2
     21 from tensorflow.python import tf2
---> 22 from tensorflow.python.data.experimental.ops import compression_ops
     23 from tensorflow.python.data.experimental.service import _pywrap_server_lib
     24 from tensorflow.python.data.experimental.service import _pywrap_utils

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/python/data/experimental/ops/compression_ops.py:16
      1 # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
      2 #
      3 # Licensed under the Apache License, Version 2.0 (the "License");
   (...)
     13 # limitations under the License.
     14 # ==============================================================================
     15 """Ops for compressing and uncompressing dataset elements."""
---> 16 from tensorflow.python.data.util import structure
     17 from tensorflow.python.ops import gen_experimental_dataset_ops as ged_ops
     20 def compress(element):

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/python/data/util/structure.py:32
     30 from tensorflow.python.ops import resource_variable_ops
     31 from tensorflow.python.ops import tensor_array_ops
---> 32 from tensorflow.python.ops.ragged import ragged_tensor
     33 from tensorflow.python.platform import tf_logging as logging
     34 from tensorflow.python.types import internal

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/python/ops/ragged/ragged_tensor.py:2320
   2313     return tensors
   2316 # ===============================================================================
   2317 # RaggedTensorSpec
   2318 # ===============================================================================
   2319 @tf_export("RaggedTensorSpec")
-> 2320 @type_spec_registry.register("tf.RaggedTensorSpec")
   2321 class RaggedTensorSpec(
   2322     type_spec.BatchableTypeSpec, internal_types.RaggedTensorSpec):
   2323   """Type specification for a `tf.RaggedTensor`."""
   2325   __slots__ = [
   2326       "_shape", "_dtype", "_ragged_rank", "_row_splits_dtype",
   2327       "_flat_values_spec"
   2328   ]

File ~/Desktop/Jupyter/TFODCourse/tfod/lib/python3.11/site-packages/tensorflow/python/framework/type_spec_registry.py:59, in register.<locals>.decorator_fn(cls)
     56   raise ValueError("Class %s.%s has already been registered with name %s." %
     57                    (cls.__module__, cls.__name__, _TYPE_SPEC_TO_NAME[cls]))
     58 if name in _NAME_TO_TYPE_SPEC:
---> 59   raise ValueError("Name %s has already been registered for class %s.%s." %
     60                    (name, _NAME_TO_TYPE_SPEC[name].__module__,
     61                     _NAME_TO_TYPE_SPEC[name].__name__))
     62 _TYPE_SPEC_TO_NAME[cls] = name
     63 _NAME_TO_TYPE_SPEC[name] = cls

ValueError: Name tf.RaggedTensorSpec has already been registered for class tensorflow.python.ops.ragged.ragged_tensor.RaggedTensorSpec.
```
