ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed.

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
No
Source
source
TensorFlow version
tensorflow-intel==2.17.0
Custom code
No
OS platform and distribution
Windows 10 Pro
Mobile device
No response
Python version
3.11.9
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
In a clean windows (win 10 pro), I installed python 3.11.9 and after that, installed tensorflow using pip.
when I tried to run a test (just import tensorflow as tf), I got an error about DLL.
Standalone code to reproduce the issue
Python 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf

Relevant log output
PS C:\Windows\system32> pip install tensorflow
Requirement already satisfied: tensorflow in d:\python311\lib\site-packages (2.17.0)
Requirement already satisfied: tensorflow-intel==2.17.0 in d:\python311\lib\site-packages (from tensorflow) (2.17.0)
Requirement already satisfied: absl-py>=1.0.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (2.1.0)
Requirement already satisfied: astunparse>=1.6.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (1.6.3)
Requirement already satisfied: flatbuffers>=24.3.25 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (24.3.25)
Requirement already satisfied: gast!=0.5.0,!=0.5.1,!=0.5.2,>=0.2.1 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (0.6.0)
Requirement already satisfied: google-pasta>=0.1.1 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (0.2.0)
Requirement already satisfied: h5py>=3.10.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (3.11.0)
Requirement already satisfied: libclang>=13.0.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (18.1.1)
Requirement already satisfied: ml-dtypes<0.5.0,>=0.3.1 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (0.4.0)
Requirement already satisfied: opt-einsum>=2.3.2 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (3.3.0)
Requirement already satisfied: packaging in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (24.1)
Requirement already satisfied: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.20.3 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (4.25.4)
Requirement already satisfied: requests<3,>=2.21.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (2.32.3)
Requirement already satisfied: setuptools in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (65.5.0)
Requirement already satisfied: six>=1.12.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (1.16.0)
Requirement already satisfied: termcolor>=1.1.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (2.4.0)
Requirement already satisfied: typing-extensions>=3.6.6 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (4.12.2)
Requirement already satisfied: wrapt>=1.11.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (1.16.0)
Requirement already satisfied: grpcio<2.0,>=1.24.3 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (1.66.0)
Requirement already satisfied: tensorboard<2.18,>=2.17 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (2.17.1)
Requirement already satisfied: keras>=3.2.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (3.5.0)
Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.23.1 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (0.31.0)
Requirement already satisfied: numpy<2.0.0,>=1.23.5 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (1.26.4)
Requirement already satisfied: wheel<1.0,>=0.23.0 in d:\python311\lib\site-packages (from astunparse>=1.6.0->tensorflow-intel==2.17.0->tensorflow) (0.44.0)
Requirement already satisfied: rich in d:\python311\lib\site-packages (from keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (13.8.0)
Requirement already satisfied: namex in d:\python311\lib\site-packages (from keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (0.0.8)
Requirement already satisfied: optree in d:\python311\lib\site-packages (from keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (0.12.1)
Requirement already satisfied: charset-normalizer<4,>=2 in d:\python311\lib\site-packages (from requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in d:\python311\lib\site-packages (from requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow) (3.8)
Requirement already satisfied: urllib3<3,>=1.21.1 in d:\python311\lib\site-packages (from requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow) (2.2.2)
Requirement already satisfied: certifi>=2017.4.17 in d:\python311\lib\site-packages (from requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow) (2024.7.4)
Requirement already satisfied: markdown>=2.6.8 in d:\python311\lib\site-packages (from tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow) (3.7)
Requirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in d:\python311\lib\site-packages (from tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow) (0.7.2)
Requirement already satisfied: werkzeug>=1.0.1 in d:\python311\lib\site-packages (from tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow) (3.0.4)
Requirement already satisfied: MarkupSafe>=2.1.1 in d:\python311\lib\site-packages (from werkzeug>=1.0.1->tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow) (2.1.5)
Requirement already satisfied: markdown-it-py>=2.2.0 in d:\python311\lib\site-packages (from rich->keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (3.0.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in d:\python311\lib\site-packages (from rich->keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (2.18.0)
Requirement already satisfied: mdurl~=0.1 in d:\python311\lib\site-packages (from markdown-it-py>=2.2.0->rich->keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (0.1.2)

Python 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
  File "D:\Python311\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 70, in <module>
    from tensorflow.python._pywrap_tensorflow_internal import *
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:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\Python311\Lib\site-packages\tensorflow\__init__.py", line 38, in <module>
    from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow  # pylint: disable=unused-import
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Python311\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 85, in <module>
    raise ImportError(
ImportError: Traceback (most recent call last):
  File "D:\Python311\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 70, in <module>
    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.

The error you're encountering typically happens because TensorFlow relies on certain low-level libraries that may be missing or incompatible with your system setup.
Here are a few potential solutions to address the DLL load failed error:

TensorFlow on Windows requires certain Microsoft C++ runtime libraries. Make sure you have the latest version of the Microsoft Visual C++ Redistributable installed.
Run pip show TensorFlow to confirm that the TensorFlow installation is complete and hasn't missed any dependencies.
Sometimes the installation can be corrupted. You can try reinstalling TensorFlow:

pip install tensorflow```
3) Ensure that TensorFlow 2.17.0 is fully compatible with Python 3.11.9. While TensorFlow typically supports Python versions close to the latest, it's possible there could be compatibility issues. Try installing a slightly older version of Python, such as 3.10.x or 3.9.x, and see if that resolves the issue.
4) If there are multiple versions of the same DLL files in your PATH, it might be causing conflicts. Make sure your Python environment and TensorFlow are properly isolated using venv or conda.
Create a virtual environment and reinstall TensorFlow:
```python -m venv tf_env
tf_env\Scripts\activate
pip install tensorflow```
5) If none of the above solutions work, you can try using the nightly version of TensorFlow, which may include bug fixes and updates that address the issue you're encountering:
```pip install tf-nightly```

Let me know if any of these solutions work for you!

@syoshio,
Tensorflow-Intel is an optimized version of TensorFlow for Windows OS that has been produced by Intel.  Could you please confirm whether you are trying to use pip install tensorflow-intel or pip install tensorflow? Thank you!

@tilakrayal,
In second line of relevant output it is mention that it is tensorflow-intel
or your reference I will add it here again:
PS C:\Windows\system32> pip install tensorflow
Requirement already satisfied: tensorflow in d:\python311\lib\site-packages (2.17.0)
Requirement already satisfied: tensorflow-intel==2.17.0 in d:\python311\lib\site-packages (from tensorflow) (2.17.0)
Requirement already satisfied: absl-py>=1.0.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (2.1.0)
Requirement already satisfied: astunparse>=1.6.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (1.6.3)
Requirement already satisfied: flatbuffers>=24.3.25 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (24.3.25)
Requirement already satisfied: gast!=0.5.0,!=0.5.1,!=0.5.2,>=0.2.1 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (0.6.0)
Requirement already satisfied: google-pasta>=0.1.1 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (0.2.0)
Requirement already satisfied: h5py>=3.10.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (3.11.0)
Requirement already satisfied: libclang>=13.0.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (18.1.1)
Requirement already satisfied: ml-dtypes<0.5.0,>=0.3.1 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (0.4.0)
Requirement already satisfied: opt-einsum>=2.3.2 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (3.3.0)
Requirement already satisfied: packaging in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (24.1)
Requirement already satisfied: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.20.3 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (4.25.4)
Requirement already satisfied: requests<3,>=2.21.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (2.32.3)
Requirement already satisfied: setuptools in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (65.5.0)
Requirement already satisfied: six>=1.12.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (1.16.0)
Requirement already satisfied: termcolor>=1.1.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (2.4.0)
Requirement already satisfied: typing-extensions>=3.6.6 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (4.12.2)
Requirement already satisfied: wrapt>=1.11.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (1.16.0)
Requirement already satisfied: grpcio<2.0,>=1.24.3 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (1.66.0)
Requirement already satisfied: tensorboard<2.18,>=2.17 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (2.17.1)
Requirement already satisfied: keras>=3.2.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (3.5.0)
Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.23.1 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (0.31.0)
Requirement already satisfied: numpy<2.0.0,>=1.23.5 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (1.26.4)
Requirement already satisfied: wheel<1.0,>=0.23.0 in d:\python311\lib\site-packages (from astunparse>=1.6.0->tensorflow-intel==2.17.0->tensorflow) (0.44.0)
Requirement already satisfied: rich in d:\python311\lib\site-packages (from keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (13.8.0)
Requirement already satisfied: namex in d:\python311\lib\site-packages (from keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (0.0.8)
Requirement already satisfied: optree in d:\python311\lib\site-packages (from keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (0.12.1)
Requirement already satisfied: charset-normalizer<4,>=2 in d:\python311\lib\site-packages (from requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in d:\python311\lib\site-packages (from requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow) (3.8)
Requirement already satisfied: urllib3<3,>=1.21.1 in d:\python311\lib\site-packages (from requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow) (2.2.2)
Requirement already satisfied: certifi>=2017.4.17 in d:\python311\lib\site-packages (from requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow) (2024.7.4)
Requirement already satisfied: markdown>=2.6.8 in d:\python311\lib\site-packages (from tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow) (3.7)
Requirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in d:\python311\lib\site-packages (from tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow) (0.7.2)
Requirement already satisfied: werkzeug>=1.0.1 in d:\python311\lib\site-packages (from tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow) (3.0.4)
Requirement already satisfied: MarkupSafe>=2.1.1 in d:\python311\lib\site-packages (from werkzeug>=1.0.1->tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow) (2.1.5)
Requirement already satisfied: markdown-it-py>=2.2.0 in d:\python311\lib\site-packages (from rich->keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (3.0.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in d:\python311\lib\site-packages (from rich->keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (2.18.0)
Requirement already satisfied: mdurl~=0.1 in d:\python311\lib\site-packages (from markdown-it-py>=2.2.0->rich->keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (0.1.2)

Python 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
  File "D:\Python311\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 70, in <module>
    from tensorflow.python._pywrap_tensorflow_internal import *
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:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\Python311\Lib\site-packages\tensorflow\__init__.py", line 38, in <module>
    from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow  # pylint: disable=unused-import
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Python311\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 85, in <module>
    raise ImportError(
ImportError: Traceback (most recent call last):
  File "D:\Python311\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 70, in <module>
    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.

Hope you understand why I use :
pip uninstall tensorflow tensorflow-intel
pip install tensorflow

feel free to ask anything if you think my approach is wrong after all I also here to learn
Thank you!!

rahulsamant37,
tilakrayal thanks for help me!
As you recommended, I did uninstall tensorflow and tensorflow-intel, but
when run pip install tensorflow, tensorflow-intel is installed together.
I tried to uninstall only tensorflow-intel, but python complains when I
tried to import tensorflow.
About Microsoft Visual C++ Redistributable, I have the last version ( 14
.40.33810.0,
https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-microsoft-visual-c-redistributable-version
)
I'm still getting error.
PS C:\Windows\system32> pip uninstall tensorflow tensorflow-intel
Found existing installation: tensorflow 2.17.0
Uninstalling tensorflow-2.17.0:
Would remove:
d:\python311\lib\site-packages\tensorflow-2.17.0.dist-info*
Proceed (Y/n)? Y
Successfully uninstalled tensorflow-2.17.0
Found existing installation: tensorflow-intel 2.17.0
Uninstalling tensorflow-intel-2.17.0:
Would remove:
d:\python311\lib\site-packages\tensorflow*
d:\python311\lib\site-packages\tensorflow_intel-2.17.0.dist-info*
d:\python311\scripts\import_pb_to_tensorboard.exe
d:\python311\scripts\saved_model_cli.exe
d:\python311\scripts\tensorboard.exe
d:\python311\scripts\tf_upgrade_v2.exe
d:\python311\scripts\tflite_convert.exe
d:\python311\scripts\toco.exe
d:\python311\scripts\toco_from_protos.exe
Proceed (Y/n)? Y
Successfully uninstalled tensorflow-intel-2.17.0
PS C:\Windows\system32> pip install tensorflow
Collecting tensorflow
Using cached tensorflow-2.17.0-cp311-cp311-win_amd64.whl.metadata (3.2 kB)
Collecting tensorflow-intel==2.17.0 (from tensorflow)
Using cached tensorflow_intel-2.17.0-cp311-cp311-win_amd64.whl.metadata
(5.0 kB)
Requirement already satisfied: absl-py>=1.0.0 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(2.1.0)
Requirement already satisfied: astunparse>=1.6.0 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(1.6.3)
Requirement already satisfied: flatbuffers>=24.3.25 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(24.3.25)
Requirement already satisfied: gast!=0.5.0,!=0.5.1,!=0.5.2,>=0.2.1 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(0.6.0)
Requirement already satisfied: google-pasta>=0.1.1 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(0.2.0)
Requirement already satisfied: h5py>=3.10.0 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(3.11.0)
Requirement already satisfied: libclang>=13.0.0 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(18.1.1)
Requirement already satisfied: ml-dtypes<0.5.0,>=0.3.1 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(0.4.0)
Requirement already satisfied: opt-einsum>=2.3.2 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(3.3.0)
Requirement already satisfied: packaging in d:\python311\lib\site-packages
(from tensorflow-intel==2.17.0->tensorflow) (24.1)
Requirement already satisfied:
protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.20.3
in d:\python311\lib\site-packages (from
tensorflow-intel==2.17.0->tensorflow) (4.25.4)
Requirement already satisfied: requests<3,>=2.21.0 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(2.32.3)
Requirement already satisfied: setuptools in d:\python311\lib\site-packages
(from tensorflow-intel==2.17.0->tensorflow) (65.5.0)
Requirement already satisfied: six>=1.12.0 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(1.16.0)
Requirement already satisfied: termcolor>=1.1.0 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(2.4.0)
Requirement already satisfied: typing-extensions>=3.6.6 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(4.12.2)
Requirement already satisfied: wrapt>=1.11.0 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(1.16.0)
Requirement already satisfied: grpcio<2.0,>=1.24.3 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(1.66.0)
Requirement already satisfied: tensorboard<2.18,>=2.17 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(2.17.1)
Requirement already satisfied: keras>=3.2.0 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(3.5.0)
Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.23.1 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(0.31.0)
Requirement already satisfied: numpy<2.0.0,>=1.23.5 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(1.26.4)
Requirement already satisfied: wheel<1.0,>=0.23.0 in
d:\python311\lib\site-packages (from
astunparse>=1.6.0->tensorflow-intel==2.17.0->tensorflow) (0.44.0)
Requirement already satisfied: rich in d:\python311\lib\site-packages (from
keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (13.8.0)
Requirement already satisfied: namex in d:\python311\lib\site-packages
(from keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (0.0.8)
Requirement already satisfied: optree in d:\python311\lib\site-packages
(from keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (0.12.1)
Requirement already satisfied: charset-normalizer<4,>=2 in
d:\python311\lib\site-packages (from
requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in
d:\python311\lib\site-packages (from
requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow) (3.8)
Requirement already satisfied: urllib3<3,>=1.21.1 in
d:\python311\lib\site-packages (from
requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow) (2.2.2)
Requirement already satisfied: certifi>=2017.4.17 in
d:\python311\lib\site-packages (from
requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow) (2024.7.4)
Requirement already satisfied: markdown>=2.6.8 in
d:\python311\lib\site-packages (from
tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow) (3.7)
Requirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in
d:\python311\lib\site-packages (from
tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow) (0.7.2)
Requirement already satisfied: werkzeug>=1.0.1 in
d:\python311\lib\site-packages (from
tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow) (3.0.4)
Requirement already satisfied: MarkupSafe>=2.1.1 in
d:\python311\lib\site-packages (from
werkzeug>=1.0.1->tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow)
(2.1.5)
Requirement already satisfied: markdown-it-py>=2.2.0 in
d:\python311\lib\site-packages (from
rich->keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (3.0.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in
d:\python311\lib\site-packages (from
rich->keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (2.18.0)
Requirement already satisfied: mdurl~=0.1 in d:\python311\lib\site-packages
(from
markdown-it-py>=2.2.0->rich->keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow)
(0.1.2)
Using cached tensorflow-2.17.0-cp311-cp311-win_amd64.whl (2.0 kB)
Using cached tensorflow_intel-2.17.0-cp311-cp311-win_amd64.whl (385.0 MB)
Installing collected packages: tensorflow-intel, tensorflow
Successfully installed tensorflow-2.17.0 tensorflow-intel-2.17.0
PS C:\Windows\system32> pip uninstall tensorflow-intel
Found existing installation: tensorflow-intel 2.17.0
Uninstalling tensorflow-intel-2.17.0:
Would remove:
d:\python311\lib\site-packages\tensorflow*
d:\python311\lib\site-packages\tensorflow_intel-2.17.0.dist-info*
d:\python311\scripts\import_pb_to_tensorboard.exe
d:\python311\scripts\saved_model_cli.exe
d:\python311\scripts\tensorboard.exe
d:\python311\scripts\tf_upgrade_v2.exe
d:\python311\scripts\tflite_convert.exe
d:\python311\scripts\toco.exe
d:\python311\scripts\toco_from_protos.exe
Proceed (Y/n)? Y
Successfully uninstalled tensorflow-intel-2.17.0
PS C:\Windows\system32> python
Python 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import tensorflow as tf
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'tensorflow'
exit()
[image: image.png]

PS C:\Windows\system32> python
Python 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import tensorflow
Traceback (most recent call last):
File
"D:\Python311\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py",
line 70, 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.

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "D:\Python311\Lib\site-packages\tensorflow_init_.py", line 38, in

from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
pylint: disable=unused-import
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File
"D:\Python311\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py",
line 85, in
raise ImportError(
ImportError: Traceback (most recent call last):
File
"D:\Python311\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py",
line 70, 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.

On Thu, Aug 29, 2024 at 11:47 AM rahulsamant37 @.***>
wrote:

@tilakrayal https://github.com/tilakrayal,
In second line of relevant output it is mention that it is tensorflow-intel
or your reference I will add it here again:
PS C:\Windows\system32> pip install tensorflow
Requirement already satisfied: tensorflow in d:\python311\lib\site-packages (2.17.0)
Requirement already satisfied: tensorflow-intel==2.17.0 in d:\python311\lib\site-packages (from tensorflow) (2.17.0)
Requirement already satisfied: absl-py>=1.0.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (2.1.0)
Requirement already satisfied: astunparse>=1.6.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (1.6.3)
Requirement already satisfied: flatbuffers>=24.3.25 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (24.3.25)
Requirement already satisfied: gast!=0.5.0,!=0.5.1,!=0.5.2,>=0.2.1 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (0.6.0)
Requirement already satisfied: google-pasta>=0.1.1 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (0.2.0)
Requirement already satisfied: h5py>=3.10.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (3.11.0)
Requirement already satisfied: libclang>=13.0.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (18.1.1)
Requirement already satisfied: ml-dtypes<0.5.0,>=0.3.1 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (0.4.0)
Requirement already satisfied: opt-einsum>=2.3.2 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (3.3.0)
Requirement already satisfied: packaging in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (24.1)
Requirement already satisfied: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.20.3 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (4.25.4)
Requirement already satisfied: requests<3,>=2.21.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (2.32.3)
Requirement already satisfied: setuptools in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (65.5.0)
Requirement already satisfied: six>=1.12.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (1.16.0)
Requirement already satisfied: termcolor>=1.1.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (2.4.0)
Requirement already satisfied: typing-extensions>=3.6.6 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (4.12.2)
Requirement already satisfied: wrapt>=1.11.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (1.16.0)
Requirement already satisfied: grpcio<2.0,>=1.24.3 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (1.66.0)
Requirement already satisfied: tensorboard<2.18,>=2.17 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (2.17.1)
Requirement already satisfied: keras>=3.2.0 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (3.5.0)
Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.23.1 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (0.31.0)
Requirement already satisfied: numpy<2.0.0,>=1.23.5 in d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow) (1.26.4)
Requirement already satisfied: wheel<1.0,>=0.23.0 in d:\python311\lib\site-packages (from astunparse>=1.6.0->tensorflow-intel==2.17.0->tensorflow) (0.44.0)
Requirement already satisfied: rich in d:\python311\lib\site-packages (from keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (13.8.0)
Requirement already satisfied: namex in d:\python311\lib\site-packages (from keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (0.0.8)
Requirement already satisfied: optree in d:\python311\lib\site-packages (from keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (0.12.1)
Requirement already satisfied: charset-normalizer<4,>=2 in d:\python311\lib\site-packages (from requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in d:\python311\lib\site-packages (from requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow) (3.8)
Requirement already satisfied: urllib3<3,>=1.21.1 in d:\python311\lib\site-packages (from requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow) (2.2.2)
Requirement already satisfied: certifi>=2017.4.17 in d:\python311\lib\site-packages (from requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow) (2024.7.4)
Requirement already satisfied: markdown>=2.6.8 in d:\python311\lib\site-packages (from tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow) (3.7)
Requirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in d:\python311\lib\site-packages (from tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow) (0.7.2)
Requirement already satisfied: werkzeug>=1.0.1 in d:\python311\lib\site-packages (from tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow) (3.0.4)
Requirement already satisfied: MarkupSafe>=2.1.1 in d:\python311\lib\site-packages (from werkzeug>=1.0.1->tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow) (2.1.5)
Requirement already satisfied: markdown-it-py>=2.2.0 in d:\python311\lib\site-packages (from rich->keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (3.0.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in d:\python311\lib\site-packages (from rich->keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (2.18.0)
Requirement already satisfied: mdurl~=0.1 in d:\python311\lib\site-packages (from markdown-it-py>=2.2.0->rich->keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (0.1.2)
Python 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import tensorflow as tf
Traceback (most recent call last):
File "D:\Python311\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 70, 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.

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "D:\Python311\Lib\site-packages\tensorflow_init_.py", line 38, in
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow  # pylint: disable=unused-import
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python311\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 85, in
raise ImportError(
ImportError: Traceback (most recent call last):
File "D:\Python311\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 70, 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.
Hope you understand why I use :
pip uninstall tensorflow tensorflow-intel
pip install tensorflow
feel free to ask anything if you think my approach is wrong after all I
also here to learn
Thank you!!
—
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/74725#issuecomment-2317941210,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADSP7KZLADVPRDWEBEOU2T3ZT4X7FAVCNFSM6AAAAABNJDCR6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJXHE2DCMRRGA
.
You are receiving this because you were mentioned.Message ID:
@.***>

I'm dealing with the same problem
File "C:\Users\hatim\Desktop\tfproject\myenv\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 70, 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.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\tim\Desktop\tfproject\test.py", line 1, in
import tensorflow as tf
File "C:\Users\tim\Desktop\tfproject\myenv\Lib\site-packages\tensorflow_init_.py", line 38, in
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow  # pylint: disable=unused-import
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\tim\Desktop\tfproject\myenv\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 85, in
raise ImportError(
ImportError: Traceback (most recent call last):
File "C:\Users\tim\Desktop\tfproject\myenv\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 70, 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.

### how to solve this
Traceback (most recent call last):
File "C:\Users\SALMAN  KHAN\Desktop\Python_version_2\myenv\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 70, 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.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Users\SALMAN  KHAN\Desktop\Python_version_2\myenv\tf.py", line 1, in
import tensorflow as tf
File "C:\Users\SALMAN  KHAN\Desktop\Python_version_2\myenv\Lib\site-packages\tensorflow_init_.py", line 38, in
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow  # pylint: disable=unused-import
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\SALMAN  KHAN\Desktop\Python_version_2\myenv\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 85, in
raise ImportError(
ImportError: Traceback (most recent call last):
File "C:\Users\SALMAN  KHAN\Desktop\Python_version_2\myenv\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 70, 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

Hi syoshio, I don't see any issue on my end. Please try to download python(Download Windows installer (64-bit))  again from https://www.python.org/downloads/windows/

Please let me know if the issue persists.

steps followed by me

Hello mraunak! I can install python and tensorflow, but the error happens
when I try to import tensorflow
PS D:\projetos\python> python -m venv tensor_env
PS D:\projetos\python> pip list
Package                      Version

absl-py                      2.1.0
astunparse                   1.6.3
certifi                      2024.7.4
charset-normalizer           3.3.2
flatbuffers                  24.3.25
gast                         0.6.0
google-pasta                 0.2.0
grpcio                       1.66.0
h5py                         3.11.0
idna                         3.8
keras                        3.5.0
libclang                     18.1.1
Markdown                     3.7
markdown-it-py               3.0.0
MarkupSafe                   2.1.5
mdurl                        0.1.2
ml-dtypes                    0.4.0
namex                        0.0.8
numpy                        1.26.4
opt-einsum                   3.3.0
optree                       0.12.1
packaging                    24.1
pip                          24.0
protobuf                     4.25.4
Pygments                     2.18.0
requests                     2.32.3
rich                         13.8.0
setuptools                   65.5.0
six                          1.16.0
tensorboard                  2.17.1
tensorboard-data-server      0.7.2
tensorflow                   2.17.0
tensorflow-intel             2.17.0
tensorflow-io-gcs-filesystem 0.31.0
termcolor                    2.4.0
typing_extensions            4.12.2
urllib3                      2.2.2
Werkzeug                     3.0.4
wheel                        0.44.0
wrapt                        1.16.0
[notice] A new release of pip is available: 24.0 -> 24.2
[notice] To update, run: python.exe -m pip install --upgrade pip
PS D:\projetos\python> python --version
Python 3.11.9
PS D:\projetos\python> pip install tensorflow
Requirement already satisfied: tensorflow in d:\python311\lib\site-packages
(2.17.0)
Requirement already satisfied: tensorflow-intel==2.17.0 in
d:\python311\lib\site-packages (from tensorflow) (2.17.0)
Requirement already satisfied: absl-py>=1.0.0 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(2.1.0)
Requirement already satisfied: astunparse>=1.6.0 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(1.6.3)
Requirement already satisfied: flatbuffers>=24.3.25 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(24.3.25)
Requirement already satisfied: gast!=0.5.0,!=0.5.1,!=0.5.2,>=0.2.1 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(0.6.0)
Requirement already satisfied: google-pasta>=0.1.1 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(0.2.0)
Requirement already satisfied: h5py>=3.10.0 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(3.11.0)
Requirement already satisfied: libclang>=13.0.0 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(18.1.1)
Requirement already satisfied: ml-dtypes<0.5.0,>=0.3.1 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(0.4.0)
Requirement already satisfied: opt-einsum>=2.3.2 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(3.3.0)
Requirement already satisfied: packaging in d:\python311\lib\site-packages
(from tensorflow-intel==2.17.0->tensorflow) (24.1)
Requirement already satisfied:
protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.20.3
in d:\python311\lib\site-packages (from
tensorflow-intel==2.17.0->tensorflow) (4.25.4)
Requirement already satisfied: requests<3,>=2.21.0 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(2.32.3)
Requirement already satisfied: setuptools in d:\python311\lib\site-packages
(from tensorflow-intel==2.17.0->tensorflow) (65.5.0)
Requirement already satisfied: six>=1.12.0 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(1.16.0)
Requirement already satisfied: termcolor>=1.1.0 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(2.4.0)
Requirement already satisfied: typing-extensions>=3.6.6 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(4.12.2)
Requirement already satisfied: wrapt>=1.11.0 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(1.16.0)
Requirement already satisfied: grpcio<2.0,>=1.24.3 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(1.66.0)
Requirement already satisfied: tensorboard<2.18,>=2.17 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(2.17.1)
Requirement already satisfied: keras>=3.2.0 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(3.5.0)
Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.23.1 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(0.31.0)
Requirement already satisfied: numpy<2.0.0,>=1.23.5 in
d:\python311\lib\site-packages (from tensorflow-intel==2.17.0->tensorflow)
(1.26.4)
Requirement already satisfied: wheel<1.0,>=0.23.0 in
d:\python311\lib\site-packages (from
astunparse>=1.6.0->tensorflow-intel==2.17.0->tensorflow) (0.44.0)
Requirement already satisfied: rich in d:\python311\lib\site-packages (from
keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (13.8.0)
Requirement already satisfied: namex in d:\python311\lib\site-packages
(from keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (0.0.8)
Requirement already satisfied: optree in d:\python311\lib\site-packages
(from keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (0.12.1)
Requirement already satisfied: charset-normalizer<4,>=2 in
d:\python311\lib\site-packages (from
requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in
d:\python311\lib\site-packages (from
requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow) (3.8)
Requirement already satisfied: urllib3<3,>=1.21.1 in
d:\python311\lib\site-packages (from
requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow) (2.2.2)
Requirement already satisfied: certifi>=2017.4.17 in
d:\python311\lib\site-packages (from
requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow) (2024.7.4)
Requirement already satisfied: markdown>=2.6.8 in
d:\python311\lib\site-packages (from
tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow) (3.7)
Requirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in
d:\python311\lib\site-packages (from
tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow) (0.7.2)
Requirement already satisfied: werkzeug>=1.0.1 in
d:\python311\lib\site-packages (from
tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow) (3.0.4)
Requirement already satisfied: MarkupSafe>=2.1.1 in
d:\python311\lib\site-packages (from
werkzeug>=1.0.1->tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow)
(2.1.5)
Requirement already satisfied: markdown-it-py>=2.2.0 in
d:\python311\lib\site-packages (from
rich->keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (3.0.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in
d:\python311\lib\site-packages (from
rich->keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow) (2.18.0)
Requirement already satisfied: mdurl~=0.1 in d:\python311\lib\site-packages
(from
markdown-it-py>=2.2.0->rich->keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow)
(0.1.2)
[notice] A new release of pip is available: 24.0 -> 24.2
[notice] To update, run: python.exe -m pip install --upgrade pip
PS D:\projetos\python> python
Python 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import tensorflow as tf
Traceback (most recent call last):
File
"D:\Python311\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py",
line 70, 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.

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "D:\Python311\Lib\site-packages\tensorflow_init_.py", line 38, in

from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
pylint: disable=unused-import
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File
"D:\Python311\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py",
line 85, in
raise ImportError(
ImportError: Traceback (most recent call last):
File
"D:\Python311\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py",
line 70, 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.

On Wed, Sep 11, 2024 at 5:49 PM mraunak @.***> wrote:

steps followed by me
image.png (view on web)
https://github.com/user-attachments/assets/4be92c05-41cd-4465-8dbf-00116cfd9e08
—
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/74725#issuecomment-2344674325,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADSP7KYDJYADVDISZ25422TZWCUEDAVCNFSM6AAAAABNJDCR6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBUGY3TIMZSGU
.
You are receiving this because you were mentioned.Message ID:
@.***>

I see, pls try to activate the virtual env, I see you have already created a virtual env
create virtual env:  python/python.exe -m venv tensor_env
activate virtual env: tensor_env/scripts/activate
The list of packages installed via pip seems the same in both cases
(venv311_t) D:\user\mraunak>pip list
Package                      Version

absl-py                      2.1.0
astunparse                   1.6.3
certifi                      2024.8.30
charset-normalizer           3.3.2
flatbuffers                  24.3.25
gast                         0.6.0
google-pasta                 0.2.0
grpcio                       1.66.1
h5py                         3.11.0
idna                         3.8
keras                        3.5.0
libclang                     18.1.1
Markdown                     3.7
markdown-it-py               3.0.0
MarkupSafe                   2.1.5
mdurl                        0.1.2
ml-dtypes                    0.4.0
namex                        0.0.8
numpy                        1.26.4
opt-einsum                   3.3.0
optree                       0.12.1
packaging                    24.1
pip                          24.0
protobuf                     4.25.4
Pygments                     2.18.0
requests                     2.32.3
rich                         13.8.1
setuptools                   65.5.0
six                          1.16.0
tensorboard                  2.17.1
tensorboard-data-server      0.7.2
tensorflow                   2.17.0
tensorflow-intel             2.17.0
tensorflow-io-gcs-filesystem 0.31.0
termcolor                    2.4.0
typing_extensions            4.12.2
urllib3                      2.2.2
Werkzeug                     3.0.4
wheel                        0.44.0
wrapt                        1.16.0

Hello  mraunak!
I tried as you recommended, but I'm still having problems.
PS D:\projetos\python> Set-ExecutionPolicy
cmdlet Set-ExecutionPolicy at command pipeline position 1
Supply values for the following parameters:
ExecutionPolicy: AllSigned
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust.
Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help
topic at
https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the
execution policy?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help
(default is "N"): Y
PS D:\projetos\python> tensor_env/scripts/activate
Do you want to run software from this untrusted publisher?
File D:\projetos\python\tensor_env\scripts\Activate.ps1 is published by
CN=Python Software Foundation, O=Python
Software Foundation, L=Beaverton, S=Oregon, C=US and is not trusted on your
system. Only run scripts from trusted
publishers.
 Help
(default is "D"): A
(tensor_env) PS D:\projetos\python> pip list
Package    Version

pip        24.0
setuptools 65.5.0
[notice] A new release of pip is available: 24.0 -> 24.2
[notice] To update, run: python.exe -m pip install --upgrade pip
(tensor_env) PS D:\projetos\python> pip install tensorflow
Collecting tensorflow
Using cached tensorflow-2.17.0-cp311-cp311-win_amd64.whl.metadata (3.2 kB)
Collecting tensorflow-intel==2.17.0 (from tensorflow)
Using cached tensorflow_intel-2.17.0-cp311-cp311-win_amd64.whl.metadata
(5.0 kB)
Collecting absl-py>=1.0.0 (from tensorflow-intel==2.17.0->tensorflow)
Using cached absl_py-2.1.0-py3-none-any.whl.metadata (2.3 kB)
Collecting astunparse>=1.6.0 (from tensorflow-intel==2.17.0->tensorflow)
Using cached astunparse-1.6.3-py2.py3-none-any.whl.metadata (4.4 kB)
Collecting flatbuffers>=24.3.25 (from tensorflow-intel==2.17.0->tensorflow)
Using cached flatbuffers-24.3.25-py2.py3-none-any.whl.metadata (850 bytes)
Collecting gast!=0.5.0,!=0.5.1,!=0.5.2,>=0.2.1 (from
tensorflow-intel==2.17.0->tensorflow)
Using cached gast-0.6.0-py3-none-any.whl.metadata (1.3 kB)
Collecting google-pasta>=0.1.1 (from tensorflow-intel==2.17.0->tensorflow)
Using cached google_pasta-0.2.0-py3-none-any.whl.metadata (814 bytes)
Collecting h5py>=3.10.0 (from tensorflow-intel==2.17.0->tensorflow)
Using cached h5py-3.11.0-cp311-cp311-win_amd64.whl.metadata (2.5 kB)
Collecting libclang>=13.0.0 (from tensorflow-intel==2.17.0->tensorflow)
Using cached libclang-18.1.1-py2.py3-none-win_amd64.whl.metadata (5.3 kB)
Collecting ml-dtypes<0.5.0,>=0.3.1 (from
tensorflow-intel==2.17.0->tensorflow)
Using cached ml_dtypes-0.4.0-cp311-cp311-win_amd64.whl.metadata (20 kB)
Collecting opt-einsum>=2.3.2 (from tensorflow-intel==2.17.0->tensorflow)
Using cached opt_einsum-3.3.0-py3-none-any.whl.metadata (6.5 kB)
Collecting packaging (from tensorflow-intel==2.17.0->tensorflow)
Using cached packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Collecting
protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.20.3
(from tensorflow-intel==2.17.0->tensorflow)
Using cached protobuf-4.25.4-cp310-abi3-win_amd64.whl.metadata (541 bytes)
Collecting requests<3,>=2.21.0 (from tensorflow-intel==2.17.0->tensorflow)
Using cached requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Requirement already satisfied: setuptools in
d:\projetos\python\tensor_env\lib\site-packages (from
tensorflow-intel==2.17.0->tensorflow) (65.5.0)
Collecting six>=1.12.0 (from tensorflow-intel==2.17.0->tensorflow)
Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Collecting termcolor>=1.1.0 (from tensorflow-intel==2.17.0->tensorflow)
Using cached termcolor-2.4.0-py3-none-any.whl.metadata (6.1 kB)
Collecting typing-extensions>=3.6.6 (from
tensorflow-intel==2.17.0->tensorflow)
Using cached typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Collecting wrapt>=1.11.0 (from tensorflow-intel==2.17.0->tensorflow)
Using cached wrapt-1.16.0-cp311-cp311-win_amd64.whl.metadata (6.8 kB)
Collecting grpcio<2.0,>=1.24.3 (from tensorflow-intel==2.17.0->tensorflow)
Downloading grpcio-1.66.1-cp311-cp311-win_amd64.whl.metadata (4.0 kB)
Collecting tensorboard<2.18,>=2.17 (from
tensorflow-intel==2.17.0->tensorflow)
Using cached tensorboard-2.17.1-py3-none-any.whl.metadata (1.6 kB)
Collecting keras>=3.2.0 (from tensorflow-intel==2.17.0->tensorflow)
Using cached keras-3.5.0-py3-none-any.whl.metadata (5.8 kB)
Collecting tensorflow-io-gcs-filesystem>=0.23.1 (from
tensorflow-intel==2.17.0->tensorflow)
Using cached
tensorflow_io_gcs_filesystem-0.31.0-cp311-cp311-win_amd64.whl.metadata (14
kB)
Collecting numpy<2.0.0,>=1.23.5 (from tensorflow-intel==2.17.0->tensorflow)
Using cached numpy-1.26.4-cp311-cp311-win_amd64.whl.metadata (61 kB)
Collecting wheel<1.0,>=0.23.0 (from
astunparse>=1.6.0->tensorflow-intel==2.17.0->tensorflow)
Using cached wheel-0.44.0-py3-none-any.whl.metadata (2.3 kB)
Collecting rich (from keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow)
Downloading rich-13.8.1-py3-none-any.whl.metadata (18 kB)
Collecting namex (from keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow)
Using cached namex-0.0.8-py3-none-any.whl.metadata (246 bytes)
Collecting optree (from keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow)
Using cached optree-0.12.1-cp311-cp311-win_amd64.whl.metadata (48 kB)
Collecting charset-normalizer<4,>=2 (from
requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow)
Using cached charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl.metadata
(34 kB)
Collecting idna<4,>=2.5 (from
requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow)
Using cached idna-3.8-py3-none-any.whl.metadata (9.9 kB)
Collecting urllib3<3,>=1.21.1 (from
requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow)
Using cached urllib3-2.2.2-py3-none-any.whl.metadata (6.4 kB)
Collecting certifi>=2017.4.17 (from
requests<3,>=2.21.0->tensorflow-intel==2.17.0->tensorflow)
Downloading certifi-2024.8.30-py3-none-any.whl.metadata (2.2 kB)
Collecting markdown>=2.6.8 (from
tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow)
Using cached Markdown-3.7-py3-none-any.whl.metadata (7.0 kB)
Collecting tensorboard-data-server<0.8.0,>=0.7.0 (from
tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow)
Using cached tensorboard_data_server-0.7.2-py3-none-any.whl.metadata (1.1
kB)
Collecting werkzeug>=1.0.1 (from
tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow)
Using cached werkzeug-3.0.4-py3-none-any.whl.metadata (3.7 kB)
Collecting MarkupSafe>=2.1.1 (from
werkzeug>=1.0.1->tensorboard<2.18,>=2.17->tensorflow-intel==2.17.0->tensorflow)
Using cached MarkupSafe-2.1.5-cp311-cp311-win_amd64.whl.metadata (3.1 kB)
Collecting markdown-it-py>=2.2.0 (from
rich->keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow)
Using cached markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)
Collecting pygments<3.0.0,>=2.13.0 (from
rich->keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow)
Using cached pygments-2.18.0-py3-none-any.whl.metadata (2.5 kB)
Collecting mdurl~=0.1 (from
markdown-it-py>=2.2.0->rich->keras>=3.2.0->tensorflow-intel==2.17.0->tensorflow)
Using cached mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)
Using cached tensorflow-2.17.0-cp311-cp311-win_amd64.whl (2.0 kB)
Using cached tensorflow_intel-2.17.0-cp311-cp311-win_amd64.whl (385.0 MB)
Using cached absl_py-2.1.0-py3-none-any.whl (133 kB)
Using cached astunparse-1.6.3-py2.py3-none-any.whl (12 kB)
Using cached flatbuffers-24.3.25-py2.py3-none-any.whl (26 kB)
Using cached gast-0.6.0-py3-none-any.whl (21 kB)
Using cached google_pasta-0.2.0-py3-none-any.whl (57 kB)
Downloading grpcio-1.66.1-cp311-cp311-win_amd64.whl (4.3 MB)
---------------------------------------- 4.3/4.3 MB 8.8 MB/s eta 0:00:00
Using cached h5py-3.11.0-cp311-cp311-win_amd64.whl (3.0 MB)
Using cached keras-3.5.0-py3-none-any.whl (1.1 MB)
Using cached libclang-18.1.1-py2.py3-none-win_amd64.whl (26.4 MB)
Using cached ml_dtypes-0.4.0-cp311-cp311-win_amd64.whl (126 kB)
Using cached numpy-1.26.4-cp311-cp311-win_amd64.whl (15.8 MB)
Using cached opt_einsum-3.3.0-py3-none-any.whl (65 kB)
Using cached protobuf-4.25.4-cp310-abi3-win_amd64.whl (413 kB)
Using cached requests-2.32.3-py3-none-any.whl (64 kB)
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Using cached tensorboard-2.17.1-py3-none-any.whl (5.5 MB)
Using cached tensorflow_io_gcs_filesystem-0.31.0-cp311-cp311-win_amd64.whl
(1.5 MB)
Using cached termcolor-2.4.0-py3-none-any.whl (7.7 kB)
Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Using cached wrapt-1.16.0-cp311-cp311-win_amd64.whl (37 kB)
Using cached packaging-24.1-py3-none-any.whl (53 kB)
Downloading certifi-2024.8.30-py3-none-any.whl (167 kB)
---------------------------------------- 167.3/167.3 kB 5.1 MB/s eta
0:00:00
Using cached charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl (99 kB)
Using cached idna-3.8-py3-none-any.whl (66 kB)
Using cached Markdown-3.7-py3-none-any.whl (106 kB)
Using cached tensorboard_data_server-0.7.2-py3-none-any.whl (2.4 kB)
Using cached urllib3-2.2.2-py3-none-any.whl (121 kB)
Using cached werkzeug-3.0.4-py3-none-any.whl (227 kB)
Using cached wheel-0.44.0-py3-none-any.whl (67 kB)
Using cached namex-0.0.8-py3-none-any.whl (5.8 kB)
Using cached optree-0.12.1-cp311-cp311-win_amd64.whl (268 kB)
Downloading rich-13.8.1-py3-none-any.whl (241 kB)
---------------------------------------- 241.6/241.6 kB 14.5 MB/s eta
0:00:00
Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
Using cached MarkupSafe-2.1.5-cp311-cp311-win_amd64.whl (17 kB)
Using cached pygments-2.18.0-py3-none-any.whl (1.2 MB)
Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Installing collected packages: namex, libclang, flatbuffers, wrapt, wheel,
urllib3, typing-extensions, termcolor, tensorflow-io-gcs-filesystem,
tensorboard-data-server, six, pygments, protobuf, packaging, numpy, mdurl,
MarkupSafe, markdown, idna, grpcio, gast, charset-normalizer, certifi,
absl-py, werkzeug, requests, optree, opt-einsum, ml-dtypes, markdown-it-py,
h5py, google-pasta, astunparse, tensorboard, rich, keras, tensorflow-intel,
tensorflow
Successfully installed MarkupSafe-2.1.5 absl-py-2.1.0 astunparse-1.6.3
certifi-2024.8.30 charset-normalizer-3.3.2 flatbuffers-24.3.25 gast-0.6.0
google-pasta-0.2.0 grpcio-1.66.1 h5py-3.11.0 idna-3.8 keras-3.5.0
libclang-18.1.1 markdown-3.7 markdown-it-py-3.0.0 mdurl-0.1.2
ml-dtypes-0.4.0 namex-0.0.8 numpy-1.26.4 opt-einsum-3.3.0 optree-0.12.1
packaging-24.1 protobuf-4.25.4 pygments-2.18.0 requests-2.32.3 rich-13.8.1
six-1.16.0 tensorboard-2.17.1 tensorboard-data-server-0.7.2
tensorflow-2.17.0 tensorflow-intel-2.17.0
tensorflow-io-gcs-filesystem-0.31.0 termcolor-2.4.0
typing-extensions-4.12.2 urllib3-2.2.2 werkzeug-3.0.4 wheel-0.44.0
wrapt-1.16.0
[notice] A new release of pip is available: 24.0 -> 24.2
[notice] To update, run: python.exe -m pip install --upgrade pip
(tensor_env) PS D:\projetos\python> python
Python 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import tensorflow as tf
Traceback (most recent call last):
File
"D:\projetos\python\tensor_env\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py",
line 70, 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.

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File
"D:\projetos\python\tensor_env\Lib\site-packages\tensorflow_init_.py",
line 38, in
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
pylint: disable=unused-import
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File
"D:\projetos\python\tensor_env\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py",
line 85, in
raise ImportError(
ImportError: Traceback (most recent call last):
File
"D:\projetos\python\tensor_env\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py",
line 70, 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.

On Wed, Sep 11, 2024 at 7:57 PM mraunak @.***> wrote:

I see, pls try to activate the virtual env, I see you have already created
a virtual env
create virtual env: python/python.exe -m venv tensor_env
activate virtual env: tensor_env/scripts/activate
The list of packages installed via pip seems the same in both cases
(venv311_t) D:\user\mraunak>pip list
Package Version
absl-py 2.1.0
astunparse 1.6.3
certifi 2024.8.30
charset-normalizer 3.3.2
flatbuffers 24.3.25
gast 0.6.0
google-pasta 0.2.0
grpcio 1.66.1
h5py 3.11.0
idna 3.8
keras 3.5.0
libclang 18.1.1
Markdown 3.7
markdown-it-py 3.0.0
MarkupSafe 2.1.5
mdurl 0.1.2
ml-dtypes 0.4.0
namex 0.0.8
numpy 1.26.4
opt-einsum 3.3.0
optree 0.12.1
packaging 24.1
pip 24.0
protobuf 4.25.4
Pygments 2.18.0
requests 2.32.3
rich 13.8.1
setuptools 65.5.0
six 1.16.0
tensorboard 2.17.1
tensorboard-data-server 0.7.2
tensorflow 2.17.0
tensorflow-intel 2.17.0
tensorflow-io-gcs-filesystem 0.31.0
termcolor 2.4.0
typing_extensions 4.12.2
urllib3 2.2.2
Werkzeug 3.0.4
wheel 0.44.0
wrapt 1.16.0
—
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/74725#issuecomment-2344850141,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADSP7K4OJEQ6LWVMOV5DJSTZWDDE7AVCNFSM6AAAAABNJDCR6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBUHA2TAMJUGE
.
You are receiving this because you were mentioned.Message ID:
@.***>

@learning-to-play

Thank you syoshio. Please try using a different Python version, such as 3.12 or 3.10, and let us know if the issue persists. I tested this on a different Windows machine with Python 3.11.9, but the import was successful on my end


Does not apply to the gitter.im (part of github)

Probably a feature request I love this theme but it does not seem to apply to the gitter.im github chat section and would be very consistent if it carried onto that section of the site as well.

Gitter is a third party website and in no way affiliated with Github but you can check out dark userstyles for gitter.im

Ahh then I apologize it's so integrated into every git page these days I literally thought that it was a part of Github!


Android?

Thanks for this library. :)
Just wondering, do you know if Android has similar functionality?

Please do some research yourself. Google knows more than I do.


methods: [.local] not return url include video and audio

I am having a problem when using the local method, the returned result does not have any url containing both video and audio, but the remote method does, but its returned result takes too much time, from 8 -> 10 seconds or even longer, how to optimize this?

It doesn't work in my Test Project Too...!🥲🥲
This is the example video link which couldn't be extracted.
https://youtu.be/ZC0UPvURF9s?si=b_5EbKff0FwvL3H7

@yoondj98 Currently I am using ytdl to make a server that can get url from youtobe, it takes about 4s for 1 video, you can make your own server, and get meta data like a normal url request. This is my current solution

YouTube is slowly removing the video-audio combinations over time, unfortunately. It depends a bit on the location you are accessing it from, but for example, in my location, almost no video has video-audio streams anymore - neither local nor remote. So, don't rely too much on remote methods being able to get you the stream you want. (And BTW, I'm working on making it faster - it's just a lot of people using it currently, haha.)
@hoangnam714 The problem with your solution is that most often, getting an URL from a different IP than you are playing it from can lead to it being blocked. And also, ytdl has the same problem, that video-audio streams are getting way more rare.
So I'm working on a solution that combines the best video stream with the best audio stream live during playback. If you are interested, check out the branch feature/player-item. Unfortunately, it's still super slow until loaded due to how Apple handles this stream composition. You can check out sample code from here: https://github.com/alexeichhorn/YouTubeKit/issues/54#issuecomment-2493452116

@alexeichhorn
Then how about my case?
I need to get only the 'Audio' of Youtube media.
So, I am getting whole AudioOnly file from your URL.
However, I have encountered the same issue as @hoangnam714 .
Some kinds of Youtube Media's Audio(m4a) couldn't be downloaded.
(like https://youtu.be/ZC0UPvURF9s?si=b_5EbKff0FwvL3H7)
Will finding a solution for this also be quite difficult?

@alexeichhorn I got the idea from #54 (comment) but it's really slow. It takes almost 10s to get the only video and only audio links, and then another while to merge them together to play.
Before when i used your library, it only took 3s to get the only audio or only video urls, now i can't get any urls


[data-plane] refresh confidential-ledger-rest sdk

https://github.com/Azure/azure-sdk-for-js/issues/30680

API change check
APIView has identified API level changes in this PR and created following API reviews.
@azure-rest/confidential-ledger

close as need use latest main to refresh


[backport] Pipeline executors don't start causing job execution to fail - 403

Backport https://github.com/rancher/rancher/issues/22459

rancher/rancher:v2.2-head ec468dea

Reproduced in v2.2.8 (k8s 1.15.3, pipeline-jenkins-server 0.1.0)
Deployed v2.2-head
Created a cluster (k8s 1.15.3)
Enable pipeline
Pipeline executes successfully
pipeline-jenkins-server version is 0.1.4


Parallel mod ticking

Currently, mods are ticked in series. It should be relatively trivial to tick them in parallel.
See Query::par_for_each

This is blocked until Bevy releases 0.10
par_for_each isn't an iterator, so collecting the results of the ticks is more annoying than it's worth

The parallel iterator isn't an iterator. I will need to make a PR on Bevy to enable this feature.


Inpaint Masked content - fill option missing?

Sorry if I missing something in UI, but I dont see this option/alternative. Or I dont understand how it works if it exist.
Is your feature request related to a problem? Please describe.
Current SD Pluding dont have

this option, from Inpaint WebUI interface
current SD interface has only 4 options, with no "fill"

I renamed the fill option to blur as I thought that was a clearer description of what it did based on this picture from AUTO's wiki:


Minimize the menu make it unresizeable

Dear developers,
I tried your software, and resized the menu bar on the left side.  I pulled it maximum to the left side and it is still there, with no option to pull it back.
Restart not help, but at least i found the save options on the far corner, behind the menu bar.
Expected outcome
Minimum menu bar, with options to change size back to normal.
Actual outcome
No option to resize after minimized the menu bar.
Versions
App: 10.0.12
Platform: 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36
Steps to reproduce

Grab menu bar resizer line.
Pull it to the far left.
Release the resizer line.

Hi,
This is fixed in desktop client. If you can, please, install desktop client from https://install.advancedrestclient.com/install
Note, you will have to move your data from Chrome application to desktop client manually using import/export options in settings.
I can't currently update Chrome application as this will cause all user won't be able to install it on other than Chromebook devices.


Issue with ffmpeg missing

Attempting a simple script to generate a voice and receiving the error below. Using pyCharm on MacOS for reference.
from elevenlabs import set_api_key

set_api_key("abc123")

audio = generate(
  text="Hi! My name is Ben, nice to meet you!",
  voice="myvoiceid",
  model="eleven_monolingual_v1"
)

play(audio)```

###error
```/Users/bensullins/PycharmProjects/gptLearn/venv/bin/python /Users/bensullins/PycharmProjects/gptLearn/makeVoice.py
Traceback (most recent call last):
  File "/Users/bensullins/PycharmProjects/gptLearn/makeVoice.py", line 12, in <module>
    play(audio)
  File "/Users/bensullins/PycharmProjects/gptLearn/venv/lib/python3.10/site-packages/elevenlabs/utils.py", line 24, in play
    raise ValueError("ffplay from ffmpeg not found, necessary to play audio.")
ValueError: ffplay from ffmpeg not found, necessary to play audio.```

Did you install ffmpeg? It's necessary to play audio.

I did pip install ffmpeg but apparently that wasn't it! the Brew command worked, thanks!

Did you install ffmpeg? It's necessary to play audio. brew install ffmpeg

I'm working on windows with pycharm, and I believe I've managed to install brew, but I still cannot run the command in the pycharm terminal. Do you know how I could get this to work?


Add a LICENSE file

Hey, I'm working on some documentation and I really love the way you've done the navigation with the sidebar on vuejs.org. I also really love the fact that you're using native APIs rather than jquery. Would you mind if I based the navigation I'm building off of yours? Although it would look different and probably work a bit differently too.

Feel free to do so!

Thank you! :)


Possible to retry gapi.load() after network error?

Hello,
I use gapi in an application that is typically used in poor/unreliable network conditions. As a rule, all network requests from the client side are made with substantial retry logic to help mitigate failed requests. However, I can't seem to get retries to work properly for the gapi.load() method: if I call it again after a network failure, the actual network request is not retried.
For a reduction, please see this codepen, and try the following:

In the Chrome developer tools, in the Request Blocking tab, add a block for the pattern gapi.loaded. This will block the requests made by gapi.load()
Reload the page (or load the debug view) with the console and network log open in developer tools
Observe that, while the setupGapi() method is called once per second, the actual network requests are not repeated
With the page still open, disable request blocking
Observe that, even with fully operational network conditions, the call to gapi.load() does not succeed

So, my question is: is it possible to effectively retry gapi.load() in this scenario? I imagine gapi has some sort of internal state that is set before making the network request, that is not cleared on failure, but I don't see anything documented for the public API of the SDK.
Thanks in advance!

Unfortunately, I haven't found any solution to this problem besides prompting the user to refresh the page if they get into a bad state with gapi.load.  Just curious if anyone else has found any better work arounds for this?

Quick follow up.
Using this to cleanup gapi is working for me
function clearGapi() {
    window.___jsl = undefined;
    window.gapi = undefined;
    window.__gapi_jstiming__ = undefined;
    window.gadgets = undefined;
}

Considering this is messing with some private internal objects of gapi, I can't be sure this will always work.. But since the current state is completely broken for the user I don't think it can hurt, and everything I set to undefined gets redefined once gapi is fully loaded.

Nice, thanks!


Initial release tag

Hello, can you please add tag for some initial release. I want to package eks-node-viewer for nixpkgs: https://github.com/NixOS/nixpkgs/pull/210510. Thanks.

Sounds good, I'll tag it.


renovate js lib

Current dependencies on/for this PR:

main

PR #2   👈

This comment was auto-generated by Graphite.


Update core.js

Without trim() method, in methods: required method, input accepts string with whitespaces.

Discussion at https://github.com/jzaefferer/jquery-validation/issues/1573#issuecomment-138669860

As the initial change was intended, I dont see a way to land this.


--template=FOO broken in v1 on absolute paths

Feeding an absolute path to the --template flag seems to not work.
I've reproduced this with the jira create subcommand, but from a
cursory scan of the code, I think it should affect all commands that
can customize the template.
In particular, this is problematic because

the mktemp command returns an absolute path within $TMPDIR
the command1 <(command2) shell syntax opens up a temporary file at
/dev/fd/12345 to capture the subshell output from command2 and
put into a file for command1 to use.

So it's somewhat annoying to use temporary template files right now
(the temp file has to be in the same directory that you exec the
jira command).
I do not see this behavior on v0, only on v1.
Steps to reproduce
[OK] Same directory
cd ~
touch ~/foo.yml
jira create -p MYPROJECT --template=foo.yml

Expected: $EDITOR should open with our (empty) template
Actual: $EDITOR opens (this case is working fine!)

[BAD] Relative path
cd ~
mkdir ~/my-folder
touch ~/my-folder/foo.yml
jira create -p MYPROJECT --template=my-folder/foo.yml

Expected: $EDITOR should open with our (empty) template

Actual: Fatal error:
ERROR Invalid Usage: open /var/folders/b0/43zg3s114tb1rcdfflfftg7m0000gn/T/my-folder/foo.yml987543717: no such file or directory

[BAD] Absolute path
cd ~
touch ~/foo.yml
# Your shell will expand $HOME to an absolute path before exec'ing the command
jira create -p MYPROJECT --template=$HOME/foo.yml

Expected: $EDITOR should open with our (empty) template

Actual: Fatal error:
ERROR Invalid Usage: open /var/folders/b0/43zg3s114tb1rcdfflfftg7m0000gn/T/Users/jez/foo.yml987543717: no such file or directory

Hey, thanks for the error report, I was able to reproduce, fixing now.

released: https://github.com/Netflix-Skunkworks/go-jira/releases/tag/v1.0.17

Just tried it out, and it works great now!
Thanks for the fast turnaround 🙂


Instruction pipeline

Decodes a number of instructions and stores in a dictionary indexed based on the address. If the IP points to an address not in the dictionary, the dictionary is flushed and rebuilt starting at the new IP. Alternatively, we could fault.
Controlled by a flag register so programs that self modify can disable the pipeline since checking for a dirty cache is expensive in the context of an instruction.

Done.


Failing pydantic validation on request_dict

When running the httpx crawler on v0.3.7
My request_dict
'{"url": "XXXXXX", "unique_key": "YYYYY", "method": "GET", "headers": {}, "query_params": {}, "data": {}, "user_data": {"__crawlee": {"state": "RequestState.ERROR_HANDLER"}}, "retry_count": 1, "no_retry": false, "id": "doOfa0tGsjBwT90"}'
create the exception below when running Request.model_validate(request_dict)
user_data.__crawlee.state
  Input should be 0, 1, 2, 3, 4, 5, 6 or 7 [type=enum, input_value='RequestState.ERROR_HANDLER', input_type=str]
    For further information visit https://errors.pydantic.dev/2.9/v/enum

Hello and thank you for your interest in Crawlee! Where does that request_dict come from? The state property is suspicious.

Hello - the request_dict comes from a deserialised request from my crawlee storage. There is a bug in Crawlee enum serialisation/deserialisation through Pydantic (I am using v2.9.2, compatible with crawlee pyproject constraints)
I have modifed test_complex_user_data_serialization to highlight the issue: https://github.com/cadlagtrader/crawlee-python/blob/bug_with_pydantic/tests/unit/storages/test_request_queue.py


[postgres]: Support legacy binds

Fixes:

rails52:test/cases/adapter_test.rb#test_insert_update_delete_with_legacy

So...the NPE fix I'm still OK with, but..
Turns out sqlite3 has the same problem with legacy binds. So I wonder if the legacy binds
check should go to the generic code in ArJdbc::Abstract::DatabaseStatements?
Comments?

its broken - likely for all in 5.x ... recall I tried to fix it but than it ended up being reverted.
its likely tricky to get right - would need to dig up history to recall context/details on what went on ...

Interesting...I'll do some digging to find out why it was problematic
(I just tried it in the generic code and it's simple enough...3 lines...but..)

believe I also wanted it to do less garbage - ideally not to render aby binds if SQL debug isn't enabled

@dr-itz @kares so in 5.2 they realized they need to support legacy and re-added a test for it?  I don't see any legacy tests in 5.1.6 tests.

I think it works in AR 5.0 and 5.1 (but lacking tests), the breakage was during 5.2 development. My proposed fix is here: #911

so with https://github.com/jruby/activerecord-jdbc-adapter/pull/911 this (postgres specific piece) is no longer needed, right?

Yes...closing this for #911


Build error

/react-native-advanced-webview/ios/RNAdvancedWebView.h:1:9: fatal error: 'React/RCTWebView.h' file not found
#import <React/RCTWebView.h>

Upgrade react native to 0.40 resolve it.


validation: add env validation for hooks

Signed-off-by: Ma Shimiao<EMAIL_ADDRESS>

Two minor nits (I left inline comments), but otherwise 62ab8b7f looks
reasonable to me.

LGTM


Add note about Sord to docs

Motivation
"Community" page is not indexable and is not a part of the documentation, thus making it harder to find the information about this tool (example).
By adding a note about it to the main RBI doc page we make it easier to answer the question "How to use the existing YARD annotations to generate RBIs?".

I'd welcome a change that makes it so that the community page shows up in the index results.

Sounds like a better option, but as far as I understand, we have to put community page under the docs/ path to make DocSearch index it. Or, maybe, it's possible to configure it to take into account additional paths—don't know, I obviously do not have an access to Algolia console.

Pretty much every project under the Projects section in the community doc is related to RBIs right now (sorbet-typed, sorbet-rails, and Sord are all for generating or sharing RBIs).

Yep, sorbet-rails should be definitely indexed as well.
As far as I can see, that's the most popular question so far: "How can I use Sorbet with all that Active Record metaprogramming?" But in that case a dedicated page, say, "Using with Rails" would be more valuable—most of the users will be looking for it, and currently "rails" query doesn't return results in docs. Maybe, it could be an optional step in the "Adopting Sorbet" section.

If searching for the term "Sord" is what you're looking for

Nope. When I'm looking for YARD integration, I have no idea about "Sord" ) I'm looking for "yard".

As far as I can see, that's the most popular question so far: "How can I use Sorbet with all that Active Record metaprogramming?" But in that case a dedicated page, say, "Using with Rails" would be more valuable—most of the users will be looking for it, and currently "rails" query doesn't return results in docs. Maybe, it could be an optional step in the "Adopting Sorbet" section.

Yes, this was the first thing I tried to look for when adopting Sorbet to my Rails app. I think it's a great idea to have a section about Rails in the documentation. Maybe we can have a section on "working with existing frameworks". I think Yard (sord) would fit there as well.

@jez sorry I mis-clicked. You can re-request changes from the author (I don't see a way for me to do that on your behalf).

@palkan if that's the case, what do you think about asking and answering those question in faq.md? Then it would show up on the FAQ page and we could keep the scope of things in rbi.md small.

Does Sorbet support ActiveRecord (and Rails?)
Can I convert from YARD docs to Sorbet signatures?


[BUG] Connect-PnPOnline with App Id and CertificateBase64Encoded failing with PnP.PowerShell 1.11.0

Reporting an Issue or Missing Feature
When connecting to SharePoint using an Azure AppId and Certificate using the Certificatebase64Encoded, it fails to obtain connection.
This was working without issue in PnP.PowerShell 1.10.0
Expected behavior
When connecting with Azure AppId and Certificate using the Certificatebase64Encoded it connects, and obtain context.
Actual behavior
When using a clientId and Certificatebase64Encoded value.
PS C:\Code> $tenantName = "<tenantName>"
PS C:\Code> $clientId = "<clientId>"
PS C:\Code> $cert64String = "<MIIKUAIBAzCCCgwGCSqGSIb3DQEHAaCC.........>"
PS C:\Code> $sharePointAdminConnection = Connect-PnPOnline `
 -Url:"https://$tenantName-admin.sharepoint.com" `
 -Tenant:"$tenantName.onmicrosoft.com" `
 -ClientId: $clientId `
 -CertificateBase64Encoded:$cert64String `
 -ReturnConnection
VERBOSE: PnP PowerShell Cmdlets (1.11.0)
PS C:\Code> Get-PnPConnection
Get-PnPConnection: The current connection holds no SharePoint context. Please use one of the Connect-PnPOnline commands which uses the -Url argument to connect.
PS C:\Code> Get-PnpWeb
Get-PnPWeb: The current connection holds no SharePoint context. Please use one of the Connect-PnPOnline commands which uses the -Url argument to connect.
PS C:\Code> Get-PnpContext
Get-PnPContext: The current connection holds no SharePoint context. Please use one of the Connect-PnPOnline commands which uses the -Url argument to connect.

Please note Using PnPManagementShell works with no issue.
$tenantName = "<PutTenantName>"
Connect-PnpOnline -Url:https://$tenantName-admin.sharepoint.com -PnPManagementShell
WARNING:

To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code XXXXXXXXX to authenticate.

VERBOSE: PnP PowerShell Cmdlets (1.11.0)
PS C:\Code> Get-PnpConnection

ConnectionType                         : O365
InitializationType                     : Unknown
Scopes                                 :
PSCredential                           :
ClientId                               : 31359c7f-bd7e-475c-86db-fdb8c937548e
ClientSecret                           :
ApplicationInsights                    : PnP.PowerShell.ALC.ApplicationInsights
Url                                    : https://$tenant-admin.sharepoint.com/
TenantAdminUrl                         :
Certificate                            :
DeleteCertificateFromCacheOnDisconnect : False
Context                                : PnP.Framework.PnPClientContext
Tenant                                 :
AzureEnvironment                       : Production

PS C:\Code> Get-PnpWeb

Title                 ServerRelativeUrl Id
-----                 ----------------- --
Tenant Administration /                 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

PS C:\Code> Get-PnpContext

RetryCount                : 10
Delay                     : 500
PropertyBag               : {}
Web                       : Microsoft.SharePoint.Client.Web
Site                      : Microsoft.SharePoint.Client.Site
RequestResources          : Microsoft.SharePoint.Client.RequestResources
ServerVersion             : 16.0.22615.12004
Url                       : https://$tenant-admin.sharepoint.com/
ApplicationName           : .NET Library
ClientTag                 : PnPPS:1.11:Get-PnPWeb
DisableReturnValueCache   : True
ValidateOnClient          : True
Credentials               :
WebRequestExecutorFactory : Microsoft.SharePoint.Client.DefaultWebRequestExecutorFactory
PendingRequest            : Microsoft.SharePoint.Client.ClientRequest
HasPendingRequest         : True
Tag                       :
RequestTimeout            : 180000
StaticObjects             : {[SharePointPnP$Settings$ContextCloning, PnP.Framework.Utilities.Context.ClientContextSettings], [Microsoft$SharePoint$SPContext$Current,
                            Microsoft.SharePoint.Client.RequestContext]}
ServerSchemaVersion       : <IP_ADDRESS>
ServerLibraryVersion      : 16.0.22615.12004
RequestSchemaVersion      : <IP_ADDRESS>
TraceCorrelationId        : 3aca4ca0-d007-4000-4cfe-466b9ed3acb3

Steps to reproduce behavior
Please see above
What is the version of the Cmdlet module you are running?
ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Manifest   1.11.0                PnP.PowerShell                      Core,Desk {Add-PnPAdaptiveScopeProperty, Add-PnPPropertyBagValue, Add-PnPSiteClassification, Copy-PnPFolder…}

Which operating system/environment are you running PnP PowerShell on?

[X] Windows
[ ] Linux
[ ] MacOS
[ ] Azure Cloud Shell
[ ] Azure Functions
[X] Other : Azure DevOps Pipeline - ubuntu-latest

I am experiencing a similar problem with the v1.11.0 library failing to acquire a connection. In my case, my script is signing in with a user/password credential:
$spPw = ConvertTo-SecureString $env:SP_PW -Asplaintext -Force
$spCredential = New-Object System.Management.Automation.PSCredential ($env:SP_USER,$spPw)
$spConnection = Connect-PnPOnline -Url $SiteUrl -Credentials $Credential -ReturnConnection -WarningAction Ignore

Using $spConnection in any other cmdlets (such as Set-PnpListItem) returns an error similar to the one in the OP: The current connection holds no SharePoint context. Please use one of the Connect-PnPOnline commands which uses the -Url argument to connect. This occurs on both my local machine (win 10) and our agent machines (win server 2016).
I have adjusted our pipeline to only use PnP.PowerShell v1.10.0 and it's working fine now. I guess this is on us for not locking to a particular version, but at the same time I don't expect breaking changes in a minor release version bump.

This has indeed changed in the latest release. There was a bug in the Connect-PnPOnline code that would change the current context even when you were using -ReturnConnection, which it should not be doing. For your scenario, simply remove the -ReturnConnection from your Connect-PnPOnline and you should be good.
The idea here is that you only return the connection if you want to assign it to a variable to keep it as a second, third, fourth, etc... connection to use in your script. In this scenario you would need to provide -Connection $var with every cmdlet you execute to instruct it to use explicitly that connection. This could be useful if you work with different permissions or authentication types. If you don't intend to do any of this and just want one connection, do not provide -ReturnConnection. It will then set the connection on the default connection and none of your PnP PowerShell cmdlets will need to have -Connection $var provided.

@KoenZomers I require the ReturnConnection to use later.

In that case you will have to provide -Connection with every cmdlet. You cannot and should not mix the current context with a specific context. Its either or.

I thought the purpose of it was to hold it in a variable, then use Set-PnPContext to switch, or pass it in -Connection. What you are saying, is as soon as you use the -ReturnConnection every command after that needs to have -Connection until you disconnect and reconnect without -ReturnConnection?

That's correct. I realize it is a big change to how things used to work, but if you think about it, it makes way more sense this way. You can now really nicely keep things separated and work with as many different connections, authentication types and permissions as you wish. You simply pass in the proper connection variable. That's why we have expanded the -Connection parameter to nearly all cmdlets now, to support this. If you don't want any of this, which will account for 90% of the scenarios, you simply connect and work with the default context and will not have to pass in any connection anywhere.

Trying to understand this breaking change.
Old Behaviour

Connect-PnPOnline connects to a SharePoint Site Collection.
If the -ReturnConnection parameter is false sets the default context to the Site Collection Connected to.
If the -ReturnConnection parameter is true sets the default context to the Site Collection Connected to and it returns a connection object which has a context object as a property.

Old Behaviour

Connect-PnPOnline connects to a SharePoint Site Collection.
If the -ReturnConnection parameter is false sets the default context to the Site Collection Connected to.
If the -ReturnConnection parameter is true does not set the default context to the Site Collection Connected to but does returns a connection object which has a context object as a property.

Would it not be better to retain the previous behaviour for backwards compatibility and introduce either a new set of parameters for the new behaviour or a new set of commands?

New-PnPConnection, returns a new PnP Connection
Get-PnPConnection, returns the default PnP Connection
Set-PnPConnection, sets the default PnP Connection

As it is this change breaks nearly all of our scripts.

I understand your concerns, Steven. It was one in a grey area for us. We try to support backwards compatibility as much as possible but your scenario is actually a perfect example why we decided to classify this as a bug and fix it already. As you mention you found out that you didn't supply a specific connection with all of the cmdlets. So they were relying on the last connection you made, regardless if it was using ReturnConnection or not. Especially in larger scripts, especially after a while, especially if someone is tasked with modifying the script that didn't initially make it, this can very easily lead to errors. Think about adding a seemingly innocent section in the middle of the script connecting to some central site collection and updating a list item with a status. It could or would impact all the cmdlets later on in the script in the old situation. Now it has become a much more conscious action on which connection you execute something.
It really should never have been released like how it used to work. Version 2 was too far away and would entail too many other changes which made us decide not to be able to wait for it with this.

Understood, Steven. We'll extra take it into consideration with future changes. All there's left for me to add here is that I personally would never recommend anyone to follow that practice with regards to versioning, even though you're right, within the NodeJS landscape, it is more common to do it that way. We've seen enough situations where this also goes haywire in that landscape and why they have added locking down to exact specific versions for the entire dependency tree instead. Given that PnP PowerShell is huge (650+ cmdlets) and we're with a very small team of enthusiasts working on these cmdlets, we can never ever fully test every change or addition we do. Things may work in this version and unintentionally break in a next. If you build and test a script against a certain version, use it against that exact version would be my recommendation. Don't try to fix it if it isn't broken. Don't automatically update to a later version, whether it being a minor or patch build only. Just my take on it.

Noticed this is still open - from my perspective it can be closed. Seems like all the concerns/questions in the OP have been addressed as well.


don't expose all the borrow tracker stuff to the entire crate

@bors r+

:pushpin: Commit 0a885b6b7aed5e73cc9519048ee15d203e95f4ec has been approved by RalfJung
It is now in the queue for this repository.

:hourglass: Testing commit 0a885b6b7aed5e73cc9519048ee15d203e95f4ec with merge 4c651871165f6c534108dab77f491863c5febf2e...

:sunny: Test successful - checks-actions
Approved by: RalfJung
Pushing 4c651871165f6c534108dab77f491863c5febf2e to master...


How do i make this work on _gui_input()?

It works in _input(). But is there a way to have it work in _gui_input?

The change in #42 this should allow you to use _gui_input.
Please test it and let me know if:

You were able to use _gui_input.
You notice any strange/unexpected behavior.

Seems like change in https://github.com/Federico-Ciuffardi/GodotTouchInputManager/pull/42 doesnt work :(

I tried Ignore and pass MouseFilter in Control

With this change, I was also not able to use _gui_input but gestures are received in _input.
In my project, I have a tree with multiple Control nodes. Grandparent > Parent > Control. Previously I had to set the MouseFilter on all of the ancestors to receive events in a particular node.
I don't need to set the MouseFilter property on the ancestors of the Control node now, the Control is getting gestures from this library.
In addition, _gui_input is also receiving Godot's InputEventScreenTouch events.


Fix figure label in Elasticsearch guidance

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/elasticsearch/images/general-cluster1.png
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Remove Yarn lockfile from commits

This will allow you to have a local Yarn lockfile (for speed reasons) but prevent it from being committed.

Committing it is important when switching branches and running yarn

The yarn.lock is currently needed to avoid conflicts in resolution (see CI)


Update pybind11 for inclusive terminology

Signed-off-by: Mike Essenmacher<EMAIL_ADDRESS>Update pybind11 to 2.10.3 with inclusive terminology changes.

Jenkins Linux s390x Build #9658 [push] Update pybind11 for incl... started at 11:44

Jenkins Linux amd64 Build #9639 [push] Update pybind11 for incl... started at 10:44

Jenkins Linux amd64 Build #9639 [push] Update pybind11 for incl... passed after 1 hr 45 min

Jenkins Linux ppc64le Build #8704 [push] Update pybind11 for incl... aborted after 3 hr 3 min


implement not for generic matchers

Pull Request Test Coverage Report for Build 101

26 of 41 (63.41%)  changed or added relevant lines in 6 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-1.004%) to 86.034%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/main/java/uk/co/openkappa/bitrules/masks/HugeMask.java
0
3
0.0%

src/main/java/uk/co/openkappa/bitrules/masks/SmallMask.java
0
3
0.0%

src/main/java/uk/co/openkappa/bitrules/matchers/GenericMatcher.java
23
32
71.88%

Totals

Change from base Build 100:
-1.004%

Covered Lines:
770

Relevant Lines:
895

💛  - Coveralls