tensorboard 'numpy' has no attribute 'integer'
See original GitHub issueWhen running tensorboard, an attribute error is triggered.
Reproducing code example:
tensorboard --logdir path/to/dir
Error message:
ImportError: numpy.core.multiarray failed to import
ImportError: numpy.core.multiarray failed to import
ImportError: numpy.core.umath failed to import
ImportError: numpy.core.umath failed to import
Traceback (most recent call last):
File "/home/denis/.local/bin/tensorboard", line 7, in <module>
from tensorboard.main import run_main
File "/home/denis/.local/lib/python3.6/site-packages/tensorboard/main.py", line 45, in <module>
from tensorboard import default
File "/home/denis/.local/lib/python3.6/site-packages/tensorboard/default.py", line 34, in <module>
import tensorflow as tf
File "/home/denis/.local/lib/python3.6/site-packages/tensorflow/__init__.py", line 24, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "/home/denis/.local/lib/python3.6/site-packages/tensorflow/python/__init__.py", line 70, in <module>
from tensorflow.python.framework.framework_lib import * # pylint: disable=redefined-builtin
File "/home/denis/.local/lib/python3.6/site-packages/tensorflow/python/framework/framework_lib.py", line 25, in <module>
from tensorflow.python.framework.ops import Graph
File "/home/denis/.local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 39, in <module>
from tensorflow.python.eager import context
File "/home/denis/.local/lib/python3.6/site-packages/tensorflow/python/eager/context.py", line 29, in <module>
from tensorflow.python.framework import c_api_util
File "/home/denis/.local/lib/python3.6/site-packages/tensorflow/python/framework/c_api_util.py", line 25, in <module>
from tensorflow.python.util import compat
File "/home/denis/.local/lib/python3.6/site-packages/tensorflow/python/util/compat.py", line 129, in <module>
integral_types = (_numbers.Integral, _np.integer)
AttributeError: module 'numpy' has no attribute 'integer'
Numpy/Python version information:
Python 3.6.7 Numpy version: 1.16.1
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
How to fix AttributeError: module 'numpy' has no attribute ...
I ran conda update --all , pip uninstall -y numpy , pip uninstall -y setuptools , pip install setuptools==39.1.0 , and pip install...
Read more >AttributeError: module 'numpy' has no attribute 'integer'
AttributeError : module 'numpy' has no attribute 'integer'_北顾丶的博客-CSDN博客_module 'numpy' has no attribute 'integer.
Read more >Better performance with tf.function | TensorFlow Core
However because it is a python integer and not a TensorFlow object, ... 2 'Tensor' object has no attribute 'numpy' Caught expected exception...
Read more >Attributeerror: Module 'tensorflow' Has No Attribute ...
In this article, we will discuss how to solve the attributeerror module 'tensorflow' that has no attribute 'scaler_summmary'.
Read more >Module 'numpy' has no attribute 'linespace' ( Solved )
The root cause for the error is that there is no such module or method provided by the NumPy python package. You will...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Upgrading pip helped me
To which version have you updated your numpy to?