Error root internal python error in the inspect module

ERROR:root:Internal Python error in the inspect module. Below is the traceback from this internal error. Traceback (most recent call last): File "d:pytlibsite-packagesIPythoncoreinteract...

@tensorflowbutler

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
What is the top-level directory of the model you are using
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
TensorFlow version
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce

ngoc2502 reacted with thumbs up emoji
eyildiz-ugoe, ceocampo, tesla334, avasbr, lynever, patilmanjula60, Mohammadnofal, Hawzen, niranjanbsubramanian, MasonWang025, and 18 more reacted with thumbs down emoji

@eyildiz-ugoe

I have the same problem. Stop telling people to fill out the forms and suggest a solution already.

skyap, meryemJanatiIdrissi, HussamCheema, Kevinpgalligan, tesla334, avasbr, RaVeN1987, tonyhsu1968, aaselivanov, akshatjain26, and 36 more reacted with thumbs up emoji
Ab07hay and RitaAhmadi reacted with heart emoji

@Ihtesham1

I was facing this error while using Keras. So I just upgrade Keras library and restart the kernel on Jupiter notebook, and it worked for me.

@bisandud

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:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:UsersDESMONDAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:UsersDESMONDAnaconda3libimp.py», line 342, 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:UsersDESMONDAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File «», line 2, in
from keras.models import Sequeantial
File «C:UsersDESMONDAnaconda3libsite-packageskeras_init_.py», line 3, in
from . import utils
File «C:UsersDESMONDAnaconda3libsite-packageskerasutils_init_.py», line 6, in
from . import conv_utils
File «C:UsersDESMONDAnaconda3libsite-packageskerasutilsconv_utils.py», line 9, in
from .. import backend as K
File «C:UsersDESMONDAnaconda3libsite-packageskerasbackend_init_.py», line 1, in
from .load_backend import epsilon
File «C:UsersDESMONDAnaconda3libsite-packageskerasbackendload_backend.py», line 90, in
from .tensorflow_backend import *
File «C:UsersDESMONDAnaconda3libsite-packageskerasbackendtensorflow_backend.py», line 5, in
import tensorflow as tf
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_init_.py», line 101, in
from tensorflow_core import *
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_core_init_.py», line 40, in
from tensorflow.python.tools import module_util as module_util
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:UsersDESMONDAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepython_init
.py», line 49, in
from tensorflow.python import pywrap_tensorflow
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:UsersDESMONDAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:UsersDESMONDAnaconda3libimp.py», line 342, 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:UsersDESMONDAnaconda3libsite-packagesIPythoncoreinteractiveshell.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:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:UsersDESMONDAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:UsersDESMONDAnaconda3libimp.py», line 342, 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:UsersDESMONDAnaconda3libsite-packagesIPythoncoreultratb.py», line 1101, in get_records
return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
File «C:UsersDESMONDAnaconda3libsite-packagesIPythoncoreultratb.py», line 319, in wrapped
return f(*args, **kwargs)
File «C:UsersDESMONDAnaconda3libsite-packagesIPythoncoreultratb.py», line 353, in fixed_getinnerframes
records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
File «C:UsersDESMONDAnaconda3libinspect.py», line 1502, in getinnerframes
frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
File «C:UsersDESMONDAnaconda3libinspect.py», line 1460, in getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File «C:UsersDESMONDAnaconda3libinspect.py», line 696, in getsourcefile
if getattr(getmodule(object, filename), ‘loader‘, None) is not None:
File «C:UsersDESMONDAnaconda3libinspect.py», line 733, in getmodule
if ismodule(module) and hasattr(module, ‘file‘):
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:UsersDESMONDAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File «», line 1006, in _gcd_import
File «», line 983, in _find_and_load
File «», line 953, in _find_and_load_unlocked
File «», line 219, in _call_with_frames_removed
File «», line 1006, in _gcd_import
File «», line 983, in _find_and_load
File «», line 967, in _find_and_load_unlocked
File «», line 677, in _load_unlocked
File «», line 728, in exec_module
File «», line 219, in call_with_frames_removed
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_core_init
.py», line 42, in
from . api.v2 import audio
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_core_apiv2audio_init
.py», line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonopsgen_audio_ops.py», line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:UsersDESMONDAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepython_init
.py», line 49, in
from tensorflow.python import pywrap_tensorflow
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:UsersDESMONDAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:UsersDESMONDAnaconda3libimp.py», line 342, 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:UsersDESMONDAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File «», line 2, in
from keras.models import Sequeantial
File «C:UsersDESMONDAnaconda3libsite-packageskeras_init_.py», line 3, in
from . import utils
File «C:UsersDESMONDAnaconda3libsite-packageskerasutils_init_.py», line 6, in
from . import conv_utils
File «C:UsersDESMONDAnaconda3libsite-packageskerasutilsconv_utils.py», line 9, in
from .. import backend as K
File «C:UsersDESMONDAnaconda3libsite-packageskerasbackend_init_.py», line 1, in
from .load_backend import epsilon
File «C:UsersDESMONDAnaconda3libsite-packageskerasbackendload_backend.py», line 90, in
from .tensorflow_backend import *
File «C:UsersDESMONDAnaconda3libsite-packageskerasbackendtensorflow_backend.py», line 5, in
import tensorflow as tf
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_init_.py», line 101, in
from tensorflow_core import *
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_core_init_.py», line 40, in
from tensorflow.python.tools import module_util as module_util
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:UsersDESMONDAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepython_init
.py», line 49, in
from tensorflow.python import pywrap_tensorflow
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:UsersDESMONDAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:UsersDESMONDAnaconda3libimp.py», line 342, 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:UsersDESMONDAnaconda3libsite-packagesIPythoncoreinteractiveshell.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:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:UsersDESMONDAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:UsersDESMONDAnaconda3libimp.py», line 342, 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:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:UsersDESMONDAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:UsersDESMONDAnaconda3libimp.py», line 342, 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:UsersDESMONDAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File «», line 2, in
from keras.models import Sequeantial
File «C:UsersDESMONDAnaconda3libsite-packageskeras_init_.py», line 3, in
from . import utils
File «C:UsersDESMONDAnaconda3libsite-packageskerasutils_init_.py», line 6, in
from . import conv_utils
File «C:UsersDESMONDAnaconda3libsite-packageskerasutilsconv_utils.py», line 9, in
from .. import backend as K
File «C:UsersDESMONDAnaconda3libsite-packageskerasbackend_init_.py», line 1, in
from .load_backend import epsilon
File «C:UsersDESMONDAnaconda3libsite-packageskerasbackendload_backend.py», line 90, in
from .tensorflow_backend import *
File «C:UsersDESMONDAnaconda3libsite-packageskerasbackendtensorflow_backend.py», line 5, in
import tensorflow as tf
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_init_.py», line 101, in
from tensorflow_core import *
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_core_init_.py», line 40, in
from tensorflow.python.tools import module_util as module_util
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:UsersDESMONDAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepython_init
.py», line 49, in
from tensorflow.python import pywrap_tensorflow
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:UsersDESMONDAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:UsersDESMONDAnaconda3libimp.py», line 342, 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:UsersDESMONDAnaconda3libsite-packagesIPythoncoreinteractiveshell.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:UsersDESMONDAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 3249, in run_ast_nodes
if (await self.run_code(code, result, async_=asy)):
File «C:UsersDESMONDAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 3343, in run_code
self.showtraceback(running_compiled_code=True)
File «C:UsersDESMONDAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 2043, in showtraceback
value, tb, tb_offset=tb_offset)
File «C:UsersDESMONDAnaconda3libsite-packagesIPythoncoreultratb.py», line 1385, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context)
File «C:UsersDESMONDAnaconda3libsite-packagesIPythoncoreultratb.py», line 1288, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context
File «C:UsersDESMONDAnaconda3libsite-packagesIPythoncoreultratb.py», line 1150, in structured_traceback
formatted_exceptions += self.prepare_chained_exception_message(evalue.cause)
TypeError: can only concatenate str (not «list») to str

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «C:UsersDESMONDAnaconda3libsite-packagesIPythoncoreinteractiveshell.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:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:UsersDESMONDAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:UsersDESMONDAnaconda3libimp.py», line 342, 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:UsersDESMONDAnaconda3libsite-packagesIPythoncoreultratb.py», line 1101, in get_records
return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
File «C:UsersDESMONDAnaconda3libsite-packagesIPythoncoreultratb.py», line 319, in wrapped
return f(*args, **kwargs)
File «C:UsersDESMONDAnaconda3libsite-packagesIPythoncoreultratb.py», line 353, in fixed_getinnerframes
records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
File «C:UsersDESMONDAnaconda3libinspect.py», line 1502, in getinnerframes
frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
File «C:UsersDESMONDAnaconda3libinspect.py», line 1460, in getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File «C:UsersDESMONDAnaconda3libinspect.py», line 696, in getsourcefile
if getattr(getmodule(object, filename), ‘loader‘, None) is not None:
File «C:UsersDESMONDAnaconda3libinspect.py», line 733, in getmodule
if ismodule(module) and hasattr(module, ‘file‘):
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:UsersDESMONDAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File «», line 1006, in _gcd_import
File «», line 983, in _find_and_load
File «», line 953, in _find_and_load_unlocked
File «», line 219, in _call_with_frames_removed
File «», line 1006, in _gcd_import
File «», line 983, in _find_and_load
File «», line 967, in _find_and_load_unlocked
File «», line 677, in _load_unlocked
File «», line 728, in exec_module
File «», line 219, in call_with_frames_removed
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_core_init
.py», line 42, in
from . api.v2 import audio
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_core_apiv2audio_init
.py», line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonopsgen_audio_ops.py», line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:UsersDESMONDAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepython_init
.py», line 49, in
from tensorflow.python import pywrap_tensorflow
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:UsersDESMONDAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:UsersDESMONDAnaconda3libimp.py», line 342, 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:UsersDESMONDAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File «», line 2, in
from keras.models import Sequeantial
File «C:UsersDESMONDAnaconda3libsite-packageskeras_init_.py», line 3, in
from . import utils
File «C:UsersDESMONDAnaconda3libsite-packageskerasutils_init_.py», line 6, in
from . import conv_utils
File «C:UsersDESMONDAnaconda3libsite-packageskerasutilsconv_utils.py», line 9, in
from .. import backend as K
File «C:UsersDESMONDAnaconda3libsite-packageskerasbackend_init_.py», line 1, in
from .load_backend import epsilon
File «C:UsersDESMONDAnaconda3libsite-packageskerasbackendload_backend.py», line 90, in
from .tensorflow_backend import *
File «C:UsersDESMONDAnaconda3libsite-packageskerasbackendtensorflow_backend.py», line 5, in
import tensorflow as tf
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_init_.py», line 101, in
from tensorflow_core import *
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_core_init_.py», line 40, in
from tensorflow.python.tools import module_util as module_util
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:UsersDESMONDAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepython_init
.py», line 49, in
from tensorflow.python import pywrap_tensorflow
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:UsersDESMONDAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:UsersDESMONDAnaconda3libimp.py», line 342, 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:UsersDESMONDAnaconda3libsite-packagesIPythoncoreinteractiveshell.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:UsersDESMONDAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 3249, in run_ast_nodes
if (await self.run_code(code, result, async_=asy)):
File «C:UsersDESMONDAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 3343, in run_code
self.showtraceback(running_compiled_code=True)
File «C:UsersDESMONDAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 2043, in showtraceback
value, tb, tb_offset=tb_offset)
File «C:UsersDESMONDAnaconda3libsite-packagesIPythoncoreultratb.py», line 1385, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context)
File «C:UsersDESMONDAnaconda3libsite-packagesIPythoncoreultratb.py», line 1288, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context
File «C:UsersDESMONDAnaconda3libsite-packagesIPythoncoreultratb.py», line 1150, in structured_traceback
formatted_exceptions += self.prepare_chained_exception_message(evalue.cause)
TypeError: can only concatenate str (not «list») to str

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «C:UsersDESMONDAnaconda3libsite-packagesIPythoncoreinteractiveshell.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:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersDESMONDAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:UsersDESMONDAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:UsersDESMONDAnaconda3libimp.py», line 342, 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)
~Anaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py in
57
—> 58 from tensorflow.python.pywrap_tensorflow_internal import *
59 from tensorflow.python.pywrap_tensorflow_internal import version

~Anaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py in
27 return _mod
—> 28 _pywrap_tensorflow_internal = swig_import_helper()
29 del swig_import_helper

~Anaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py in swig_import_helper()
23 try:
—> 24 _mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
25 finally:

~Anaconda3libimp.py in load_module(name, file, filename, details)
241 else:
—> 242 return load_dynamic(name, filename, file)
243 elif type_ == PKG_DIRECTORY:

~Anaconda3libimp.py in load_dynamic(name, path, file)
341 name=name, loader=loader, origin=path)
—> 342 return _load(spec)
343

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)
~Anaconda3libsite-packagesIPythoncoreinteractiveshell.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)
~Anaconda3libsite-packagesIPythoncoreinteractiveshell.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

~Anaconda3libsite-packagesIPythoncoreinteractiveshell.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)

~Anaconda3libsite-packagesIPythoncoreultratb.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

~Anaconda3libsite-packagesIPythoncoreultratb.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’:

~Anaconda3libsite-packagesIPythoncoreultratb.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: can only concatenate str (not «list») to str

@MeganDudley

I’m getting the following error when this one line of code is run — does anyone have any solutions that worked for them? I’ve already tried restarting the kernel…

Show graph

Image(graph.create_png())

ERROR:root:Internal Python error in the inspect module.
Below is the traceback from this internal error.

