question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tensorboard 'numpy' has no attribute 'integer'

See original GitHub issue

When 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:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
naveeen684commented, Apr 6, 2020

Upgrading pip helped me

1reaction
RACHANAMOVVA09commented, Dec 11, 2019

My bad, it was pointing to a previous numpy version… The update fixed it

To which version have you updated your numpy to?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found