TypeError: _logger_find_caller() takes from 0 to 1 positional arguments but 2 were given
Published in
Feb 27, 2021
System Specifications
- MacOS Big Sur 11.2
- Python 3.8
- Tensorflow version 1.14
Steps
- 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.