Traceback (most recent call last):
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 3296, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File «», line 2, in
Image(graph.create_png())
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagespydotplusgraphviz.py», line 1797, in
lambda f=frmt, prog=self.prog: self.create(format=f, prog=prog)
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagespydotplusgraphviz.py», line 1960, in create
‘GraphViz’s executables not found’)
pydotplus.graphviz.InvocationException: GraphViz’s executables not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 2033, in showtraceback
stb = value.render_traceback()
AttributeError: ‘InvocationException’ object has no attribute ‘render_traceback

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:UsersAC46164AppDataLocalContinuumanaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:UsersAC46164AppDataLocalContinuumanaconda3libimp.py», line 342, 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:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagesIPythoncoreultratb.py», line 1095, in get_records
return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagesIPythoncoreultratb.py», line 313, in wrapped
return f(*args, **kwargs)
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagesIPythoncoreultratb.py», line 347, in fixed_getinnerframes
records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
File «C:UsersAC46164AppDataLocalContinuumanaconda3libinspect.py», line 1502, in getinnerframes
frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
File «C:UsersAC46164AppDataLocalContinuumanaconda3libinspect.py», line 1460, in getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File «C:UsersAC46164AppDataLocalContinuumanaconda3libinspect.py», line 696, in getsourcefile
if getattr(getmodule(object, filename), ‘loader‘, None) is not None:
File «C:UsersAC46164AppDataLocalContinuumanaconda3libinspect.py», line 733, in getmodule
if ismodule(module) and hasattr(module, ‘file‘):
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:UsersAC46164AppDataLocalContinuumanaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File «», line 1006, in _gcd_import
File «», line 983, in _find_and_load
File «», line 953, in _find_and_load_unlocked
File «», line 219, in _call_with_frames_removed
File «», line 1006, in _gcd_import
File «», line 983, in _find_and_load
File «», line 967, in _find_and_load_unlocked
File «», line 677, in _load_unlocked
File «», line 728, in exec_module
File «», line 219, in call_with_frames_removed
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagestensorflow_core_init
.py», line 42, in
from . api.v2 import audio
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagestensorflow_core_apiv2audio_init
.py», line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagestensorflow_corepythonopsgen_audio_ops.py», line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:UsersAC46164AppDataLocalContinuumanaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagestensorflow_corepython_init
.py», line 49, in
from tensorflow.python import pywrap_tensorflow
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 3296, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File «», line 2, in
Image(graph.create_png())
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagespydotplusgraphviz.py», line 1797, in
lambda f=frmt, prog=self.prog: self.create(format=f, prog=prog)
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagespydotplusgraphviz.py», line 1960, in create
‘GraphViz’s executables not found’)
pydotplus.graphviz.InvocationException: GraphViz’s executables not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 2033, in showtraceback
stb = value.render_traceback()
AttributeError: ‘InvocationException’ object has no attribute ‘render_traceback

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersAC46164AppDataLocalContinuumanaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:UsersAC46164AppDataLocalContinuumanaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:UsersAC46164AppDataLocalContinuumanaconda3libimp.py», line 342, 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.

