Tensor board Mac M1 not working

HI All,

Facing below error when I try to launch tensor board in Mac M1. Can someone help ?

Thank you

Rajkamal

ERROR: Failed to launch TensorBoard (exited with 1).
Contents of stderr:
Traceback (most recent call last):
File “/Users/rajkamal/opt/miniconda3/lib/python3.9/site-packages/tensorboard/compat/init.py”, line 42, in tf
from tensorboard.compat import notf # noqa: F401
ImportError: cannot import name ‘notf’ from ‘tensorboard.compat’ (/Users/rajkamal/opt/miniconda3/lib/python3.9/site-packages/tensorboard/compat/init.py)

During handling of the above exception, another exception occurred:

RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf
Traceback (most recent call last):
File “/Users/rajkamal/opt/miniconda3/lib/python3.9/site-packages/tensorboard/compat/init.py”, line 42, in tf
from tensorboard.compat import notf # noqa: F401
ImportError: cannot import name ‘notf’ from ‘tensorboard.compat’ (/Users/rajkamal/opt/miniconda3/lib/python3.9/site-packages/tensorboard/compat/init.py)

During handling of the above exception, another exception occurred:

RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf
Traceback (most recent call last):
File “/Users/rajkamal/opt/miniconda3/lib/python3.9/site-packages/tensorboard/compat/init.py”, line 42, in tf
from tensorboard.compat import notf # noqa: F401
ImportError: cannot import name ‘notf’ from ‘tensorboard.compat’ (/Users/rajkamal/opt/miniconda3/lib/python3.9/site-packages/tensorboard/compat/init.py)

During handling of the above exception, another exception occurred:

RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf
Traceback (most recent call last):
File “/Users/rajkamal/opt/miniconda3/lib/python3.9/site-packages/tensorboard/compat/init.py”, line 42, in tf
from tensorboard.compat import notf # noqa: F401
ImportError: cannot import name ‘notf’ from ‘tensorboard.compat’ (/Users/rajkamal/opt/miniconda3/lib/python3.9/site-packages/tensorboard/compat/init.py)

During handling of the above exception, another exception occurred:

RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf
Traceback (most recent call last):
File “/Users/rajkamal/opt/miniconda3/lib/python3.9/site-packages/tensorboard/compat/init.py”, line 42, in tf
from tensorboard.compat import notf # noqa: F401
ImportError: cannot import name ‘notf’ from ‘tensorboard.compat’ (/Users/rajkamal/opt/miniconda3/lib/python3.9/site-packages/tensorboard/compat/init.py)

@Rajkamal,

It seems there may be a compatibility issue between the version of TensorBoard and the version of Numpy being used in your environment.

You can try updating Numpy to the latest version by running pip install --upgrade numpy

Thank you!