title: ERROR:root:Internal Python error in the inspect module. Below is the traceback from this internal error
body: <p>I want to calculate the following CNN.</p>
  <p>I launched the Jupyter notebook via Anaconda.
  The calculation should be done via the GPU.</p>
  <p>Unfortunately, I got the following error message. Any Ideas regarding my issue?</p>
  <pre><code>    history = model.fit(
          train_generator,
          steps_per_epoch= len(train_generator)//batch_size,
      
          epochs=epochs,
          validation_data=val_generator,
          validation_steps=nb_validation_samples // batch_size,
          callbacks=callbacks)
      
          WARNING:tensorflow:sample_weight modes were coerced from
            ...
              to  
            ['...']
          
          WARNING:tensorflow:sample_weight modes were coerced from
            ...
              to  
            ['...']
          
          WARNING:tensorflow:sample_weight modes were coerced from
            ...
              to  
            ['...']
          
          WARNING:tensorflow:sample_weight modes were coerced from
            ...
              to  
            ['...']
          
          Train for 44 steps, validate for 130 steps
          Epoch 1/5
           1/44 [..............................] - ETA: 7:40
          
          ERROR:root:Internal Python error in the inspect module.
          Below is the traceback from this internal error.
          
          ERROR:root:Internal Python error in the inspect module.
          Below is the traceback from this internal error.
          
          ERROR:root:Internal Python error in the inspect module.
          Below is the traceback from this internal error.
          
  Traceback (most recent call last):
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 3343, in run_code
      exec(code_obj, self.user_global_ns, self.user_ns)
    File &quot;&lt;ipython-input-19-af7d18342167&gt;&quot;, line 8, in &lt;module&gt;
      callbacks=callbacks)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\keras\engine\training.py&quot;, line 819, in fit
      use_multiprocessing=use_multiprocessing)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\keras\engine\training_v2.py&quot;, line 342, in fit
      total_epochs=epochs)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\keras\engine\training_v2.py&quot;, line 128, in run_one_epoch
      batch_outs = execution_function(iterator)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\keras\engine\training_v2_utils.py&quot;, line 98, in execution_function
      distributed_function(input_fn))
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\eager\def_function.py&quot;, line 568, in __call__
      result = self._call(*args, **kwds)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\eager\def_function.py&quot;, line 632, in _call
      return self._stateless_fn(*args, **kwds)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\eager\function.py&quot;, line 2363, in __call__
      return graph_function._filtered_call(args, kwargs)  # pylint: disable=protected-access
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\eager\function.py&quot;, line 1611, in _filtered_call
      self.captured_inputs)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\eager\function.py&quot;, line 1692, in _call_flat
      ctx, args, cancellation_manager=cancellation_manager))
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\eager\function.py&quot;, line 545, in call
      ctx=ctx)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\eager\execute.py&quot;, line 67, in quick_execute
      six.raise_from(core._status_to_exception(e.code, message), None)
    File &quot;&lt;string&gt;&quot;, line 3, in raise_from
  tensorflow.python.framework.errors_impl.ResourceExhaustedError:  OOM when allocating tensor with shape[7,96,524,524] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
       [[node sequential_1/conv2d_3/Conv2D (defined at &lt;ipython-input-19-af7d18342167&gt;:8) ]]
  Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
   [Op:__inference_distributed_function_1811]
  
  Function call stack:
  distributed_function
  
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 2044, in showtraceback
      stb = value._render_traceback_()
  AttributeError: 'ResourceExhaustedError' object has no attribute '_render_traceback_'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 1169, in get_records
      return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 316, in wrapped
      return f(*args, **kwargs)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 350, in _fixed_getinnerframes
      records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\inspect.py&quot;, line 1490, in getinnerframes
      frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\inspect.py&quot;, line 1448, in getframeinfo
      filename = getsourcefile(frame) or getfile(frame)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\inspect.py&quot;, line 696, in getsourcefile
      if getattr(getmodule(object, filename), '__loader__', None) is not None:
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\inspect.py&quot;, line 733, in getmodule
      if ismodule(module) and hasattr(module, '__file__'):
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow\__init__.py&quot;, line 50, in __getattr__
      module = self._load()
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow\__init__.py&quot;, line 44, in _load
      module = _importlib.import_module(self.__name__)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\importlib\__init__.py&quot;, line 126, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 994, in _gcd_import
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 971, in _find_and_load
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 953, in _find_and_load_unlocked
  ModuleNotFoundError: No module named 'tensorflow_core.estimator'
  Traceback (most recent call last):
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 3343, in run_code
      exec(code_obj, self.user_global_ns, self.user_ns)
    File &quot;&lt;ipython-input-19-af7d18342167&gt;&quot;, line 8, in &lt;module&gt;
      callbacks=callbacks)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\keras\engine\training.py&quot;, line 819, in fit
      use_multiprocessing=use_multiprocessing)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\keras\engine\training_v2.py&quot;, line 342, in fit
      total_epochs=epochs)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\keras\engine\training_v2.py&quot;, line 128, in run_one_epoch
      batch_outs = execution_function(iterator)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\keras\engine\training_v2_utils.py&quot;, line 98, in execution_function
      distributed_function(input_fn))
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\eager\def_function.py&quot;, line 568, in __call__
      result = self._call(*args, **kwds)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\eager\def_function.py&quot;, line 632, in _call
      return self._stateless_fn(*args, **kwds)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\eager\function.py&quot;, line 2363, in __call__
      return graph_function._filtered_call(args, kwargs)  # pylint: disable=protected-access
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\eager\function.py&quot;, line 1611, in _filtered_call
      self.captured_inputs)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\eager\function.py&quot;, line 1692, in _call_flat
      ctx, args, cancellation_manager=cancellation_manager))
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\eager\function.py&quot;, line 545, in call
      ctx=ctx)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\eager\execute.py&quot;, line 67, in quick_execute
      six.raise_from(core._status_to_exception(e.code, message), None)
    File &quot;&lt;string&gt;&quot;, line 3, in raise_from
  tensorflow.python.framework.errors_impl.ResourceExhaustedError:  OOM when allocating tensor with shape[7,96,524,524] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
       [[node sequential_1/conv2d_3/Conv2D (defined at &lt;ipython-input-19-af7d18342167&gt;:8) ]]
  Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
   [Op:__inference_distributed_function_1811]
  
  Function call stack:
  distributed_function
  
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 2044, in showtraceback
      stb = value._render_traceback_()
  AttributeError: 'ResourceExhaustedError' object has no attribute '_render_traceback_'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 3263, in run_ast_nodes
      if (await self.run_code(code, result,  async_=asy)):
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 3360, in run_code
      self.showtraceback(running_compiled_code=True)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 2047, in showtraceback
      value, tb, tb_offset=tb_offset)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 1436, in structured_traceback
      self, etype, value, tb, tb_offset, number_of_lines_of_context)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 1336, in structured_traceback
      self, etype, value, tb, tb_offset, number_of_lines_of_context
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 1193, in structured_traceback
      tb_offset)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 1150, in format_exception_as_a_whole
      last_unique, recursion_repeat = find_recursion(orig_etype, evalue, records)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 451, in find_recursion
      return len(records), 0
  TypeError: object of type 'NoneType' has no len()
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 2044, in showtraceback
      stb = value._render_traceback_()
  AttributeError: 'TypeError' object has no attribute '_render_traceback_'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 1169, in get_records
      return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 316, in wrapped
      return f(*args, **kwargs)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 350, in _fixed_getinnerframes
      records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\inspect.py&quot;, line 1490, in getinnerframes
      frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\inspect.py&quot;, line 1448, in getframeinfo
      filename = getsourcefile(frame) or getfile(frame)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\inspect.py&quot;, line 696, in getsourcefile
      if getattr(getmodule(object, filename), '__loader__', None) is not None:
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\inspect.py&quot;, line 733, in getmodule
      if ismodule(module) and hasattr(module, '__file__'):
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow\__init__.py&quot;, line 50, in __getattr__
      module = self._load()
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow\__init__.py&quot;, line 44, in _load
      module = _importlib.import_module(self.__name__)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\importlib\__init__.py&quot;, line 126, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 994, in _gcd_import
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 971, in _find_and_load
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 953, in _find_and_load_unlocked
  ModuleNotFoundError: No module named 'tensorflow_core.estimator'
  Traceback (most recent call last):
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 3343, in run_code
      exec(code_obj, self.user_global_ns, self.user_ns)
    File &quot;&lt;ipython-input-19-af7d18342167&gt;&quot;, line 8, in &lt;module&gt;
      callbacks=callbacks)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\keras\engine\training.py&quot;, line 819, in fit
      use_multiprocessing=use_multiprocessing)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\keras\engine\training_v2.py&quot;, line 342, in fit
      total_epochs=epochs)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\keras\engine\training_v2.py&quot;, line 128, in run_one_epoch
      batch_outs = execution_function(iterator)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\keras\engine\training_v2_utils.py&quot;, line 98, in execution_function
      distributed_function(input_fn))
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\eager\def_function.py&quot;, line 568, in __call__
      result = self._call(*args, **kwds)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\eager\def_function.py&quot;, line 632, in _call
      return self._stateless_fn(*args, **kwds)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\eager\function.py&quot;, line 2363, in __call__
      return graph_function._filtered_call(args, kwargs)  # pylint: disable=protected-access
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\eager\function.py&quot;, line 1611, in _filtered_call
      self.captured_inputs)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\eager\function.py&quot;, line 1692, in _call_flat
      ctx, args, cancellation_manager=cancellation_manager))
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\eager\function.py&quot;, line 545, in call
      ctx=ctx)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow_core\python\eager\execute.py&quot;, line 67, in quick_execute
      six.raise_from(core._status_to_exception(e.code, message), None)
    File &quot;&lt;string&gt;&quot;, line 3, in raise_from
  tensorflow.python.framework.errors_impl.ResourceExhaustedError:  OOM when allocating tensor with shape[7,96,524,524] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
       [[node sequential_1/conv2d_3/Conv2D (defined at &lt;ipython-input-19-af7d18342167&gt;:8) ]]
  Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
   [Op:__inference_distributed_function_1811]
  
  Function call stack:
  distributed_function
  
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 2044, in showtraceback
      stb = value._render_traceback_()
  AttributeError: 'ResourceExhaustedError' object has no attribute '_render_traceback_'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 3263, in run_ast_nodes
      if (await self.run_code(code, result,  async_=asy)):
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 3360, in run_code
      self.showtraceback(running_compiled_code=True)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 2047, in showtraceback
      value, tb, tb_offset=tb_offset)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 1436, in structured_traceback
      self, etype, value, tb, tb_offset, number_of_lines_of_context)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 1336, in structured_traceback
      self, etype, value, tb, tb_offset, number_of_lines_of_context
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 1193, in structured_traceback
      tb_offset)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 1150, in format_exception_as_a_whole
      last_unique, recursion_repeat = find_recursion(orig_etype, evalue, records)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 451, in find_recursion
      return len(records), 0
  TypeError: object of type 'NoneType' has no len()
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 2044, in showtraceback
      stb = value._render_traceback_()
  AttributeError: 'TypeError' object has no attribute '_render_traceback_'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 2895, in _run_cell
      return runner(coro)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\async_helpers.py&quot;, line 68, in _pseudo_sync_runner
      coro.send(None)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 3072, in run_cell_async
      interactivity=interactivity, compiler=compiler, result=result)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 3282, in run_ast_nodes
      self.showtraceback()
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 2047, in showtraceback
      value, tb, tb_offset=tb_offset)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 1436, in structured_traceback
      self, etype, value, tb, tb_offset, number_of_lines_of_context)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 1336, in structured_traceback
      self, etype, value, tb, tb_offset, number_of_lines_of_context
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 1211, in structured_traceback
      chained_exceptions_tb_offset)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 1150, in format_exception_as_a_whole
      last_unique, recursion_repeat = find_recursion(orig_etype, evalue, records)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 451, in find_recursion
      return len(records), 0
  TypeError: object of type 'NoneType' has no len()
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 2044, in showtraceback
      stb = value._render_traceback_()
  AttributeError: 'TypeError' object has no attribute '_render_traceback_'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 1169, in get_records
      return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 316, in wrapped
      return f(*args, **kwargs)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\IPython\core\ultratb.py&quot;, line 350, in _fixed_getinnerframes
      records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\inspect.py&quot;, line 1490, in getinnerframes
      frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\inspect.py&quot;, line 1448, in getframeinfo
      filename = getsourcefile(frame) or getfile(frame)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\inspect.py&quot;, line 696, in getsourcefile
      if getattr(getmodule(object, filename), '__loader__', None) is not None:
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\inspect.py&quot;, line 733, in getmodule
      if ismodule(module) and hasattr(module, '__file__'):
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow\__init__.py&quot;, line 50, in __getattr__
      module = self._load()
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\site-packages\tensorflow\__init__.py&quot;, line 44, in _load
      module = _importlib.import_module(self.__name__)
    File &quot;C:\ProgramData\Anaconda3\envs\PythonGPU\lib\importlib\__init__.py&quot;, line 126, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 994, in _gcd_import
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 971, in _find_and_load
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 953, in _find_and_load_unlocked
  ModuleNotFoundError: No module named 'tensorflow_core.estimator'
  </code></pre>