@FSyed2

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:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:Program FilesPython37libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:Program FilesPython37libimp.py», line 342, 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:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreinteractiveshell.py», line 3319, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File «», line 1, in
from keras.models import Sequential
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskeras_init_.py», line 3, in
from . import utils
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskerasutils_init_.py», line 6, in
from . import conv_utils
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskerasutilsconv_utils.py», line 9, in
from .. import backend as K
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskerasbackend_init_.py», line 1, in
from .load_backend import epsilon
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskerasbackendload_backend.py», line 89, in
from .tensorflow_backend import *
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskerasbackendtensorflow_backend.py», line 6, in
from tensorflow.python.framework import ops as tf_ops
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonframeworkops.py», line 32, in
from tensorflow.core.framework import attr_value_pb2
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init_.py», line 50, in getattr
module = self.load()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:Program FilesPython37libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_core_init
.py», line 42, in
from . api.v2 import audio
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_core_apiv2audio_init
.py», line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonopsgen_audio_ops.py», line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:Program FilesPython37libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepython_init
.py», line 49, in
from tensorflow.python import pywrap_tensorflow
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:Program FilesPython37libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:Program FilesPython37libimp.py», line 342, 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:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreinteractiveshell.py», line 2034, 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:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:Program FilesPython37libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:Program FilesPython37libimp.py», line 342, 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:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreultratb.py», line 1151, in get_records
return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreultratb.py», line 319, in wrapped
return f(*args, **kwargs)
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreultratb.py», line 353, in fixed_getinnerframes
records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
File «C:Program FilesPython37libinspect.py», line 1502, in getinnerframes
frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
File «C:Program FilesPython37libinspect.py», line 1460, in getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File «C:Program FilesPython37libinspect.py», line 696, in getsourcefile
if getattr(getmodule(object, filename), ‘loader‘, None) is not None:
File «C:Program FilesPython37libinspect.py», line 733, in getmodule
if ismodule(module) and hasattr(module, ‘file‘):
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:Program FilesPython37libimportlib_init
.py», line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File «», line 1006, in _gcd_import
File «», line 983, in _find_and_load
File «», line 953, in _find_and_load_unlocked
File «», line 219, in _call_with_frames_removed
File «», line 1006, in _gcd_import
File «», line 983, in _find_and_load
File «», line 967, in _find_and_load_unlocked
File «», line 677, in _load_unlocked
File «», line 728, in exec_module
File «», line 219, in call_with_frames_removed
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_core_init
.py», line 42, in
from . api.v2 import audio
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_core_apiv2audio_init
.py», line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonopsgen_audio_ops.py», line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:Program FilesPython37libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepython_init
.py», line 49, in
from tensorflow.python import pywrap_tensorflow
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:Program FilesPython37libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:Program FilesPython37libimp.py», line 342, 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:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreinteractiveshell.py», line 3319, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File «», line 1, in
from keras.models import Sequential
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskeras_init_.py», line 3, in
from . import utils
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskerasutils_init_.py», line 6, in
from . import conv_utils
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskerasutilsconv_utils.py», line 9, in
from .. import backend as K
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskerasbackend_init_.py», line 1, in
from .load_backend import epsilon
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskerasbackendload_backend.py», line 89, in
from .tensorflow_backend import *
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskerasbackendtensorflow_backend.py», line 6, in
from tensorflow.python.framework import ops as tf_ops
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonframeworkops.py», line 32, in
from tensorflow.core.framework import attr_value_pb2
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init_.py», line 50, in getattr
module = self.load()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:Program FilesPython37libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_core_init
.py», line 42, in
from . api.v2 import audio
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_core_apiv2audio_init
.py», line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonopsgen_audio_ops.py», line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:Program FilesPython37libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepython_init
.py», line 49, in
from tensorflow.python import pywrap_tensorflow
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:Program FilesPython37libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:Program FilesPython37libimp.py», line 342, 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:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreinteractiveshell.py», line 2034, 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:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:Program FilesPython37libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:Program FilesPython37libimp.py», line 342, 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:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:Program FilesPython37libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:Program FilesPython37libimp.py», line 342, 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:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreinteractiveshell.py», line 3319, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File «», line 1, in
from keras.models import Sequential
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskeras_init_.py», line 3, in
from . import utils
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskerasutils_init_.py», line 6, in
from . import conv_utils
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskerasutilsconv_utils.py», line 9, in
from .. import backend as K
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskerasbackend_init_.py», line 1, in
from .load_backend import epsilon
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskerasbackendload_backend.py», line 89, in
from .tensorflow_backend import *
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskerasbackendtensorflow_backend.py», line 6, in
from tensorflow.python.framework import ops as tf_ops
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonframeworkops.py», line 32, in
from tensorflow.core.framework import attr_value_pb2
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init_.py», line 50, in getattr
module = self.load()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:Program FilesPython37libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_core_init
.py», line 42, in
from . api.v2 import audio
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_core_apiv2audio_init
.py», line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonopsgen_audio_ops.py», line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:Program FilesPython37libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepython_init
.py», line 49, in
from tensorflow.python import pywrap_tensorflow
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:Program FilesPython37libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:Program FilesPython37libimp.py», line 342, 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:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreinteractiveshell.py», line 2034, 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:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreinteractiveshell.py», line 3242, in run_ast_nodes
if (await self.run_code(code, result, async_=asy)):
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreinteractiveshell.py», line 3336, in run_code
self.showtraceback(running_compiled_code=True)
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreinteractiveshell.py», line 2037, in showtraceback
value, tb, tb_offset=tb_offset)
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreultratb.py», line 1418, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context)
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreultratb.py», line 1318, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreultratb.py», line 1186, in structured_traceback
formatted_exceptions += self.prepare_chained_exception_message(evalue.cause)
TypeError: can only concatenate str (not «list») to str

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreinteractiveshell.py», line 2034, 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:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:Program FilesPython37libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:Program FilesPython37libimp.py», line 342, 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:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreultratb.py», line 1151, in get_records
return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreultratb.py», line 319, in wrapped
return f(*args, **kwargs)
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreultratb.py», line 353, in fixed_getinnerframes
records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
File «C:Program FilesPython37libinspect.py», line 1502, in getinnerframes
frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
File «C:Program FilesPython37libinspect.py», line 1460, in getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File «C:Program FilesPython37libinspect.py», line 696, in getsourcefile
if getattr(getmodule(object, filename), ‘loader‘, None) is not None:
File «C:Program FilesPython37libinspect.py», line 733, in getmodule
if ismodule(module) and hasattr(module, ‘file‘):
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:Program FilesPython37libimportlib_init
.py», line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File «», line 1006, in _gcd_import
File «», line 983, in _find_and_load
File «», line 953, in _find_and_load_unlocked
File «», line 219, in _call_with_frames_removed
File «», line 1006, in _gcd_import
File «», line 983, in _find_and_load
File «», line 967, in _find_and_load_unlocked
File «», line 677, in _load_unlocked
File «», line 728, in exec_module
File «», line 219, in call_with_frames_removed
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_core_init
.py», line 42, in
from . api.v2 import audio
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_core_apiv2audio_init
.py», line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonopsgen_audio_ops.py», line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:Program FilesPython37libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepython_init
.py», line 49, in
from tensorflow.python import pywrap_tensorflow
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:Program FilesPython37libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:Program FilesPython37libimp.py», line 342, 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:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreinteractiveshell.py», line 3319, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File «», line 1, in
from keras.models import Sequential
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskeras_init_.py», line 3, in
from . import utils
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskerasutils_init_.py», line 6, in
from . import conv_utils
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskerasutilsconv_utils.py», line 9, in
from .. import backend as K
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskerasbackend_init_.py», line 1, in
from .load_backend import epsilon
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskerasbackendload_backend.py», line 89, in
from .tensorflow_backend import *
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packageskerasbackendtensorflow_backend.py», line 6, in
from tensorflow.python.framework import ops as tf_ops
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonframeworkops.py», line 32, in
from tensorflow.core.framework import attr_value_pb2
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init_.py», line 50, in getattr
module = self.load()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:Program FilesPython37libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_core_init
.py», line 42, in
from . api.v2 import audio
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_core_apiv2audio_init
.py», line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonopsgen_audio_ops.py», line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:Program FilesPython37libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepython_init
.py», line 49, in
from tensorflow.python import pywrap_tensorflow
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:Program FilesPython37libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:Program FilesPython37libimp.py», line 342, 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:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreinteractiveshell.py», line 2034, 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:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreinteractiveshell.py», line 3242, in run_ast_nodes
if (await self.run_code(code, result, async_=asy)):
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreinteractiveshell.py», line 3336, in run_code
self.showtraceback(running_compiled_code=True)
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreinteractiveshell.py», line 2037, in showtraceback
value, tb, tb_offset=tb_offset)
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreultratb.py», line 1418, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context)
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreultratb.py», line 1318, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreultratb.py», line 1186, in structured_traceback
formatted_exceptions += self.prepare_chained_exception_message(evalue.cause)
TypeError: can only concatenate str (not «list») to str

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreinteractiveshell.py», line 2034, 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:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:Program FilesPython37libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:Program FilesPython37libimp.py», line 342, 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:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow.py in
57
—> 58 from tensorflow.python.pywrap_tensorflow_internal import *
59 from tensorflow.python.pywrap_tensorflow_internal import version

c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py in
27 return _mod
—> 28 _pywrap_tensorflow_internal = swig_import_helper()
29 del swig_import_helper

c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py in swig_import_helper()
23 try:
—> 24 _mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
25 finally:

C:Program FilesPython37libimp.py in load_module(name, file, filename, details)
241 else:
—> 242 return load_dynamic(name, filename, file)
243 elif type_ == PKG_DIRECTORY:

C:Program FilesPython37libimp.py in load_dynamic(name, path, file)
341 name=name, loader=loader, origin=path)
—> 342 return _load(spec)
343

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:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreinteractiveshell.py in showtraceback(self, exc_tuple, filename, tb_offset, exception_only, running_compiled_code)
2033 # in the engines. This should return a list of strings.
-> 2034 stb = value.render_traceback()
2035 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:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreinteractiveshell.py in run_code(self, code_obj, result, async_)
3334 if result is not None:
3335 result.error_in_exec = sys.exc_info()[1]
-> 3336 self.showtraceback(running_compiled_code=True)
3337 else:
3338 outflag = False

c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreinteractiveshell.py in showtraceback(self, exc_tuple, filename, tb_offset, exception_only, running_compiled_code)
2035 except Exception:
2036 stb = self.InteractiveTB.structured_traceback(etype,
-> 2037 value, tb, tb_offset=tb_offset)
2038
2039 self._showtraceback(etype, value, stb)

c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreultratb.py in structured_traceback(self, etype, value, tb, tb_offset, number_of_lines_of_context)
1416 self.tb = tb
1417 return FormattedTB.structured_traceback(
-> 1418 self, etype, value, tb, tb_offset, number_of_lines_of_context)
1419
1420

c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreultratb.py in structured_traceback(self, etype, value, tb, tb_offset, number_of_lines_of_context)
1316 # Verbose modes need a full traceback
1317 return VerboseTB.structured_traceback(
-> 1318 self, etype, value, tb, tb_offset, number_of_lines_of_context
1319 )
1320 elif mode == ‘Minimal’:

