from tensorflow.keras.models import load_model

# Load the pre-trained model
model_y5 = load_model('snn_1142_hlp5_5m_relu_trainloss05_mae12_valloss12_mae14.h5')


error:
{
	"name": "AttributeError",
	"message": "partially initialized module 'charset_normalizer' has no attribute 'md__mypyc' (most likely due to a circular import)",
	"stack": "---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
File c:\\Users\\arisa\\.conda\\envs\\tf\\lib\\site-packages\\requests\\compat.py:11
     10 try:
---> 11     import chardet
     12 except ImportError:

ModuleNotFoundError: No module named 'chardet'

During handling of the above exception, another exception occurred:

AttributeError                            Traceback (most recent call last)
Cell In[9], line 1
----> 1 from tensorflow.keras.models import load_model
      3 # Load the pre-trained model
      4 model_y5 = load_model('snn_1142_hlp5_5m_relu_trainloss05_mae12_valloss12_mae14.h5')

File c:\\Users\\arisa\\.conda\\envs\\tf\\lib\\site-packages\\tensorflow\\__init__.py:51
     49 from ._api.v2 import autograph
     50 from ._api.v2 import bitwise
---> 51 from ._api.v2 import compat
     52 from ._api.v2 import config
     53 from ._api.v2 import data

File c:\\Users\\arisa\\.conda\\envs\\tf\\lib\\site-packages\\tensorflow\\_api\\v2\\compat\\__init__.py:37
      3 \"\"\"Compatibility functions.
      4 
      5 The `tf.compat` module contains two sets of compatibility functions.
   (...)
     32 
     33 \"\"\"
     35 import sys as _sys
---> 37 from . import v1
     38 from . import v2
     39 from tensorflow.python.compat.compat import forward_compatibility_horizon

File c:\\Users\\arisa\\.conda\\envs\\tf\\lib\\site-packages\\tensorflow\\_api\\v2\\compat\\v1\\__init__.py:30
     28 from . import autograph
     29 from . import bitwise
---> 30 from . import compat
     31 from . import config
     32 from . import data

File c:\\Users\\arisa\\.conda\\envs\\tf\\lib\\site-packages\\tensorflow\\_api\\v2\\compat\\v1\\compat\\__init__.py:38
     35 import sys as _sys
     37 from . import v1
---> 38 from . import v2
     39 from tensorflow.python.compat.compat import forward_compatibility_horizon
     40 from tensorflow.python.compat.compat import forward_compatible

File c:\\Users\\arisa\\.conda\\envs\\tf\\lib\\site-packages\\tensorflow\\_api\\v2\\compat\\v1\\compat\\v2\\__init__.py:28
     25 # pylint: disable=g-bad-import-order
     27 from . import compat
---> 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 c:\\Users\\arisa\\.conda\\envs\\tf\\lib\\site-packages\\tensorflow\\_api\\v2\\compat\\v2\\__init__.py:33
     31 from . import autograph
     32 from . import bitwise
---> 33 from . import compat
     34 from . import config
     35 from . import data

File c:\\Users\\arisa\\.conda\\envs\\tf\\lib\\site-packages\\tensorflow\\_api\\v2\\compat\\v2\\compat\\__init__.py:38
     35 import sys as _sys
     37 from . import v1
---> 38 from . import v2
     39 from tensorflow.python.compat.compat import forward_compatibility_horizon
     40 from tensorflow.python.compat.compat import forward_compatible

File c:\\Users\\arisa\\.conda\\envs\\tf\\lib\\site-packages\\tensorflow\\_api\\v2\\compat\\v2\\compat\\v2\\__init__.py:37
     35 from tensorflow._api.v2.compat.v2 import data
     36 from tensorflow._api.v2.compat.v2 import debugging
---> 37 from tensorflow._api.v2.compat.v2 import distribute
     38 from tensorflow._api.v2.compat.v2 import dtypes
     39 from tensorflow._api.v2.compat.v2 import errors

File c:\\Users\\arisa\\.conda\\envs\\tf\\lib\\site-packages\\tensorflow\\_api\\v2\\compat\\v2\\distribute\\__init__.py:182
    180 from . import cluster_resolver
    181 from . import coordinator
--> 182 from . import experimental
    183 from tensorflow.python.distribute.collective_all_reduce_strategy import CollectiveAllReduceStrategy as MultiWorkerMirroredStrategy
    184 from tensorflow.python.distribute.cross_device_ops import CrossDeviceOps

File c:\\Users\\arisa\\.conda\\envs\\tf\\lib\\site-packages\\tensorflow\\_api\\v2\\compat\\v2\\distribute\\experimental\\__init__.py:10
      8 from . import coordinator
      9 from . import partitioners
---> 10 from . import rpc
     11 from tensorflow.python.distribute.central_storage_strategy import CentralStorageStrategy
     12 from tensorflow.python.distribute.collective_all_reduce_strategy import _CollectiveAllReduceStrategyExperimental as MultiWorkerMirroredStrategy

File c:\\Users\\arisa\\.conda\\envs\\tf\\lib\\site-packages\\tensorflow\\_api\\v2\\compat\\v2\\distribute\\experimental\\rpc\\__init__.py:8
      3 \"\"\"Public API for tf.distribute.experimental.rpc namespace.
      4 \"\"\"
      6 import sys as _sys
----> 8 from tensorflow.python.distribute.experimental.rpc.rpc_ops import Client
      9 from tensorflow.python.distribute.experimental.rpc.rpc_ops import Server

File c:\\Users\\arisa\\.conda\\envs\\tf\\lib\\site-packages\\tensorflow\\python\\distribute\\experimental\\__init__.py:22
     20 from tensorflow.python.distribute import parameter_server_strategy
     21 from tensorflow.python.distribute import tpu_strategy
---> 22 from tensorflow.python.distribute.failure_handling import failure_handling
     23 # pylint: enable=unused-import

File c:\\Users\\arisa\\.conda\\envs\\tf\\lib\\site-packages\\tensorflow\\python\\distribute\\failure_handling\\failure_handling.py:33
     31 from tensorflow.python.checkpoint import checkpoint_management
     32 from tensorflow.python.distribute import multi_worker_util
---> 33 from tensorflow.python.distribute.failure_handling import gce_util
     34 from tensorflow.python.eager import context
     35 from tensorflow.python.framework import constant_op

File c:\\Users\\arisa\\.conda\\envs\\tf\\lib\\site-packages\\tensorflow\\python\\distribute\\failure_handling\\gce_util.py:20
     17 import os
     18 import sys
---> 20 import requests
     22 from six.moves.urllib import request
     23 from tensorflow.python.eager import context

File c:\\Users\\arisa\\.conda\\envs\\tf\\lib\\site-packages\\requests\\__init__.py:45
     41 import warnings
     43 import urllib3
---> 45 from .exceptions import RequestsDependencyWarning
     47 try:
     48     from charset_normalizer import __version__ as charset_normalizer_version

File c:\\Users\\arisa\\.conda\\envs\\tf\\lib\\site-packages\\requests\\exceptions.py:9
      1 \"\"\"
      2 requests.exceptions
      3 ~~~~~~~~~~~~~~~~~~~
      4 
      5 This module contains the set of Requests' exceptions.
      6 \"\"\"
      7 from urllib3.exceptions import HTTPError as BaseHTTPError
----> 9 from .compat import JSONDecodeError as CompatJSONDecodeError
     12 class RequestException(IOError):
     13     \"\"\"There was an ambiguous exception that occurred while handling your
     14     request.
     15     \"\"\"

File c:\\Users\\arisa\\.conda\\envs\\tf\\lib\\site-packages\\requests\\compat.py:13
     11     import chardet
     12 except ImportError:
---> 13     import charset_normalizer as chardet
     15 import sys
     17 # -------
     18 # Pythons
     19 # -------
     20 
     21 # Syntax sugar.

File c:\\Users\\arisa\\.conda\\envs\\tf\\lib\\site-packages\\charset_normalizer\\__init__.py:23
      1 \"\"\"
      2 Charset-Normalizer
      3 ~~~~~~~~~~~~~~
   (...)
     21 :license: MIT, see LICENSE for more details.
     22 \"\"\"
---> 23 from charset_normalizer.api import from_fp, from_path, from_bytes, normalize
     24 from charset_normalizer.legacy import detect
     25 from charset_normalizer.version import __version__, VERSION

File c:\\Users\\arisa\\.conda\\envs\\tf\\lib\\site-packages\\charset_normalizer\\api.py:10
      7     PathLike = Union[str, 'os.PathLike[str]']  # type: ignore
      9 from charset_normalizer.constant import TOO_SMALL_SEQUENCE, TOO_BIG_SEQUENCE, IANA_SUPPORTED
---> 10 from charset_normalizer.md import mess_ratio
     11 from charset_normalizer.models import CharsetMatches, CharsetMatch
     12 from warnings import warn

AttributeError: partially initialized module 'charset_normalizer' has no attribute 'md__mypyc' (most likely due to a circular import)"
}