title: why it can't import trace in python
body: <p>I have the following error, and I am new to data science and python
  I am using python, keras, tensorflow</p>
  <pre><code>from tensorflow.python.profiler import trace
  </code></pre>
  <p>ImportError: cannot import name 'trace'</p>
  <p>Full error report</p>
  <pre><code>Training network heads
  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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\keras\callbacks\tensorboard_v1.py&quot;, line 96, in __init__
      from tensorflow.contrib.tensorboard.plugins import projector
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow\__init__.py&quot;, line 50, in __getattr__
      module = self._load()
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow\__init__.py&quot;, line 44, in _load
      module = _importlib.import_module(self.__name__)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\importlib\__init__.py&quot;, line 126, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_core\contrib\__init__.py&quot;, line 39, in &lt;module&gt;
      from tensorflow.contrib import compiler
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_core\contrib\compiler\__init__.py&quot;, line 21, in &lt;module&gt;
      from tensorflow.contrib.compiler import jit
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_core\contrib\compiler\__init__.py&quot;, line 22, in &lt;module&gt;
      from tensorflow.contrib.compiler import xla
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_core\contrib\compiler\xla.py&quot;, line 22, in &lt;module&gt;
      from tensorflow.python.estimator import model_fn as model_fn_lib
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_core\python\estimator\model_fn.py&quot;, line 26, in &lt;module&gt;
      from tensorflow_estimator.python.estimator import model_fn
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_estimator\__init__.py&quot;, line 10, in &lt;module&gt;
      from tensorflow_estimator._api.v1 import estimator
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_estimator\_api\v1\estimator\__init__.py&quot;, line 10, in &lt;module&gt;
      from tensorflow_estimator._api.v1.estimator import experimental
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_estimator\_api\v1\estimator\experimental\__init__.py&quot;, line 10, in &lt;module&gt;
      from tensorflow_estimator.python.estimator.canned.dnn import dnn_logit_fn_builder
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_estimator\python\estimator\canned\dnn.py&quot;, line 27, in &lt;module&gt;
      from tensorflow_estimator.python.estimator import estimator
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py&quot;, line 36, in &lt;module&gt;
      from tensorflow.python.profiler import trace
  ImportError: cannot import name 'trace'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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-6-712e23ddfaeb&gt;&quot;, line 8, in &lt;module&gt;
      layers='heads')
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdai-mapping-challenge-mask-rcnn-master\crowdai-mapping-challenge-mask-rcnn-master\mrcnn\model.py&quot;, line 2287, in train
      histogram_freq=0, write_graph=True, write_images=False),
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\keras\callbacks\tensorboard_v1.py&quot;, line 98, in __init__
      raise ImportError('You need the TensorFlow (v1) module installed to '
  ImportError: You need the TensorFlow (v1) module installed to use TensorBoard.
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 2044, in showtraceback
      stb = value._render_traceback_()
  AttributeError: 'ImportError' object has no attribute '_render_traceback_'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\IPython\core\ultratb.py&quot;, line 316, in wrapped
      return f(*args, **kwargs)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\IPython\core\ultratb.py&quot;, line 350, in _fixed_getinnerframes
      records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\inspect.py&quot;, line 1490, in getinnerframes
      frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\inspect.py&quot;, line 1448, in getframeinfo
      filename = getsourcefile(frame) or getfile(frame)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\inspect.py&quot;, line 696, in getsourcefile
      if getattr(getmodule(object, filename), '__loader__', None) is not None:
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\inspect.py&quot;, line 733, in getmodule
      if ismodule(module) and hasattr(module, '__file__'):
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow\__init__.py&quot;, line 50, in __getattr__
      module = self._load()
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow\__init__.py&quot;, line 44, in _load
      module = _importlib.import_module(self.__name__)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\keras\callbacks\tensorboard_v1.py&quot;, line 96, in __init__
      from tensorflow.contrib.tensorboard.plugins import projector
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow\__init__.py&quot;, line 50, in __getattr__
      module = self._load()
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow\__init__.py&quot;, line 44, in _load
      module = _importlib.import_module(self.__name__)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\importlib\__init__.py&quot;, line 126, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_core\contrib\__init__.py&quot;, line 39, in &lt;module&gt;
      from tensorflow.contrib import compiler
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_core\contrib\compiler\__init__.py&quot;, line 21, in &lt;module&gt;
      from tensorflow.contrib.compiler import jit
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_core\contrib\compiler\__init__.py&quot;, line 22, in &lt;module&gt;
      from tensorflow.contrib.compiler import xla
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_core\contrib\compiler\xla.py&quot;, line 22, in &lt;module&gt;
      from tensorflow.python.estimator import model_fn as model_fn_lib
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_core\python\estimator\model_fn.py&quot;, line 26, in &lt;module&gt;
      from tensorflow_estimator.python.estimator import model_fn
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_estimator\__init__.py&quot;, line 10, in &lt;module&gt;
      from tensorflow_estimator._api.v1 import estimator
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_estimator\_api\v1\estimator\__init__.py&quot;, line 10, in &lt;module&gt;
      from tensorflow_estimator._api.v1.estimator import experimental
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_estimator\_api\v1\estimator\experimental\__init__.py&quot;, line 10, in &lt;module&gt;
      from tensorflow_estimator.python.estimator.canned.dnn import dnn_logit_fn_builder
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_estimator\python\estimator\canned\dnn.py&quot;, line 27, in &lt;module&gt;
      from tensorflow_estimator.python.estimator import estimator
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py&quot;, line 36, in &lt;module&gt;
      from tensorflow.python.profiler import trace
  ImportError: cannot import name 'trace'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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-6-712e23ddfaeb&gt;&quot;, line 8, in &lt;module&gt;
      layers='heads')
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdai-mapping-challenge-mask-rcnn-master\crowdai-mapping-challenge-mask-rcnn-master\mrcnn\model.py&quot;, line 2287, in train
      histogram_freq=0, write_graph=True, write_images=False),
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\keras\callbacks\tensorboard_v1.py&quot;, line 98, in __init__
      raise ImportError('You need the TensorFlow (v1) module installed to '
  ImportError: You need the TensorFlow (v1) module installed to use TensorBoard.
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 2044, in showtraceback
      stb = value._render_traceback_()
  AttributeError: 'ImportError' object has no attribute '_render_traceback_'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 3360, in run_code
      self.showtraceback(running_compiled_code=True)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 2047, in showtraceback
      value, tb, tb_offset=tb_offset)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\IPython\core\ultratb.py&quot;, line 1193, in structured_traceback
      tb_offset)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\IPython\core\ultratb.py&quot;, line 316, in wrapped
      return f(*args, **kwargs)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\IPython\core\ultratb.py&quot;, line 350, in _fixed_getinnerframes
      records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\inspect.py&quot;, line 1490, in getinnerframes
      frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\inspect.py&quot;, line 1448, in getframeinfo
      filename = getsourcefile(frame) or getfile(frame)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\inspect.py&quot;, line 696, in getsourcefile
      if getattr(getmodule(object, filename), '__loader__', None) is not None:
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\inspect.py&quot;, line 733, in getmodule
      if ismodule(module) and hasattr(module, '__file__'):
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow\__init__.py&quot;, line 50, in __getattr__
      module = self._load()
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow\__init__.py&quot;, line 44, in _load
      module = _importlib.import_module(self.__name__)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\keras\callbacks\tensorboard_v1.py&quot;, line 96, in __init__
      from tensorflow.contrib.tensorboard.plugins import projector
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow\__init__.py&quot;, line 50, in __getattr__
      module = self._load()
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow\__init__.py&quot;, line 44, in _load
      module = _importlib.import_module(self.__name__)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\importlib\__init__.py&quot;, line 126, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_core\contrib\__init__.py&quot;, line 39, in &lt;module&gt;
      from tensorflow.contrib import compiler
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_core\contrib\compiler\__init__.py&quot;, line 21, in &lt;module&gt;
      from tensorflow.contrib.compiler import jit
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_core\contrib\compiler\__init__.py&quot;, line 22, in &lt;module&gt;
      from tensorflow.contrib.compiler import xla
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_core\contrib\compiler\xla.py&quot;, line 22, in &lt;module&gt;
      from tensorflow.python.estimator import model_fn as model_fn_lib
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_core\python\estimator\model_fn.py&quot;, line 26, in &lt;module&gt;
      from tensorflow_estimator.python.estimator import model_fn
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_estimator\__init__.py&quot;, line 10, in &lt;module&gt;
      from tensorflow_estimator._api.v1 import estimator
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_estimator\_api\v1\estimator\__init__.py&quot;, line 10, in &lt;module&gt;
      from tensorflow_estimator._api.v1.estimator import experimental
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_estimator\_api\v1\estimator\experimental\__init__.py&quot;, line 10, in &lt;module&gt;
      from tensorflow_estimator.python.estimator.canned.dnn import dnn_logit_fn_builder
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_estimator\python\estimator\canned\dnn.py&quot;, line 27, in &lt;module&gt;
      from tensorflow_estimator.python.estimator import estimator
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py&quot;, line 36, in &lt;module&gt;
      from tensorflow.python.profiler import trace
  ImportError: cannot import name 'trace'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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-6-712e23ddfaeb&gt;&quot;, line 8, in &lt;module&gt;
      layers='heads')
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdai-mapping-challenge-mask-rcnn-master\crowdai-mapping-challenge-mask-rcnn-master\mrcnn\model.py&quot;, line 2287, in train
      histogram_freq=0, write_graph=True, write_images=False),
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\keras\callbacks\tensorboard_v1.py&quot;, line 98, in __init__
      raise ImportError('You need the TensorFlow (v1) module installed to '
  ImportError: You need the TensorFlow (v1) module installed to use TensorBoard.
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 2044, in showtraceback
      stb = value._render_traceback_()
  AttributeError: 'ImportError' object has no attribute '_render_traceback_'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 3360, in run_code
      self.showtraceback(running_compiled_code=True)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 2047, in showtraceback
      value, tb, tb_offset=tb_offset)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\IPython\core\ultratb.py&quot;, line 1193, in structured_traceback
      tb_offset)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 2895, in _run_cell
      return runner(coro)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\IPython\core\async_helpers.py&quot;, line 68, in _pseudo_sync_runner
      coro.send(None)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 3072, in run_cell_async
      interactivity=interactivity, compiler=compiler, result=result)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 3282, in run_ast_nodes
      self.showtraceback()
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 2047, in showtraceback
      value, tb, tb_offset=tb_offset)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\IPython\core\ultratb.py&quot;, line 1211, in structured_traceback
      chained_exceptions_tb_offset)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\IPython\core\ultratb.py&quot;, line 316, in wrapped
      return f(*args, **kwargs)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\IPython\core\ultratb.py&quot;, line 350, in _fixed_getinnerframes
      records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\inspect.py&quot;, line 1490, in getinnerframes
      frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\inspect.py&quot;, line 1448, in getframeinfo
      filename = getsourcefile(frame) or getfile(frame)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\inspect.py&quot;, line 696, in getsourcefile
      if getattr(getmodule(object, filename), '__loader__', None) is not None:
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\inspect.py&quot;, line 733, in getmodule
      if ismodule(module) and hasattr(module, '__file__'):
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow\__init__.py&quot;, line 50, in __getattr__
      module = self._load()
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\lib\site-packages\tensorflow\__init__.py&quot;, line 44, in _load
      module = _importlib.import_module(self.__name__)
    File &quot;F:\Khalid\Documents\miniconda3\envs\crowdAI2\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>