c:usersf174s322pycharmprojectsnn_trial runtrial_1_jan_19_2020venvlibsite-packagesIPythoncoreultratb.py in structured_traceback(self, etype, evalue, etb, tb_offset, number_of_lines_of_context)
1184 exception = self.get_parts_of_chained_exception(evalue)
1185 if exception:
-> 1186 formatted_exceptions += self.prepare_chained_exception_message(evalue.cause)
1187 etype, evalue, etb = exception
1188 else:

TypeError: can only concatenate str (not «list») to str

@FSyed2

upgrade Keras library and restart the kern

how did u upgrade the Keras? just by uninstalling followed by reinstallation?
I’m currently having the same issue, I have tried all possible ways to reinstall Keras as well as the TensorFlow

@pooji0401

Created new virtual environment and used the following command :
pip install tensorflow==2.0.0
pip install -U tensorflow-gpu keras

This should solve the issue!

@sadewale1

I experienced the same issue, but I figured out how to resolve it
(1.) I uninstalled tensorflow, using the command below in anaconda command prompt
pip uninstall tensorflow
(2.) I installed tensorflow version 2.0.0, using the syntax below
pip install tensorflow==2.0.0

@sadewale1

For those having trouble with keras, you can try these actions
(1.) You can uninstall keras, using the syntax below in anaconda command prompt
pip uninstall keras
(2.) You can re-install keras version 2.3.1, using the syntax below in anaconda command prompt
pip install keras==2.3.1

@dasarpai

pip install tensorflow==2.0.0

Thank you so much. It worked for me.

@rijaraju

@shengbo-ma

I experienced the same issue, but I figured out how to resolve it
(1.) I uninstalled tensorflow, using the command below in anaconda command prompt
pip uninstall tensorflow
(2.) I installed tensorflow version 2.0.0, using the syntax below
pip install tensorflow==2.0.0

It works for me. Thanks!

@ARKEYTECT

I tried all these, uninstall tensorflow, keras and tensorflow-gpu, and reinstall as sadewale1 instructed, and it still throws this error…

@sadewale1

Hello ARKEYTECT, can you restart your computer and relaunch anaconda navigator? Also, you can uninstall tensorflow, keras and tesnsorflow from anaconda navigator environment. Then follow the steps above.
Please let me know if this information is helpful.

@ARKEYTECT

Hi sadewale1, I restarted my computer and followed your steps, still not working.

@ARKEYTECT

Sadewale1, thanks for your help! I reinstalled tensorflow again, and it worked! But it won’t detect my gpu anymore… Was using my gpu before that….

@seiyasun

It seems the msvcp140_1.dll is missing. Try to download the Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019 for your platform. It should work out fine.

@Ardeti

For those having trouble with keras, you can try these actions
(1.) You can uninstall keras, using the syntax below in anaconda command prompt
pip uninstall keras
(2.) You can re-install keras version 2.3.1, using the syntax below in anaconda command prompt
pip install keras==2.3.1

Thank you so much. It worked for me

@Ardeti

I experienced the same issue, but I figured out how to resolve it
(1.) I uninstalled tensorflow, using the command below in anaconda command prompt
pip uninstall tensorflow
(2.) I installed tensorflow version 2.0.0, using the syntax below
pip install tensorflow==2.0.0

It works for me. Thanks!

Thank you so much. It resolves my issue

@mnavaid

Hello All,

