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.

AttributeError: type object 'NewBase' has no attribute 'is_abstract' using 0.8.0

See original GitHub issue

Using tensorflow 0.8.0 (installed via pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl) I have the following error:

python3 train.py 
Traceback (most recent call last):
  File "train.py", line 3, in <module>
    import tensorflow as tf
  File "/usr/local/lib/python3.4/dist-packages/tensorflow/__init__.py", line 23, in <module>
    from tensorflow.python import *
  File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/__init__.py", line 94, in <module>
    from tensorflow.python.platform import test
  File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/platform/test.py", line 62, in <module>
    from tensorflow.python.framework import test_util
  File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/test_util.py", line 41, in <module>
    from tensorflow.python.platform import googletest
  File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/platform/googletest.py", line 32, in <module>
    from tensorflow.python.platform import benchmark  # pylint: disable=unused-import
  File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/platform/benchmark.py", line 112, in <module>
    class Benchmark(six.with_metaclass(_BenchmarkRegistrar, object)):
  File "/usr/lib/python3/dist-packages/six.py", line 617, in with_metaclass
    return meta("NewBase", bases, {})
  File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/platform/benchmark.py", line 107, in __new__
    if not newclass.is_abstract():
AttributeError: type object 'NewBase' has no attribute 'is_abstract'

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
mayank-kgpcommented, Nov 15, 2016

@servomac It worked after sudo pip install six --upgrade --target=“/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/”

0reactions
erwincoumanscommented, Jun 14, 2017

I just ran into the same issue with the latest Tensorflow wheel cpu/tensorflow-1.1.0-cp34-cp34m-linux_x86_64.whl in combination with OpenAI baselines.

Read more comments on GitHub >

github_iconTop Results From Across the Web

tensorflow AttributError: type object 'NewBase' has no ...
Already upgraded six. pip sucessfully installed tensorflow. Went through several steps/upgrades just to get to this point. Now, when I try to ...
Read more >
AttributeError: type object 'NewBase' has no attribute ' ...
I uninstalled anaconda and reinstalled tensorflow using the pip installation. Originally it was having trouble updating numpy, ...
Read more >
Pylint Documentation
Pylint is a tool that checks for errors in Python code, tries to enforce a coding standard and looks for code smells. It....
Read more >
1.6.0 PDF - Pylint Documentation
fix #20067: AttributeError: 'NoneType' object has no attribute 'name' with with. 3.2.36 What's New in Pylint 0.20.0?
Read more >
[Solved] AttributeError: 'module' object has no attribute
Click here to subscribe - https://www.youtube.com/channel/UCeVMnSShP_Iviwkknt83cww▻Instagram ...
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