-
-
Save mrry/ee5dbcfdd045fa48a27d56664411d41c to your computer and use it in GitHub Desktop.
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
# ============================================================================== | |
"""A script for testing that TensorFlow is installed correctly on Windows. | |
The script will attempt to verify your TensorFlow installation, and print | |
suggestions for how to fix your installation. | |
""" | |
import ctypes | |
import imp | |
import sys | |
def main(): | |
try: | |
import tensorflow as tf | |
print("TensorFlow successfully installed.") | |
if tf.test.is_built_with_cuda(): | |
print("The installed version of TensorFlow includes GPU support.") | |
else: | |
print("The installed version of TensorFlow does not include GPU support.") | |
sys.exit(0) | |
except ImportError: | |
print("ERROR: Failed to import the TensorFlow module.") | |
print(""" | |
WARNING! This script is no longer maintained! | |
============================================= | |
Since TensorFlow 1.4, the self-check has been integrated with TensorFlow itself, | |
and any missing DLLs will be reported when you execute the `import tensorflow` | |
statement. The error messages printed below refer to TensorFlow 1.3 and earlier, | |
and are inaccurate for later versions of TensorFlow.""") | |
candidate_explanation = False | |
python_version = sys.version_info.major, sys.version_info.minor | |
print("\n- Python version is %d.%d." % python_version) | |
if not (python_version == (3, 5) or python_version == (3, 6)): | |
candidate_explanation = True | |
print("- The official distribution of TensorFlow for Windows requires " | |
"Python version 3.5 or 3.6.") | |
try: | |
_, pathname, _ = imp.find_module("tensorflow") | |
print("\n- TensorFlow is installed at: %s" % pathname) | |
except ImportError: | |
candidate_explanation = False | |
print(""" | |
- No module named TensorFlow is installed in this Python environment. You may | |
install it using the command `pip install tensorflow`.""") | |
try: | |
msvcp140 = ctypes.WinDLL("msvcp140.dll") | |
except OSError: | |
candidate_explanation = True | |
print(""" | |
- Could not load 'msvcp140.dll'. TensorFlow requires that this DLL be | |
installed in a directory that is named in your %PATH% environment | |
variable. You may install this DLL by downloading Microsoft Visual | |
C++ 2015 Redistributable Update 3 from this URL: | |
https://www.microsoft.com/en-us/download/details.aspx?id=53587""") | |
try: | |
cudart64_80 = ctypes.WinDLL("cudart64_80.dll") | |
except OSError: | |
candidate_explanation = True | |
print(""" | |
- Could not load 'cudart64_80.dll'. The GPU version of TensorFlow | |
requires that this DLL be installed in a directory that is named in | |
your %PATH% environment variable. Download and install CUDA 8.0 from | |
this URL: https://developer.nvidia.com/cuda-toolkit""") | |
try: | |
nvcuda = ctypes.WinDLL("nvcuda.dll") | |
except OSError: | |
candidate_explanation = True | |
print(""" | |
- Could not load 'nvcuda.dll'. The GPU version of TensorFlow requires that | |
this DLL be installed in a directory that is named in your %PATH% | |
environment variable. Typically it is installed in 'C:\Windows\System32'. | |
If it is not present, ensure that you have a CUDA-capable GPU with the | |
correct driver installed.""") | |
cudnn5_found = False | |
try: | |
cudnn5 = ctypes.WinDLL("cudnn64_5.dll") | |
cudnn5_found = True | |
except OSError: | |
candidate_explanation = True | |
print(""" | |
- Could not load 'cudnn64_5.dll'. The GPU version of TensorFlow | |
requires that this DLL be installed in a directory that is named in | |
your %PATH% environment variable. Note that installing cuDNN is a | |
separate step from installing CUDA, and it is often found in a | |
different directory from the CUDA DLLs. You may install the | |
necessary DLL by downloading cuDNN 5.1 from this URL: | |
https://developer.nvidia.com/cudnn""") | |
cudnn6_found = False | |
try: | |
cudnn = ctypes.WinDLL("cudnn64_6.dll") | |
cudnn6_found = True | |
except OSError: | |
candidate_explanation = True | |
if not cudnn5_found or not cudnn6_found: | |
print() | |
if not cudnn5_found and not cudnn6_found: | |
print("- Could not find cuDNN.") | |
elif not cudnn5_found: | |
print("- Could not find cuDNN 5.1.") | |
else: | |
print("- Could not find cuDNN 6.") | |
print(""" | |
The GPU version of TensorFlow requires that the correct cuDNN DLL be installed | |
in a directory that is named in your %PATH% environment variable. Note that | |
installing cuDNN is a separate step from installing CUDA, and it is often | |
found in a different directory from the CUDA DLLs. The correct version of | |
cuDNN depends on your version of TensorFlow: | |
* TensorFlow 1.2.1 or earlier requires cuDNN 5.1. ('cudnn64_5.dll') | |
* TensorFlow 1.3 or later requires cuDNN 6. ('cudnn64_6.dll') | |
You may install the necessary DLL by downloading cuDNN from this URL: | |
https://developer.nvidia.com/cudnn""") | |
if not candidate_explanation: | |
print(""" | |
- All required DLLs appear to be present. Please open an issue on the | |
TensorFlow GitHub page: https://github.com/tensorflow/tensorflow/issues""") | |
sys.exit(-1) | |
if __name__ == "__main__": | |
main() |
I'm getting installation errors for tensorflow CPU version, will this help me to troubleshoot the problems.
this script is asking for graphics files while I am using CPU version only
It seems there is the problem with the newer windows CPU version (1.6 onwards ) of tensorflow.
I installed 1.5 it works fine in windows
pip install tensorflow==1.5
I faced a similar problem using a Paperspace Windows 10 virtual machine. Reverting to tensorflow 1.5 helped.
thanks pyparam!! i downgrade the tensorflow versions from 1.8 to 1.5 and it worked for me.
I have an error when I run in a cluster
File home/L /miniconda3/envs/tensorflow/lib/python3.6/imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: libnvidia-fatbinaryloader.so.384.111: cannot open shared object file: No such file or directory
Failed to load the native TensorFlow runtime.
even I have no error and no pm when I run suggested script! (https://gist.github.com/mrry/ee5dbcfdd045fa48a27d56664411d41c)
Also, I have tried to
conda create -n tf-nogpu python=3.6 tensorflow
but my problem is not solved!Even I have said nogpu!
Do you have any suggestion?
With 1.11.0, my error is
AttributeError: module '_pywrap_tensorflow_internal' has no attribute 'TFE_DEVICE_PLACEMENT_EXPLICIT_swigconstant'
which appears whenever you do import tensorflow as tf. So with this script the full stack trace is:
Traceback (most recent call last):
File "tf_test.py", line 145, in
main()
File "tf_test.py", line 26, in main
import tensorflow as tf
File "C:\Users\g.werner\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_init_.py", line 22, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:\Users\g.werner\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python_init_.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\g.werner\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\g.werner\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 102, in
_pywrap_tensorflow_internal.TFE_DEVICE_PLACEMENT_EXPLICIT_swigconstant(_pywrap_tensorflow_internal)
AttributeError: module '_pywrap_tensorflow_internal' has no attribute 'TFE_DEVICE_PLACEMENT_EXPLICIT_swigconstant'
EDIT
But when I downgrade to 1.10.0, the script says everything is fine
man you are rock!
thanks a lot for your script.
i just needed to make some little updates with the version of every program but it detect that i make mistake in the installation
Thanks a lot
win server2008 r2 64位 python3.5.2 set up tensorflow1.12.0
run import tensorflow as tf in cmd
python stop to work
Using TensorFlow backend.
ERROR:root:Internal Python error in the inspect module.
Below is the traceback from this internal error.
ERROR:root:Internal Python error in the inspect module.
Below is the traceback from this internal error.
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
from keras.datasets import cifar100
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras_init_.py", line 3, in
from . import utils
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras\utils_init_.py", line 6, in
from . import conv_utils
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras\utils\conv_utils.py", line 9, in
from .. import backend as K
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras\backend_init_.py", line 1, in
from .load_backend import epsilon
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras\backend\load_backend.py", line 90, in
from .tensorflow_backend import *
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras\backend\tensorflow_backend.py", line 6, in
from tensorflow.python.eager import context
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\eager\context.py", line 29, in
from tensorflow.core.protobuf import config_pb2
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init_.py", line 50, in getattr
module = self.load()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init.py", line 44, in _load
module = importlib.import_module(self.name)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\importlib_init.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core_init.py", line 42, in
from . api.v2 import audio
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core_api\v2\audio_init.py", line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\ops\gen_audio_ops.py", line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init.py", line 50, in getattr
module = self.load()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init.py", line 44, in _load
module = importlib.import_module(self.name)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\importlib_init.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python_init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\interactiveshell.py", line 2040, in showtraceback
stb = value.render_traceback()
AttributeError: 'ImportError' object has no attribute 'render_traceback'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\ultratb.py", line 1101, in get_records
return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\ultratb.py", line 319, in wrapped
return f(*args, **kwargs)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\ultratb.py", line 353, in fixed_getinnerframes
records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\inspect.py", line 1483, in getinnerframes
frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\inspect.py", line 1441, in getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\inspect.py", line 696, in getsourcefile
if getattr(getmodule(object, filename), 'loader', None) is not None:
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\inspect.py", line 733, in getmodule
if ismodule(module) and hasattr(module, 'file'):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init.py", line 50, in getattr
module = self.load()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init.py", line 44, in _load
module = importlib.import_module(self.name)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 941, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in call_with_frames_removed
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core_init.py", line 42, in
from . api.v2 import audio
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core_api\v2\audio_init.py", line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\ops\gen_audio_ops.py", line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init.py", line 50, in getattr
module = self.load()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init.py", line 44, in _load
module = importlib.import_module(self.name)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\importlib_init.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python_init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
from keras.datasets import cifar100
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras_init_.py", line 3, in
from . import utils
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras\utils_init_.py", line 6, in
from . import conv_utils
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras\utils\conv_utils.py", line 9, in
from .. import backend as K
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras\backend_init_.py", line 1, in
from .load_backend import epsilon
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras\backend\load_backend.py", line 90, in
from .tensorflow_backend import *
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras\backend\tensorflow_backend.py", line 6, in
from tensorflow.python.eager import context
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\eager\context.py", line 29, in
from tensorflow.core.protobuf import config_pb2
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init_.py", line 50, in getattr
module = self.load()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init.py", line 44, in _load
module = importlib.import_module(self.name)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\importlib_init.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core_init.py", line 42, in
from . api.v2 import audio
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core_api\v2\audio_init.py", line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\ops\gen_audio_ops.py", line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init.py", line 50, in getattr
module = self.load()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init.py", line 44, in _load
module = importlib.import_module(self.name)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\importlib_init.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python_init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\interactiveshell.py", line 2040, in showtraceback
stb = value.render_traceback()
AttributeError: 'ImportError' object has no attribute 'render_traceback'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
from keras.datasets import cifar100
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras_init_.py", line 3, in
from . import utils
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras\utils_init_.py", line 6, in
from . import conv_utils
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras\utils\conv_utils.py", line 9, in
from .. import backend as K
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras\backend_init_.py", line 1, in
from .load_backend import epsilon
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras\backend\load_backend.py", line 90, in
from .tensorflow_backend import *
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras\backend\tensorflow_backend.py", line 6, in
from tensorflow.python.eager import context
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\eager\context.py", line 29, in
from tensorflow.core.protobuf import config_pb2
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init_.py", line 50, in getattr
module = self.load()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init.py", line 44, in _load
module = importlib.import_module(self.name)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\importlib_init.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core_init.py", line 42, in
from . api.v2 import audio
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core_api\v2\audio_init.py", line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\ops\gen_audio_ops.py", line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init.py", line 50, in getattr
module = self.load()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init.py", line 44, in _load
module = importlib.import_module(self.name)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\importlib_init.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python_init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\interactiveshell.py", line 2040, in showtraceback
stb = value.render_traceback()
AttributeError: 'ImportError' object has no attribute 'render_traceback'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\interactiveshell.py", line 3249, in run_ast_nodes
if (await self.run_code(code, result, async_=asy)):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\interactiveshell.py", line 3343, in run_code
self.showtraceback(running_compiled_code=True)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\interactiveshell.py", line 2043, in showtraceback
value, tb, tb_offset=tb_offset)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\ultratb.py", line 1385, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\ultratb.py", line 1288, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\ultratb.py", line 1150, in structured_traceback
formatted_exceptions += self.prepare_chained_exception_message(evalue.cause)
TypeError: must be str, not list
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\interactiveshell.py", line 2040, in showtraceback
stb = value.render_traceback()
AttributeError: 'TypeError' object has no attribute 'render_traceback'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\ultratb.py", line 1101, in get_records
return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\ultratb.py", line 319, in wrapped
return f(*args, **kwargs)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\ultratb.py", line 353, in fixed_getinnerframes
records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\inspect.py", line 1483, in getinnerframes
frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\inspect.py", line 1441, in getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\inspect.py", line 696, in getsourcefile
if getattr(getmodule(object, filename), 'loader', None) is not None:
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\inspect.py", line 733, in getmodule
if ismodule(module) and hasattr(module, 'file'):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init.py", line 50, in getattr
module = self.load()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init.py", line 44, in _load
module = importlib.import_module(self.name)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 941, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in call_with_frames_removed
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core_init.py", line 42, in
from . api.v2 import audio
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core_api\v2\audio_init.py", line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\ops\gen_audio_ops.py", line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init.py", line 50, in getattr
module = self.load()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init.py", line 44, in _load
module = importlib.import_module(self.name)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\importlib_init.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python_init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
from keras.datasets import cifar100
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras_init_.py", line 3, in
from . import utils
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras\utils_init_.py", line 6, in
from . import conv_utils
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras\utils\conv_utils.py", line 9, in
from .. import backend as K
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras\backend_init_.py", line 1, in
from .load_backend import epsilon
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras\backend\load_backend.py", line 90, in
from .tensorflow_backend import *
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\keras\backend\tensorflow_backend.py", line 6, in
from tensorflow.python.eager import context
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\eager\context.py", line 29, in
from tensorflow.core.protobuf import config_pb2
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init_.py", line 50, in getattr
module = self.load()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init.py", line 44, in _load
module = importlib.import_module(self.name)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\importlib_init.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core_init.py", line 42, in
from . api.v2 import audio
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core_api\v2\audio_init.py", line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\ops\gen_audio_ops.py", line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init.py", line 50, in getattr
module = self.load()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init.py", line 44, in _load
module = importlib.import_module(self.name)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\importlib_init.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python_init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\interactiveshell.py", line 2040, in showtraceback
stb = value.render_traceback()
AttributeError: 'ImportError' object has no attribute 'render_traceback'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\interactiveshell.py", line 3249, in run_ast_nodes
if (await self.run_code(code, result, async_=asy)):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\interactiveshell.py", line 3343, in run_code
self.showtraceback(running_compiled_code=True)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\interactiveshell.py", line 2043, in showtraceback
value, tb, tb_offset=tb_offset)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\ultratb.py", line 1385, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\ultratb.py", line 1288, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\ultratb.py", line 1150, in structured_traceback
formatted_exceptions += self.prepare_chained_exception_message(evalue.cause)
TypeError: must be str, not list
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\interactiveshell.py", line 2040, in showtraceback
stb = value.render_traceback()
AttributeError: 'TypeError' object has no attribute 'render_traceback'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
ImportError Traceback (most recent call last)
c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py in
57
---> 58 from tensorflow.python.pywrap_tensorflow_internal import *
59 from tensorflow.python.pywrap_tensorflow_internal import version
c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py in
27 return _mod
---> 28 _pywrap_tensorflow_internal = swig_import_helper()
29 del swig_import_helper
c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py in swig_import_helper()
23 try:
---> 24 _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
25 finally:
c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py in load_module(name, file, filename, details)
242 else:
--> 243 return load_dynamic(name, filename, file)
244 elif type_ == PKG_DIRECTORY:
c:\users\lenovo\appdata\local\programs\python\python36\lib\imp.py in load_dynamic(name, path, file)
342 name=name, loader=loader, origin=path)
--> 343 return _load(spec)
344
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
During handling of the above exception, another exception occurred:
AttributeError Traceback (most recent call last)
c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\interactiveshell.py in showtraceback(self, exc_tuple, filename, tb_offset, exception_only, running_compiled_code)
2039 # in the engines. This should return a list of strings.
-> 2040 stb = value.render_traceback()
2041 except Exception:
AttributeError: 'ImportError' object has no attribute 'render_traceback'
During handling of the above exception, another exception occurred:
TypeError Traceback (most recent call last)
c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\interactiveshell.py in run_code(self, code_obj, result, async_)
3341 if result is not None:
3342 result.error_in_exec = sys.exc_info()[1]
-> 3343 self.showtraceback(running_compiled_code=True)
3344 else:
3345 outflag = False
c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\interactiveshell.py in showtraceback(self, exc_tuple, filename, tb_offset, exception_only, running_compiled_code)
2041 except Exception:
2042 stb = self.InteractiveTB.structured_traceback(etype,
-> 2043 value, tb, tb_offset=tb_offset)
2044
2045 self._showtraceback(etype, value, stb)
c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\ultratb.py in structured_traceback(self, etype, value, tb, tb_offset, number_of_lines_of_context)
1383 self.tb = tb
1384 return FormattedTB.structured_traceback(
-> 1385 self, etype, value, tb, tb_offset, number_of_lines_of_context)
1386
1387
c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\ultratb.py in structured_traceback(self, etype, value, tb, tb_offset, number_of_lines_of_context)
1286 # Verbose modes need a full traceback
1287 return VerboseTB.structured_traceback(
-> 1288 self, etype, value, tb, tb_offset, number_of_lines_of_context
1289 )
1290 elif mode == 'Minimal':
c:\users\lenovo\appdata\local\programs\python\python36\lib\site-packages\IPython\core\ultratb.py in structured_traceback(self, etype, evalue, etb, tb_offset, number_of_lines_of_context)
1148 exception = self.get_parts_of_chained_exception(evalue)
1149 if exception:
-> 1150 formatted_exceptions += self.prepare_chained_exception_message(evalue.cause)
1151 etype, evalue, etb = exception
1152 else:
TypeError: must be str, not list
hey there,
i was trying to clear the error.
could you please help me out.
I don't have tensorflow_self_check.py file
I dont have nvidia graphic card. so does that mean cuda will not support on my lappy?
Just a note to anybody who is still using this script: since TF 1.4, the checks have been integrated into TensorFlow when you
import tensorflow
, and this script is no longer maintained. In particular, TF 1.5 and 1.6 require a newer version of CUDA (9.0) and cuDNN (7.0), and you may need to upgrade your CUDA/cuDNN installation to get these.