I am having same issue. I did everything suggested above. I have updated Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019, I have installed tensorflow==2.0.0 and also keras == 2.3.1. After each update I have also restarted my laptop. But I am still getting same error :( . I do not have NVIDIA card in my laptop, is this the reason I am still getting the error?
Please suggest.

@sadewale1

Hello mnavaid,

Can you please try the two steps below if you are using anaconda and restart your computer?
step 1. Uninstall tensorflow, using the command below in anaconda command prompt
pip uninstall tensorflow
step 2. Reinstall tensorflow version 2.0.0, using the syntax below
pip install tensorflow==2.0.0
Let me know if this information is helpful.

@mnavaid

sadewale1,
Thanks for reply.
I uninstalled and reinstalled tensorflow==2.0.0 as you have suggested but still getting same error.
I am following following steps to install tensorflow and keras:

  1. Creating a new environment with Anaconda and Python 3.7:
    conda create -n tensorflow python=3.7 anaconda
  2. Activate the environment:
    activate tensorflow
  3. After this installing Theano, TensorFlow and Keras as follows:
    conda install theano
    pip install tensorflow
    pip install keras
    Please let me know if I am missing something here.

@sajad-dot

Hallo Dears
i have also the same Problem and i uninstalled tensorflow and keras and Restart the Computer and installed the suggested versions but i have still this Error
can any one help please it will be to help full cause i wrote my Programm for Biomedical segmentation and i cant run it at the Moment thanks for your Help!!

@mnavaid

pawelverma,

after uninstalling tornado==6.0.4 jupyter notebook is not starting.. :(

@pawelverma

I am removing the answer if it is not working for you, It just worked for me. Sorry for the inconvenience

@mnavaid

pawelverma,

yes, I have installed terminado.

@sajad-dot

pawelverma
thanks for replying sir
i try to do it but it dosent work

@ian-of-yore

I experienced the same issue, but I figured out how to resolve it
(1.) I uninstalled tensorflow, using the command below in anaconda command prompt
pip uninstall tensorflow
(2.) I installed tensorflow version 2.0.0, using the syntax below
pip install tensorflow==2.0.0

Thank You so much!! I spent about an hour before stumbling on your answers.
Helped a lot.

@foadyousef

I have the same problem. Stop telling people to fill out the forms and suggest a solution already.

6 months later and this still exist!

@shivapower1985

I solved this issue by downloading and installing
«Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019». It worked for me.

Pre-requisite: Python + Jupyter notebook + tensorflow installation already done

You get this error when you «import tensorflow»

Follow the below steps:

Step 1: Download «Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019 — community edition»

Step 2: Select «Python Workload» while installing Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019

Step 3: Restart your computer once

Step 4: That’s it now open Jupyter notebook and «import tensorflow» and the error will not occur

@JoginderBairwa

ERROR:root:Internal Python error in the inspect module.
Below is the traceback from this internal error.

Traceback (most recent call last):
File «C:UsersJoginder BairwaAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 3331, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File «», line 1, in
fcc_csv.head()
NameError: name ‘fcc_csv’ is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «C:UsersJoginder BairwaAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 2044, in showtraceback
stb = value.render_traceback()
AttributeError: ‘NameError’ object has no attribute ‘render_traceback

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «C:UsersJoginder BairwaAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersJoginder BairwaAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersJoginder BairwaAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:UsersJoginder BairwaAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:UsersJoginder BairwaAnaconda3libimp.py», line 342, 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:UsersJoginder BairwaAnaconda3libsite-packagesIPythoncoreultratb.py», line 1148, in get_records
return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
File «C:UsersJoginder BairwaAnaconda3libsite-packagesIPythoncoreultratb.py», line 316, in wrapped
return f(*args, **kwargs)
File «C:UsersJoginder BairwaAnaconda3libsite-packagesIPythoncoreultratb.py», line 350, in fixed_getinnerframes
records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
File «C:UsersJoginder BairwaAnaconda3libinspect.py», line 1502, in getinnerframes
frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
File «C:UsersJoginder BairwaAnaconda3libinspect.py», line 1460, in getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File «C:UsersJoginder BairwaAnaconda3libinspect.py», line 696, in getsourcefile
if getattr(getmodule(object, filename), ‘loader‘, None) is not None:
File «C:UsersJoginder BairwaAnaconda3libinspect.py», line 733, in getmodule
if ismodule(module) and hasattr(module, ‘file‘):
File «C:UsersJoginder BairwaAnaconda3libsite-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «C:UsersJoginder BairwaAnaconda3libsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:UsersJoginder BairwaAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File «», line 1006, in _gcd_import
File «», line 983, in _find_and_load
File «», line 953, in _find_and_load_unlocked
File «», line 219, in _call_with_frames_removed
File «», line 1006, in _gcd_import
File «», line 983, in _find_and_load
File «», line 967, in _find_and_load_unlocked
File «», line 677, in _load_unlocked
File «», line 728, in exec_module
File «», line 219, in call_with_frames_removed
File «C:UsersJoginder BairwaAnaconda3libsite-packagestensorflow_core_init
.py», line 42, in
from . api.v2 import audio
File «C:UsersJoginder BairwaAnaconda3libsite-packagestensorflow_core_apiv2audio_init
.py», line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File «C:UsersJoginder BairwaAnaconda3libsite-packagestensorflow_corepythonopsgen_audio_ops.py», line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File «C:UsersJoginder BairwaAnaconda3libsite-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «C:UsersJoginder BairwaAnaconda3libsite-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:UsersJoginder BairwaAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «C:UsersJoginder BairwaAnaconda3libsite-packagestensorflow_corepython_init
.py», line 49, in
from tensorflow.python import pywrap_tensorflow
File «C:UsersJoginder BairwaAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File «C:UsersJoginder BairwaAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 3331, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File «», line 1, in
fcc_csv.head()
NameError: name ‘fcc_csv’ is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «C:UsersJoginder BairwaAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 2044, in showtraceback
stb = value.render_traceback()
AttributeError: ‘NameError’ object has no attribute ‘render_traceback

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «C:UsersJoginder BairwaAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersJoginder BairwaAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersJoginder BairwaAnaconda3libsite-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:UsersJoginder BairwaAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:UsersJoginder BairwaAnaconda3libimp.py», line 342, 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.

@ravikyram

@ravikyram

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

Содержание

  1. ERROR:root:Internal Python error in the inspect module. #11960
  2. Comments
  3. for some common reasons and solutions. Include the entire stack trace above this error message when asking for help.

ERROR:root:Internal Python error in the inspect module. #11960

There is a confusing error when running code in ipython cell. This error occurred only in ipython occasionally (not always, even when running the same code). When I test the same code in python cell, it always works.

Check out the details:
by the way, I’m not quiet sure how to reproduce this error. Like I said, it occurred occasionally.

The text was updated successfully, but these errors were encountered:

Duplicate of #11941 I believe. Let me know if that is not the case.

i have the same problem.how to solve this problem?
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:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:ProgramDataAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:ProgramDataAnaconda3libimp.py», line 342, 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:ProgramDataAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File «», line 3, in
import cvlib as cv
File «C:ProgramDataAnaconda3libsite-packagescvlib_init_.py», line 8, in
from .gender_detection import detect_gender
File «C:ProgramDataAnaconda3libsite-packagescvlibgender_detection.py», line 3, in
from tensorflow.keras.utils import get_file
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init_.py», line 50, in getattr
module = self.load()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:ProgramDataAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_core_init
.py», line 42, in
from . api.v2 import audio
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_core_apiv2audio_init
.py», line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonopsgen_audio_ops.py», line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:ProgramDataAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepython_init
.py», line 49, in
from tensorflow.python import pywrap_tensorflow
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow.py», line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:ProgramDataAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:ProgramDataAnaconda3libimp.py», line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.

Failed to load the native TensorFlow runtime.

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:ProgramDataAnaconda3libsite-packagesIPythoncoreinteractiveshell.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:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:ProgramDataAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:ProgramDataAnaconda3libimp.py», line 342, 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:ProgramDataAnaconda3libsite-packagesIPythoncoreultratb.py», line 1101, in get_records
return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
File «C:ProgramDataAnaconda3libsite-packagesIPythoncoreultratb.py», line 319, in wrapped
return f(*args, **kwargs)
File «C:ProgramDataAnaconda3libsite-packagesIPythoncoreultratb.py», line 353, in fixed_getinnerframes
records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
File «C:ProgramDataAnaconda3libinspect.py», line 1502, in getinnerframes
frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
File «C:ProgramDataAnaconda3libinspect.py», line 1460, in getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File «C:ProgramDataAnaconda3libinspect.py», line 696, in getsourcefile
if getattr(getmodule(object, filename), ‘loader‘, None) is not None:
File «C:ProgramDataAnaconda3libinspect.py», line 733, in getmodule
if ismodule(module) and hasattr(module, ‘file‘):
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:ProgramDataAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File «», line 1006, in _gcd_import
File «», line 983, in _find_and_load
File «», line 953, in _find_and_load_unlocked
File «», line 219, in _call_with_frames_removed
File «», line 1006, in _gcd_import
File «», line 983, in _find_and_load
File «», line 967, in _find_and_load_unlocked
File «», line 677, in _load_unlocked
File «», line 728, in exec_module
File «», line 219, in call_with_frames_removed
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_core_init
.py», line 42, in
from . api.v2 import audio
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_core_apiv2audio_init
.py», line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonopsgen_audio_ops.py», line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:ProgramDataAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepython_init
.py», line 49, in
from tensorflow.python import pywrap_tensorflow
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow.py», line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:ProgramDataAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:ProgramDataAnaconda3libimp.py», line 342, 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:ProgramDataAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File «», line 3, in
import cvlib as cv
File «C:ProgramDataAnaconda3libsite-packagescvlib_init_.py», line 8, in
from .gender_detection import detect_gender
File «C:ProgramDataAnaconda3libsite-packagescvlibgender_detection.py», line 3, in
from tensorflow.keras.utils import get_file
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init_.py», line 50, in getattr
module = self.load()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:ProgramDataAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_core_init
.py», line 42, in
from . api.v2 import audio
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_core_apiv2audio_init
.py», line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonopsgen_audio_ops.py», line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:ProgramDataAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepython_init
.py», line 49, in
from tensorflow.python import pywrap_tensorflow
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow.py», line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:ProgramDataAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:ProgramDataAnaconda3libimp.py», line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.

Failed to load the native TensorFlow runtime.

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:ProgramDataAnaconda3libsite-packagesIPythoncoreinteractiveshell.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:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:ProgramDataAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:ProgramDataAnaconda3libimp.py», line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.

Failed to load the native TensorFlow runtime.

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:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:ProgramDataAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:ProgramDataAnaconda3libimp.py», line 342, 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:ProgramDataAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File «», line 3, in
import cvlib as cv
File «C:ProgramDataAnaconda3libsite-packagescvlib_init_.py», line 8, in
from .gender_detection import detect_gender
File «C:ProgramDataAnaconda3libsite-packagescvlibgender_detection.py», line 3, in
from tensorflow.keras.utils import get_file
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init_.py», line 50, in getattr
module = self.load()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:ProgramDataAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_core_init
.py», line 42, in
from . api.v2 import audio
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_core_apiv2audio_init
.py», line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonopsgen_audio_ops.py», line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:ProgramDataAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepython_init
.py», line 49, in
from tensorflow.python import pywrap_tensorflow
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow.py», line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:ProgramDataAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:ProgramDataAnaconda3libimp.py», line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.

Failed to load the native TensorFlow runtime.

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:ProgramDataAnaconda3libsite-packagesIPythoncoreinteractiveshell.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:ProgramDataAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 3249, in run_ast_nodes
if (await self.run_code(code, result, async_=asy)):
File «C:ProgramDataAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 3343, in run_code
self.showtraceback(running_compiled_code=True)
File «C:ProgramDataAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 2043, in showtraceback
value, tb, tb_offset=tb_offset)
File «C:ProgramDataAnaconda3libsite-packagesIPythoncoreultratb.py», line 1385, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context)
File «C:ProgramDataAnaconda3libsite-packagesIPythoncoreultratb.py», line 1288, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context
File «C:ProgramDataAnaconda3libsite-packagesIPythoncoreultratb.py», line 1150, in structured_traceback
formatted_exceptions += self.prepare_chained_exception_message(evalue.cause)
TypeError: can only concatenate str (not «list») to str

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «C:ProgramDataAnaconda3libsite-packagesIPythoncoreinteractiveshell.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:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:ProgramDataAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:ProgramDataAnaconda3libimp.py», line 342, 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:ProgramDataAnaconda3libsite-packagesIPythoncoreultratb.py», line 1101, in get_records
return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
File «C:ProgramDataAnaconda3libsite-packagesIPythoncoreultratb.py», line 319, in wrapped
return f(*args, **kwargs)
File «C:ProgramDataAnaconda3libsite-packagesIPythoncoreultratb.py», line 353, in fixed_getinnerframes
records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
File «C:ProgramDataAnaconda3libinspect.py», line 1502, in getinnerframes
frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
File «C:ProgramDataAnaconda3libinspect.py», line 1460, in getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File «C:ProgramDataAnaconda3libinspect.py», line 696, in getsourcefile
if getattr(getmodule(object, filename), ‘loader‘, None) is not None:
File «C:ProgramDataAnaconda3libinspect.py», line 733, in getmodule
if ismodule(module) and hasattr(module, ‘file‘):
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:ProgramDataAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File «», line 1006, in _gcd_import
File «», line 983, in _find_and_load
File «», line 953, in _find_and_load_unlocked
File «», line 219, in _call_with_frames_removed
File «», line 1006, in _gcd_import
File «», line 983, in _find_and_load
File «», line 967, in _find_and_load_unlocked
File «», line 677, in _load_unlocked
File «», line 728, in exec_module
File «», line 219, in call_with_frames_removed
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_core_init
.py», line 42, in
from . api.v2 import audio
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_core_apiv2audio_init
.py», line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonopsgen_audio_ops.py», line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:ProgramDataAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepython_init
.py», line 49, in
from tensorflow.python import pywrap_tensorflow
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow.py», line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:ProgramDataAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:ProgramDataAnaconda3libimp.py», line 342, 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:ProgramDataAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File «», line 3, in
import cvlib as cv
File «C:ProgramDataAnaconda3libsite-packagescvlib_init_.py», line 8, in
from .gender_detection import detect_gender
File «C:ProgramDataAnaconda3libsite-packagescvlibgender_detection.py», line 3, in
from tensorflow.keras.utils import get_file
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init_.py», line 50, in getattr
module = self.load()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:ProgramDataAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_core_init
.py», line 42, in
from . api.v2 import audio
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_core_apiv2audio_init
.py», line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonopsgen_audio_ops.py», line 9, in
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init
.py», line 50, in getattr
module = self.load()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_init
.py», line 44, in _load
module = importlib.import_module(self.name)
File «C:ProgramDataAnaconda3libimportlib_init
.py», line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepython_init
.py», line 49, in
from tensorflow.python import pywrap_tensorflow
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow.py», line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:ProgramDataAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:ProgramDataAnaconda3libimp.py», line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.

