Closed hiwothadush closed 2 months ago
@hiwothadush Could you please refer to these steps also try to upgrade to the latest and let us know if it helps? Thank you!
This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.
This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.
Issue type
Build/Install
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
2.10
Custom code
Yes
OS platform and distribution
windows
Mobile device
No response
Python version
3.10
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
12.4.1/9.1.1.17
GPU model and memory
No response
Current behavior?
ImportError Traceback (most recent call last) File C:\ProgramData\anaconda3\envs\tf\lib\site-packages\tensorflow\python\pywrap_tensorflow.py:62 61 try: ---> 62 from tensorflow.python._pywrap_tensorflow_internal import * 63 # This try catch logic is because there is no bazel equivalent for py_extension. 64 # Externally in opensource we must enable exceptions to load the shared object 65 # by exposing the PyInit symbols with pybind. This error will only be 66 # caught internally or if someone changes the name of the target _pywrap_tensorflow_internal. 67 68 # This logic is used in other internal projects using py_extension.
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed.
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last) Cell In[1], line 1 ----> 1 import tensorflow
File C:\ProgramData\anaconda3\envs\tf\lib\site-packages\tensorflow__init__.py:37 34 import sys as _sys 35 import typing as _typing ---> 37 from tensorflow.python.tools import module_util as _module_util 38 from tensorflow.python.util.lazy_loader import LazyLoader as _LazyLoader 40 # Make sure code inside the TensorFlow codebase can use tf2.enabled() at import.
File C:\ProgramData\anaconda3\envs\tf\lib\site-packages\tensorflow\python__init__.py:36 27 import traceback 29 # We aim to keep this file minimal and ideally remove completely. 30 # If you are adding a new file with @tf_export decorators, 31 # import it in modules_with_exports.py instead. 32 33 # go/tf-wildcard-import 34 # pylint: disable=wildcard-import,g-bad-import-order,g-import-not-at-top ---> 36 from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow 37 from tensorflow.python.eager import context 39 # pylint: enable=wildcard-import 40 41 # Bring in subpackages.
File C:\ProgramData\anaconda3\envs\tf\lib\site-packages\tensorflow\python\pywrap_tensorflow.py:77 75 sys.setdlopenflags(_default_dlopen_flags) 76 except ImportError: ---> 77 raise ImportError( 78 f'{traceback.format_exc()}' 79 f'\n\nFailed to load the native TensorFlow runtime.\n' 80 f'See https://www.tensorflow.org/install/errors ' 81 f'for some common causes and solutions.\n' 82 f'If you need help, create an issue ' 83 f'at https://github.com/tensorflow/tensorflow/issues ' 84 f'and include the entire stack trace above this error message.')
ImportError: Traceback (most recent call last): File "C:\ProgramData\anaconda3\envs\tf\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 62, in
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed.
Failed to load the native TensorFlow runtime. See https://www.tensorflow.org/install/errors for some common causes and solutions. If you need help, create an issue at https://github.com/tensorflow/tensorflow/issues and include the entire stack trace above this error message.
Standalone code to reproduce the issue
Relevant log output
No response