AttributeError: type object 'NewBase' has no attribute 'is_abstract' using 0.8.0
See original GitHub issueUsing 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:
- Created 7 years ago
- Comments:6
Top 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 >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 FreeTop 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
Top GitHub Comments
@servomac It worked after sudo pip install six --upgrade --target=“/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/”
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.