Failed to load the native TensorFlow runtime.

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:ProgramDataAnaconda3libsite-packagesIPythoncoreinteractiveshell.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:ProgramDataAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 3249, in run_ast_nodes
if (await self.run_code(code, result, async_=asy)):
File «C:ProgramDataAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 3343, in run_code
self.showtraceback(running_compiled_code=True)
File «C:ProgramDataAnaconda3libsite-packagesIPythoncoreinteractiveshell.py», line 2043, in showtraceback
value, tb, tb_offset=tb_offset)
File «C:ProgramDataAnaconda3libsite-packagesIPythoncoreultratb.py», line 1385, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context)
File «C:ProgramDataAnaconda3libsite-packagesIPythoncoreultratb.py», line 1288, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context
File «C:ProgramDataAnaconda3libsite-packagesIPythoncoreultratb.py», line 1150, in structured_traceback
formatted_exceptions += self.prepare_chained_exception_message(evalue.cause)
TypeError: can only concatenate str (not «list») to str

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «C:ProgramDataAnaconda3libsite-packagesIPythoncoreinteractiveshell.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:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow.py», line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File «C:UsersQyumAppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py», line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
File «C:ProgramDataAnaconda3libimp.py», line 242, in load_module
return load_dynamic(name, filename, file)
File «C:ProgramDataAnaconda3libimp.py», line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.

Failed to load the native TensorFlow runtime.

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)

AppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow.py in
57
—> 58 from tensorflow.python.pywrap_tensorflow_internal import *
59 from tensorflow.python.pywrap_tensorflow_internal import version

AppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py in
27 return _mod
—> 28 _pywrap_tensorflow_internal = swig_import_helper()
29 del swig_import_helper

AppDataRoamingPythonPython37site-packagestensorflow_corepythonpywrap_tensorflow_internal.py in swig_import_helper()
23 try:
—> 24 _mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
25 finally:

C:ProgramDataAnaconda3libimp.py in load_module(name, file, filename, details)
241 else:
—> 242 return load_dynamic(name, filename, file)
243 elif type_ == PKG_DIRECTORY:

