TypeError: _logger_find_caller() takes from 0 to 1 positional arguments but 2 were given

Jacob
The Rising Tilde
Published in
Feb 27, 2021
Photo by Goran Ivos on Unsplash

System Specifications

  • MacOS Big Sur 11.2
  • Python 3.8
  • Tensorflow version 1.14

Steps

  1. Ensure you have Tensorflow v1.14:
pip3 install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.14.0-py3-none-any.whl

2. Navigate to the place where your tensorflow package is installed. Since I’ve created a virtual environment, I need to navigate to:

env/lib/python3.8/site-packages/tensorflow/python/platform/tf_logging.py

3. Download and replace tf_logging.py with the file from this GitHub link.

References

  1. https://github.com/tensorflow/tensorflow/pull/33953
  2. https://github.com/jacob5412/crime-heat-mapping

--

--