C:ProgramDataAnaconda3libimp.py in load_dynamic(name, path, file)
341 name=name, loader=loader, origin=path)
—> 342 return _load(spec)
343

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:ProgramDataAnaconda3libsite-packagesIPythoncoreinteractiveshell.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:ProgramDataAnaconda3libsite-packagesIPythoncoreinteractiveshell.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:ProgramDataAnaconda3libsite-packagesIPythoncoreinteractiveshell.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:ProgramDataAnaconda3libsite-packagesIPythoncoreultratb.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:ProgramDataAnaconda3libsite-packagesIPythoncoreultratb.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:ProgramDataAnaconda3libsite-packagesIPythoncoreultratb.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: can only concatenate str (not «list») to str

Источник

#python #azure #tensorflow #mlflow

Вопрос:

Системная информация

Платформа и дистрибутив ОС: Windows 10 MLflow установлен: с помощью pip Версия MLflow: версия 1.20.2 **Версия Python: Python 3.9.7 **

Проблема

Я сохранил модель keras .h5, и когда я попытался выполнить mlflow.keras.load_model(«выполнить:/id_run/модель»), я ждал почти час, но это не закончилось. Поэтому я остановил выполнение и получил следующую ошибку:

 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 "~anaconda3envspython_38libsite-packagesIPythoncoreinteractiveshell.py", line 3441, in run_code  exec(code_obj, self.user_global_ns, self.user_ns)  File "lt;ipython-input-3-277d37cc6084gt;", line 1, in lt;modulegt;  keras_model = mlflow.keras.load_model("runs:/483745e28a864eceb738c852cf062774/model")  File "~AppDataRoamingPythonPython38site-packagesmlflowkeras.py", line 585, in load_model  local_model_path = _download_artifact_from_uri(artifact_uri=model_uri)  File "~AppDataRoamingPythonPython38site-packagesmlflowtrackingartifact_utils.py", line 83, in _download_artifact_from_uri  return get_artifact_repository(artifact_uri=root_uri).download_artifacts(  File "~AppDataRoamingPythonPython38site-packagesmlflowstoreartifactruns_artifact_repo.py", line 125, in download_artifacts  return self.repo.download_artifacts(artifact_path, dst_path)  File "~AppDataRoamingPythonPython38site-packagesmlflowstoreartifactartifact_repo.py", line 180, in download_artifacts  return download_artifact_dir(  File "~AppDataRoamingPythonPython38site-packagesmlflowstoreartifactartifact_repo.py", line 147, in download_artifact_dir  download_artifact_dir(  File "~AppDataRoamingPythonPython38site-packagesmlflowstoreartifactartifact_repo.py", line 152, in download_artifact_dir  download_artifact(  File "~AppDataRoamingPythonPython38site-packagesmlflowstoreartifactartifact_repo.py", line 129, in download_artifact  self._download_file(  File "~AppDataRoamingPythonPython38site-packagesmlflowstoreartifactazure_blob_artifact_repo.py", line 136, in _download_file  container_client.download_blob(remote_full_path).readinto(file)  File "~anaconda3envspython_38libsite-packagesazurestorageblob_download.py", line 617, in readinto  downloader.process_chunk(chunk)  File "~anaconda3envspython_38libsite-packagesazurestorageblob_download.py", line 129, in process_chunk  chunk_data = self._download_chunk(chunk_start, chunk_end - 1)  File "~anaconda3envspython_38libsite-packagesazurestorageblob_download.py", line 211, in _download_chunk  chunk_data = process_content(response, offset[0], offset[1], self.encryption_options)  File "~anaconda3envspython_38libsite-packagesazurestorageblob_download.py", line 52, in process_content  content = b"".join(list(data))  File "~anaconda3envspython_38libsite-packagesazurecorepipelinetransport_requests_basic.py", line 158, in __next__  chunk = next(self.iter_content_func)  File "~anaconda3envspython_38libsite-packagesrequestsmodels.py", line 758, in generate  for chunk in self.raw.stream(chunk_size, decode_content=True):  File "~anaconda3envspython_38libsite-packagesurllib3response.py", line 576, in stream  data = self.read(amt=amt, decode_content=decode_content)  File "~anaconda3envspython_38libsite-packagesurllib3response.py", line 519, in read  data = self._fp.read(amt) if not fp_closed else b""  File "~anaconda3envspython_38libhttpclient.py", line 459, in read  n = self.readinto(b)  File "~anaconda3envspython_38libhttpclient.py", line 503, in readinto  n = self.fp.readinto(b)  File "~anaconda3envspython_38libsocket.py", line 669, in readinto  return self._sock.recv_into(b)  File "~anaconda3envspython_38libssl.py", line 1241, in recv_into  return self.read(nbytes, buffer)  File "~anaconda3envspython_38libssl.py", line 1099, in read  return self._sslobj.read(len, buffer) KeyboardInterrupt  During handling of the above exception, another exception occurred:  Traceback (most recent call last):  File "~anaconda3envspython_38libsite-packagesIPythoncoreinteractiveshell.py", line 2061, in showtraceback  stb = value._render_traceback_() AttributeError: 'KeyboardInterrupt' object has no attribute '_render_traceback_'  During handling of the above exception, another exception occurred:  Traceback (most recent call last):  File "~anaconda3envspython_38libsite-packagesIPythoncoreultratb.py", line 1101, in get_records  return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)  File "~anaconda3envspython_38libsite-packagesIPythoncoreultratb.py", line 248, in wrapped  return f(*args, **kwargs)  File "~anaconda3envspython_38libsite-packagesIPythoncoreultratb.py", line 281, in _fixed_getinnerframes  records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))  File "~anaconda3envspython_38libinspect.py", line 1515, in getinnerframes  frameinfo = (tb.tb_frame,)   getframeinfo(tb, context)  File "~anaconda3envspython_38libinspect.py", line 1473, in getframeinfo  filename = getsourcefile(frame) or getfile(frame)  File "~anaconda3envspython_38libinspect.py", line 708, in getsourcefile  if getattr(getmodule(object, filename), '__loader__', None) is not None:  File "~anaconda3envspython_38libinspect.py", line 754, in getmodule  os.path.realpath(f)] = module.__name__  File "~anaconda3envspython_38libntpath.py", line 647, in realpath  path = _getfinalpathname(path) KeyboardInterrupt  

Мой артефакт sotrage — это хранилище больших двоичных объектов Azure, а мой сервер MLflow работает на сервере axeternal

Я проверил модель в пользовательском интерфейсе, и она была там, поэтому я попытался загрузить ее с помощью кнопки загрузки. Но загрузка останавливается, как вы можете видеть на изображениях, а затем перезапускается снова и снова. Я заметил, что он весит 355 МБ, поэтому я зарегистрировал модель dicrectory, сжатую как артефакт с более или менее одинаковым весом, и при попытке загрузить его возникает та же проблема.

introducir la descripción de la imagen aquí

introducir la descripción de la imagen aquí

Чтобы воспроизвести эту проблему

Просто зарегистрируйте файл с тем же весом и попробуйте восстановить его

Понравилась статья? Поделить с друзьями:
  • Error rom file size incorrect
  • Error rom file romid is not compatible with existing bios romid перевод
  • Error role cannot be dropped because some objects depend on it detail privileges for database
  • Error rockstar games social club was not detected при установке патча
  • Error roblox wiki