Error importing tensorflow on windows 10 ( Tensorflow 0.12.0 RC0, python3.5 )

Was excited to try out 0.12.0 RC0 for windows
Followed Tensorflow 0.12.0 RC0 Installation guide for Windows, on Windows 10.
Ran into following error.
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.

import tensorflow
Traceback (most recent call last):
File "C:\Users\hp\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\hp\AppData\Local\Programs\Python\Python35\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 666, in _load_unlocked
File "", line 577, in module_from_spec
File "", line 906, in create_module
File "", line 222, in _call_with_frames_removed
ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\hp\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python_init_.py", line 54, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\hp\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 21, in
_pywrap_tensorflow = swig_import_helper()
File "C:\Users\hp\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 20, in swig_import_helper
return importlib.import_module('pywrap_tensorflow')
File "C:\Users\hp\AppData\Local\Programs\Python\Python35\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in
import tensorflow
File "C:\Users\hp\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow_init_.py", line 24, in
from tensorflow.python import *
File "C:\Users\hp\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python_init_.py", line 60, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\hp\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\hp\AppData\Local\Programs\Python\Python35\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 666, in _load_unlocked
File "", line 577, in module_from_spec
File "", line 906, in create_module
File "", line 222, in _call_with_frames_removed
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\hp\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python_init_.py", line 54, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\hp\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 21, in
_pywrap_tensorflow = swig_import_helper()
File "C:\Users\hp\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 20, in swig_import_helper
return importlib.import_module('pywrap_tensorflow')
File "C:\Users\hp\AppData\Local\Programs\Python\Python35\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow'
Error importing tensorflow.  Unless you are using bazel,
you should not try to import tensorflow from its source directory;
please exit the tensorflow source tree, and relaunch your python interpreter
from there.

I'm sorry that it didn't work out of the box. Can you answer a couple of questions for me?

How did you install TensorFlow? Did you use pip install tensorflow or pip install https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl (or some other command)?

Can you run the following command and reply with its complete output?

dir C:\Users\hp\AppData\Local\Programs\Python\Python35\Lib\site-packages\tensorflow\python\_pywrap_tensorflow.pyd

I used https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl as mentioned at https://www.tensorflow.org/versions/r0.12/get_started/os_setup.html#pip-installation-on-windows

Here's the complete output:

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
C:\Users\hp>dir C:\Users\hp\AppData\Local\Programs\Python\Python35\Lib\site-packages\tensorflow\python_pywrap_tensorflow.pyd
Volume in drive C is Windows
Volume Serial Number is 903A-70A1
Directory of C:\Users\hp\AppData\Local\Programs\Python\Python35\Lib\site-packages\tensorflow\python
11/30/2016  01:21 AM        31,525,376 _pywrap_tensorflow.pyd
1 File(s)     31,525,376 bytes
0 Dir(s)  96,176,766,976 bytes free

It sounds like it has installed correctly, but one of the dependencies is missing. According to dumpbin, the extension has the following dependencies:

KERNEL32.dll
WSOCK32.dll
WS2_32.dll
SHLWAPI.dll
python35.dll
MSVCP140.dll
VCRUNTIME140.dll
api-ms-win-crt-runtime-l1-1-0.dll
api-ms-win-crt-heap-l1-1-0.dll
api-ms-win-crt-utility-l1-1-0.dll
api-ms-win-crt-stdio-l1-1-0.dll
api-ms-win-crt-string-l1-1-0.dll
api-ms-win-crt-math-l1-1-0.dll
api-ms-win-crt-convert-l1-1-0.dll
api-ms-win-crt-environment-l1-1-0.dll
api-ms-win-crt-filesystem-l1-1-0.dll
api-ms-win-crt-time-l1-1-0.dll

Can you check that all of these files are on your system? It's possible that our development and test environment gets one of these from the build tools, and they aren't available as standard.

We've just been able to reproduce the same error, and it was caused by a missing MSVCP140.dll. (Thanks @wolffg!) Installing the Microsoft Visual C++ 2015 Redistributable Update 3 (x64 version) should fix it. Can you please try that and let us know if it works?

@mrry , worked like a charm. Thank you very much for the effort.

@mrry 👍 Thanks very much!

Thanks~~

@mrry , thank you.
your advise(installing Microsoft Visual C++ 2015 Redistributable Update 3 (x64 version) ) also work for native pip3 install tensorflow 1.0.1 on windows10.

Thanks alot

Thanks bro

@mrry Sorry to bring this up again, I have the same issue as poster. I have been debugging this for several days but no luck. Any advice will be greatly appreciated!
I did lack all of the api-ms-win-crt-*.dll files and python35.dll specifically(I am running in a virtual env of python3.5 in anaconda). I downloaded all the dll files online and add it back to C:\Windows\SysWOW64 but the problem still persists.
I am using Python 3.5.3 |Continuum Analytics, Inc.| (default, Feb 22 2017, 21:28:42) [MSC v.1900 64 bit (AMD64)] on win32.
My Cuda version is 8.0 and the driver is in v6.0, I have added the cuDNN files to my PATH, which is C:\Users\rando\cudnn-8.0-windows10-x64-v6.0\cuda
My gpu is gtx-1080 and below is the error message:

import tensorflow as tf
Traceback (most recent call last):
File "C:\Users\rando\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\rando\Anaconda3\envs\tensorflow-gpu\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 666, in _load_unlocked
File "", line 577, in module_from_spec
File "", line 914, in create_module
File "", line 222, in _call_with_frames_removed
ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\rando\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\rando\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\rando\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
return importlib.import_module('pywrap_tensorflow_internal')
File "C:\Users\rando\Anaconda3\envs\tensorflow-gpu\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow_internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\rando\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow_init_.py", line 24, in
from tensorflow.python import *
File "C:\Users\rando\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python_init_.py", line 51, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\rando\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 52, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\rando\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\rando\Anaconda3\envs\tensorflow-gpu\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 666, in _load_unlocked
File "", line 577, in module_from_spec
File "", line 914, in create_module
File "", line 222, in _call_with_frames_removed
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\rando\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\rando\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\rando\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
return importlib.import_module('pywrap_tensorflow_internal')
File "C:\Users\rando\Anaconda3\envs\tensorflow-gpu\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow_internal'
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

@Carmezim Plz help, any advice will be greatly appreciated! Thanks a lot!

Same issue here, TensorFlow works with CPU but not with GPU (Nvidia) on Windows 10

@Randolph-zeng you shouldn't use cuDNN 6.0, according to TensorFlow requirements only 5.1 is supported on Windows.

@Carmezim @YuriWerewolf  Hi thanks for the answer, but I still can't get it to work.
I have the tensorflow cpu version working and I am pretty sure this is a problem of cuda now.
I have Cuda toolkit v8.0 and cuDNN v5.1 in my computer and I believe the path is correct.
Is there any other things I can look into? Thanks a million!
My path variable looks like this(with cuda related being the first several lines):
C:\Users\rando>path
PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin;
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\libnvvp;
C:\Users\rando\cudnn-8.0-windows10-x64-v5.1\cuda;
;C:\RBuildTools\3.4\bin;
C:\RBuildTools\3.4\mingw_64\bin;
D:\Rtools\bin;D:\Rtools\mingw_64\bin;
C:\Program Files (x86)\Intel\iCLS Client;
C:\Program Files\Intel\iCLS Client;
C:\Windows\system32;
C:\Windows;C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0;
C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;
C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;
C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;
C:\Users\rando.dnx\bin;
C:\Program Files\Microsoft DNX\Dnvm;
C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;
C:\Program Files\Microsoft SQL Server\120\Tools\Binn;
C:\Program Files\Microsoft SQL Server\130\Tools\Binn;
C:\Program Files\Git\cmd;C:\Program Files\CMake\bin;C:\Program Files (x86)\GtkSharp\2.12\bin;
C:\Users\rando\cuda;
C:\Users\rando\Anaconda3;
C:\Users\rando\Anaconda3\Scripts;
C:\Users\rando\Anaconda3\Library\bin;
C:\Users\rando\AppData\Local\Programs\Python\Python35-32\Scripts;
C:\Users\rando\AppData\Local\Programs\Python\Python35-32;
C:\Users\rando\AppData\Local\Microsoft\WindowsApps;
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0

@Randolph-zeng I cannot really tell only by looking at your %PATH%. If you're sure cuDNN DLLs are properly set as CUDA's it's not CUDA/cuDNN related.
Is your TensorFlow 1.1? You don't need both installations as well, CPU and GPU, I get if you were just testing though. Maybe it would be better if you opened a new issue filling the template to better assess what can be happening. This problem usually yields from misconfigured CUDA/cuDNN as you said CPU works.

@Carmezim Okay, I will open a new issue. Thanks for the help! Have a great night!

I'm having a similar problem. I tried rolling back to C++ Redist. 2015 (from 2017) and still not working.
`Traceback (most recent call last):
File "C:\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Python35\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 666, in _load_unlocked
File "", line 577, in module_from_spec
File "", line 914, in create_module
File "", line 222, in _call_with_frames_removed
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
return importlib.import_module('pywrap_tensorflow_internal')
File "C:\Python35\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow_internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\Python35\lib\site-packages\tensorflow_init_.py", line 24, in
from tensorflow.python import *
File "C:\Python35\lib\site-packages\tensorflow\python_init_.py", line 51, in
from tensorflow.python import pywrap_tensorflow
File "C:\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 52, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Python35\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 666, in _load_unlocked
File "", line 577, in module_from_spec
File "", line 914, in create_module
File "", line 222, in _call_with_frames_removed
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
return importlib.import_module('pywrap_tensorflow_internal')
File "C:\Python35\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow_internal'
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.`

I'm not sure if someone will look in here cause it's "closed". Anyway, i've the same issue. I installed TensorFlow-GPU:
1.) install anaconda 3.6
2.) conda install python==3.5
3.) pip install tensorflow-gpu
4.) Install CUDA 8.0
5.) Install cuDNN
I checked the import tensorflow as tf in my Jupiter Notebook and it worked.
The next day i did the same to follow first instructions with tensorflow
(Btw, i'm new to python, if someone has a good overview over all the packages and extensions as well as good tutorials... i'm more than pleased to here from you).
Anyway, i got the same error that @ianuzzi has. I followed the instructions above but without any change.
Thx for you help guys
Kay

ImportError                               Traceback (most recent call last)
C:\Users\RazZzoR\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in swig_import_helper()
17         try:
---> 18             return importlib.import_module(mname)
19         except ImportError:
C:\Users\RazZzoR\Anaconda3\lib\importlib_init_.py in import_module(name, package)
125             level += 1
--> 126     return _bootstrap._gcd_import(name[level:], package, level)
127
C:\Users\RazZzoR\Anaconda3\lib\importlib_bootstrap.py in _gcd_import(name, package, level)
C:\Users\RazZzoR\Anaconda3\lib\importlib_bootstrap.py in find_and_load(name, import)
C:\Users\RazZzoR\Anaconda3\lib\importlib_bootstrap.py in find_and_load_unlocked(name, import)
C:\Users\RazZzoR\Anaconda3\lib\importlib_bootstrap.py in _load_unlocked(spec)
C:\Users\RazZzoR\Anaconda3\lib\importlib_bootstrap.py in module_from_spec(spec)
C:\Users\RazZzoR\Anaconda3\lib\importlib_bootstrap_external.py in create_module(self, spec)
C:\Users\RazZzoR\Anaconda3\lib\importlib_bootstrap.py in _call_with_frames_removed(f, *args, **kwds)
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
During handling of the above exception, another exception occurred:
ImportError                               Traceback (most recent call last)
C:\Users\RazZzoR\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in ()
40     sys.setdlopenflags(_default_dlopen_flags | ctypes.RTLD_GLOBAL)
---> 41   from tensorflow.python.pywrap_tensorflow_internal import *
42   from tensorflow.python.pywrap_tensorflow_internal import version
C:\Users\RazZzoR\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in ()
20             return importlib.import_module('_pywrap_tensorflow_internal')
---> 21     _pywrap_tensorflow_internal = swig_import_helper()
22     del swig_import_helper
C:\Users\RazZzoR\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in swig_import_helper()
19         except ImportError:
---> 20             return importlib.import_module('_pywrap_tensorflow_internal')
21     _pywrap_tensorflow_internal = swig_import_helper()
C:\Users\RazZzoR\Anaconda3\lib\importlib_init_.py in import_module(name, package)
125             level += 1
--> 126     return _bootstrap._gcd_import(name[level:], package, level)
127
ImportError: No module named '_pywrap_tensorflow_internal'
During handling of the above exception, another exception occurred:
ImportError                               Traceback (most recent call last)
 in ()
----> 1 import tensorflow as tf
2
C:\Users\RazZzoR\Anaconda3\lib\site-packages\tensorflow_init_.py in ()
22
23 # pylint: disable=wildcard-import
---> 24 from tensorflow.python import *
25 # pylint: enable=wildcard-import
26
C:\Users\RazZzoR\Anaconda3\lib\site-packages\tensorflow\python_init_.py in ()
49 import numpy as np
50
---> 51 from tensorflow.python import pywrap_tensorflow
52
53 # Protocol buffers
C:\Users\RazZzoR\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in ()
50 for some common reasons and solutions.  Include the entire stack trace
51 above this error message when asking for help.""" % traceback.format_exc()
---> 52   raise ImportError(msg)
53
54 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long
ImportError: Traceback (most recent call last):
File "C:\Users\RazZzoR\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\RazZzoR\Anaconda3\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 666, in _load_unlocked
File "", line 577, in module_from_spec
File "", line 903, in create_module
File "", line 222, in _call_with_frames_removed
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\RazZzoR\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\RazZzoR\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\RazZzoR\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
return importlib.import_module('pywrap_tensorflow_internal')
File "C:\Users\RazZzoR\Anaconda3\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow_internal'
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

For users who find this issue when searching for the error message, I've created a script for diagnosing common TensorFlow on Windows installation issues. Please download the script from https://gist.github.com/mrry/ee5dbcfdd045fa48a27d56664411d41c and run python tensorflow_self_check.py. It will print suggestions for how to fix your installation. Let me know if you are still facing problems after running the script.

@mrry Thanks for your script! Worked for me.
My issue was that the PATH for cuDNN was set to "D:\TensorFlow\cudnn-8.0-windows10-x64-v5.1\cuda", but the correct PATH for it was "D:\TensorFlow\cudnn-8.0-windows10-x64-v5.1\cuda\bin".

@mrry thank you your script is very helpful, why don't you submit a pull request to add this script to the tensorflow library itself, so that it can be used as an install step?

@alphashuro I'm glad it helped! Eventually we'll want to integrate some of the heuristics in the script into the import process, but I wanted to get something out there ASAP to help people who were struggling with these problems :). (One slight issue with integrating it in the repository is that we'd like it to be usable for people who haven't managed to install the library correctly....)

@YuriWerewolf @Carmezim Thank you, I installed 6.0 and wondered why it didn't work, uninstalling 6.0 and installing 5.1 worked for me.
Thanks for the help, stay awesome 👍

@YuriWerewolf @Carmezim Thank you, I installed 6.0 and wondered why it didn't work, uninstalling 6.0 and installing 5.1 worked for me.

 I downloaded just CUDA 8 patch from the site and was wondering, why the error. Apparently, the patch does not care if you have CUDA 8 already installed, it just copied the dll and creates the intermediary directories, even looks like Cuda is installed in installed applications.

I ran the script tensorflow_self_check.py as mentioned above and the following output was generated:
C:\Users\prdas>activate tensorflow

**(tensorflow) C:\Users\prdas>python d:\Anaconda3\tensorflow_self_check.py**
ERROR: Failed to import the TensorFlow module.

- Python version is 3.5.

- TensorFlow is installed at: D:\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow

- **Could not load 'cudart64_80.dll'.** The GPU version of TensorFlow
  requires that this DLL be installed in a directory that is named in
  your %PATH% environment variable. Download and install CUDA 8.0 from
  this URL: https://developer.nvidia.com/cuda-toolkit

- **Could not load 'cudnn64_5.dll'**. The GPU version of TensorFlow
  requires that this DLL be installed in a directory that is named in
  your %PATH% environment variable. Note that installing cuDNN is a
  separate step from installing CUDA, and it is often found in a
  different directory from the CUDA DLLs. You may install the
  necessary DLL by downloading cuDNN 5.1 from this URL:
  https://developer.nvidia.com/cudnn
Traceback (most recent call last):
  File "d:\Anaconda3\tensorflow_self_check.py", line 138, in <module>
    main()
  File "d:\Anaconda3\tensorflow_self_check.py", line 109, in main
    if not cudnn5_found or not cudnn6_found:
UnboundLocalError: local variable 'cudnn5_found' referenced before assignment

(tensorflow) C:\Users\prdas>

I could not find a cudart64_80.dll file. However, I found the following files under "C:\ProgramData\NVIDIA GPU Computing Toolkit\v8.0\extras\visual_studio_integration\CudaProjectVsWizards\Templates\Projects\CUDA\CudaRuntime" folder:

 Directory of C:\ProgramData\NVIDIA GPU Computing Toolkit\v8.0\extras\visual_studio_integration\CudaProjectVsWizards\Templates\Projects\CUDA\CudaRuntime

CudaRuntime-VS10.0-Cuda8.0.vstemplate
CudaRuntime-VS10.0.filters
CudaRuntime-VS10.0.vcxproj
CudaRuntime-VS11.0-Cuda8.0.vstemplate
CudaRuntime-VS11.0.filters
CudaRuntime-VS11.0.vcxproj
CudaRuntime-VS12.0-Cuda8.0.vstemplate
CudaRuntime-VS12.0.filters
CudaRuntime-VS12.0.vcxproj
CudaRuntime-VS14.0-Cuda8.0.vstemplate
CudaRuntime-VS14.0.filters
CudaRuntime-VS14.0.vcxproj
CudaRuntime-VS9.0-Cuda8.0.vstemplate
CudaRuntime-VS9.0.vcproj
kernel.cu

I tried to compile the CudaRuntime-VS14.0.vcxproj using VC 2015 community edition but it gives error.
Do I have to compile all the files in "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v8.0\7_CUDALibraries" folder to get this cudart64_80.dll? How to do that using 2015 VC++ community?

I definitely have the file cudnn64_5.dll and it's found here:

(tensorflow) C:\ProgramData\cudnn-8.0-windows10-x64-v5.1\cuda\bin>dir
 Volume in drive C is Windows
 Volume Serial Number is 940B-2426

 Directory of C:\ProgramData\cudnn-8.0-windows10-x64-v5.1\cuda\bin

18-08-2017  07:13 PM    <DIR>          .
18-08-2017  07:13 PM    <DIR>          ..
07-11-2016  10:08 AM        83,148,288 cudnn64_5.dll
               1 File(s)     83,148,288 bytes
               2 Dir(s)  75,529,703,424 bytes free

My PATH includes "C:\ProgramData\cudnn-8.0-windows10-x64-v5.1\cuda\bin\cudnn64_5.dll".
Could someone please help me to rectify these errors?
Thanks!

@prdas31 Thank you ... I solved my issue.
I have TensorFlow 1.3, upgrading to cuDNN 6 instead of v5.1 solved the issue
@mrry your script is awesome ... was very helpful for me

@mrry best script ever! Thanks. I spent hours debugging, reinstalling, etc. You have save my day. Thanks a lot.

I wanted to bring up an anomaly that occurred with pip that was causing the No module named '_pywrap_tensorflow_internal' error to occur.  The version of python I was running was Python 3.6.3, pip was version  9.0.1.  and it was running on Windows 10.
 **Using version 1.3.0 (newest of versions: 1.2.0, 1.2.1, 1.3.0)   Looking up "https://pypi.python.org/packages/bf/d4/80197f48f9fb90a17c47cdd834b2f13d5f714f26e8ed5c77069d57aa3ecb/tensorflow-1.3.0-cp36-cp36m-win_amd64.whl" in the cache**   Current age based on date: 67543   Freshness lifetime from max-age: 31557600   The response is "fresh", returning cached response   31557600 > 67543   _Using cached tensorflow-1.3.0-cp36-cp36m-win_amd64.whl_   Downloading from URL https://pypi.python.org/packages/bf/d4/80197f48f9fb90a17c47cdd834b2f13d5f714f26e8ed5c77069d57aa3ecb/tensorflow-1.3.0-cp36-cp36m-win_amd64.whl#md5=3a7dbe9a17d806e43d2e71b3ddb0cd52 (from https://pypi.python.org/simple/tensorflow/)
The installation command was pip3 install --upgrade tensorflow, which on first run appeared to be working perfectly fine, however that was not the truth.  I discovered 3 weird occurrences:

The site-package that was downloaded had a METADATA stating it was for Python 2.7.  (This obviously was not going to work if it was for the wrong version of Python.)  Also, the TensorFlow version was 1.3 instead of the most current 1.4.0rc0 that was expected (verified this by going directly to pypi.python.org site directly).

Upon uninstalling the package, I noticed it had saved a cached instance of the package under my user profile as well, which it did not remove when uninstalling the package.  That was found in C:\Users**{AccountName}**\AppData\Local\Tmp\Pip-{unique generated id for cached application} and also removed.

After removing the cached modules, I again ran the command but with the verbose argument set: pip3 install --upgrade -v tensorflow
This was assumed to be something that would download the correct version of tensorflow now, but instead it decided that it couldn't find a compatible version of TensorFlow for my Python version 3.6.3 (which I assume the minor rev number may have thrown off the basic logic for acceptable versions, ex. 3.5, 3.6).  I again looked at the package metadata for the server-side cached copy of the module and again saw that this was really limited to Python 2.7 again.  Which means the server was returning an invalid python package that python 3 could not run, all while saying it was it was the newest version available, which was definitely not true.

The solution was quite simple, I added a forced version number to match the most current version's name, which ran seamlessly and resolved the import error described above.
pip3 install --upgrade -v tensorflow==1.4.0rc0

I have seen this error occuring in Tensorflow 1.4.0 as well because either cuDNN or CUDA toolkit DLLs being of wrong version or found in Anaconda folder instead of NVidia's folder. I've written a blog post on how to debug this error:
http://shitalshah.com/p/debugging-tensorflow-dll-importerror/
Related issue: https://github.com/tensorflow/tensorflow/issues/14946

i tried the selfcheck.py and the report is as follows:
ERROR: Failed to import the TensorFlow module.

Python version is 3.6.

TensorFlow is installed at: C:\Users......\Anaconda3\lib\site-packages\tensorflow

Could not load 'cudart64_80.dll'. The GPU version of TensorFlow
requires that this DLL be installed in a directory that is named in
your %PATH% environment variable. Download and install CUDA 8.0 from
this URL: https://developer.nvidia.com/cuda-toolkit

Could not load 'cudnn64_5.dll'. The GPU version of TensorFlow
requires that this DLL be installed in a directory that is named in
your %PATH% environment variable. Note that installing cuDNN is a
separate step from installing CUDA, and it is often found in a
different directory from the CUDA DLLs. You may install the
necessary DLL by downloading cuDNN 5.1 from this URL:
https://developer.nvidia.com/cudnn

Could not find cuDNN 5.1.

I am stuck since hours but the issue is still not resolved.
I am using only the CPU version and getting the same No module named 'pywrap_tensorflow_internal' error ::
Traceback (most recent call last):
File "C:\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Python\Python36\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 658, in _load_unlocked
File "", line 571, in module_from_spec
File "", line 922, in create_module
File "", line 219, in _call_with_frames_removed
ImportError: DLL load failed with error code -1073741795
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
return importlib.import_module('pywrap_tensorflow_internal')
File "C:\Python\Python36\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in
import tensorflow
File "C:\Python\Python36\lib\site-packages\tensorflow_init_.py", line 24, in
from tensorflow.python import *
File "C:\Python\Python36\lib\site-packages\tensorflow\python_init_.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Python\Python36\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 658, in _load_unlocked
File "", line 571, in module_from_spec
File "", line 922, in create_module
File "", line 219, in _call_with_frames_removed
ImportError: DLL load failed with error code -1073741795
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
return importlib.import_module('pywrap_tensorflow_internal')
File "C:\Python\Python36\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.
**1. I have placed msvcp140.dll in system32(64-bit file) and SysWOW64(32-bit file) as advised in https://www.youtube.com/watch?v=61vwFxnnh5c

I have also downloaded and installed Microsoft Visual C++ 2015 Redistributable Update 3

On running the selfcheck.py, I am getting the following result::**
ERROR: Failed to import the TensorFlow module.

WARNING! This script is no longer maintained!
Since TensorFlow 1.4, the self-check has been integrated with TensorFlow itself,
and any missing DLLs will be reported when you execute the import tensorflow
statement. The error messages printed below refer to TensorFlow 1.3 and earlier,
and are inaccurate for later versions of TensorFlow.

Python version is 3.6.

TensorFlow is installed at: C:\Python\Python36\lib\site-packages\tensorflow

Could not load 'cudart64_80.dll'. The GPU version of TensorFlow
requires that this DLL be installed in a directory that is named in
your %PATH% environment variable. Download and install CUDA 8.0 from
this URL: https://developer.nvidia.com/cuda-toolkit

Could not load 'nvcuda.dll'. The GPU version of TensorFlow requires that
this DLL be installed in a directory that is named in your %PATH%
environment variable. Typically it is installed in 'C:\Windows\System32'.
If it is not present, ensure that you have a CUDA-capable GPU with the
correct driver installed.

Could not load 'cudnn64_5.dll'. The GPU version of TensorFlow
requires that this DLL be installed in a directory that is named in
your %PATH% environment variable. Note that installing cuDNN is a
separate step from installing CUDA, and it is often found in a
different directory from the CUDA DLLs. You may install the
necessary DLL by downloading cuDNN 5.1 from this URL:
https://developer.nvidia.com/cudnn

Could not find cuDNN.

Please Help !!!!!!

I have similar problem.  I have a previous version of python 2.7 so I downloaded 3.5.4 Next I installed tensorflow  using pip3 install --upgrade tensorflow The message:
Installing collected packages: setuptools, numpy, six, markdown, wheel, protobuf, werkzeug, tensorboard, grpcio, gast, astor, absl-py, termcolor, tensorflow
Successfully installed absl-py-0.2.2 astor-0.7.1 gast-0.2.0 grpcio-1.13.0 markdown-2.6.11 numpy-1.14.5 protobuf-3.6.0 setuptools-39.1.0 six-1.11.0 tensorboard-1.9.0 tensorflow-1.9.0 termcolor-1.1.0 werkzeug-0.14.1 wheel-0.31.1When trying to confirm installation i get:
import tensorflow as tf
Traceback (most recent call last):
File "C:\Users\Walt\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\Walt\AppData\Local\Programs\Python\Python35\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 985, in _gcd_import
File "", line 968, in _find_and_load
File "", line 957, in _find_and_load_unlocked
File "", line 666, in _load_unlocked
File "", line 577, in module_from_spec
File "", line 938, in create_module
File "", line 222, in _call_with_frames_removed
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
When I run this command dir C:\Users\Walt\AppData\Local\Programs\Python\Python35\Lib\site-packages\tensorflow\python_pywrap_tensorflow.pyd I get:
Volume in drive C is OS_Install
Volume Serial Number is 14E0-9B9F
Directory of C:\Users\Walt\AppData\Local\Programs\Python\Python35\Lib\site-packages\tensorflow\python
File Not Found
What steps can I take from this point on to troubleshoot this issue?
Thank you.

After looking into this problem over few days I came across information that any tensorflow version that is >1.5 will not work with window. So my problem is solved. I downgraded to to 1.5. It's working. If you think this will help you then uninstall any previous version of TF and install the 1.5 version using this command:
pip3 uninstall tensorflow
pip3 install --upgrade --ignore-installed tensorflow==1.5

this was very helpful @Walt3r1 ,to the point and quicker.

@Walt3r1 where did you find this information?  To me it looks like any version on windows should work: https://www.tensorflow.org/install/source_windows

Could not even run the basic example after installing Tensorflow 1.10.0 with pip install command. Thanks to the suggestion here -- Installing the Microsoft Visual C++ 2015 Redistributable Update 3 (x64 version)  -- problem was fixed and able to work with Tensorflow with Spark now.

I'm sorry that it didn't work out of the box. Can you answer a couple of questions for me?

How did you install TensorFlow? Did you use pip install tensorflow or pip install https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl (or some other command)?
Can you run the following command and reply with its complete output?

dir C:\Users\hp\AppData\Local\Programs\Python\Python35\Lib\site-packages\tensorflow\python\_pywrap_tensorflow.pyd

i run the above command it show error "The system cannot find path specified


SILGen: Fix potential use-after-free in @_backDeploy coroutines

The SIL verifier has identified an issue with the SIL generated for property accessors structured like this:
public struct S {
  @available(macOS, introduced: 12.0)
  @_backDeploy(before: macOS 13.0)
  public var x: String {
    _read {
      yield "x"
    }
  }
}

The emitted SIL is invalid because the value %9 is used after end_apply may have ended the lifetime of the value:
bb1:
  %8 = function_ref @$s4test1SV1xSSvrTwB : $@yield_once @convention(method) (S) -> @yields @guaranteed String9
  (%9, %10) = begin_apply %8(%0) : $@yield_once @convention(method) (S) -> @yields @guaranteed String
  end_apply %10
  yield %9 : $String, resume bb3, unwind bb2

The fix is to move the end_apply to the resume and unwind blocks, after the value has been yielded to the caller.
Resolves rdar://96879247

@swift-ci please smoke test

I am not reviewing this... but unless the test that you modified has this specific test there, you aren't actually testing the broken test case? If my guess is right, can you dd that test case explicitly and check the SILGen?

I am not reviewing this... but unless the test that you modified has this specific test there, you aren't actually testing the broken test case? If my guess is right, can you dd that test case explicitly and check the SILGen?

I am not sure whether the fact that the verifier didn't catch this on the existing test case is a bug in the verifier or not. It seems like the lifetime of %9 in the example I gave in the description is not validated by the verifier when %9 holds an Int, but it would if I changed the return type of the function from Int to String. The changed location of end_apply in the test is the main thing I'm trying verify. I could duplicate this test case and modify it to use a return type that does cause the current implementation of the verifier to trip, though.

I could duplicate this test case and modify it to use a return type that does cause the current implementation of the verifier to trip, though.

Yes, I think that's a good idea. You can do that in a follow-up PR.
These kind of lifetime/ownership verifications are only done for non-trivial types. So if you use e.g. a class in your test, it should work.

I've expanded the runtime tests for @_backDeploy to include code that causes lifetime verification to fail without this fix: https://github.com/apple/swift/pull/60037


Fix BrowserConsoleHandler formatting

This resolves an issue whereby all styles would be applied in reverse order to the formatting markers.
Reproduction code
$logger = new Logger('test');
$handler = new BrowserConsoleHandler();
$handler->setFormatter(new LineFormatter(
	'[[blue text]]{color: blue} or [[green background]]{background-color: green; color: white}'
));
$logger->setHandlers([$handler]);
$logger->info('woo');

Before

<script>(function (c) {if (c && c.groupCollapsed) {
c.log("%c%cblue text%c or %cgreen background%c", "font-weight: normal", "background-color: green; color: white", "font-weight: normal", "color: blue", "font-weight: normal");
}})(console);</script>

After

<script>(function (c) {if (c && c.groupCollapsed) {
c.log("%c%cblue text%c or %cgreen background%c", "font-weight: normal", "color: blue", "font-weight: normal", "background-color: green; color: white", "font-weight: normal");
}})(console);</script>

Thanks for the fix, merged in 1.x and master as 0ff3a9bd0399ddcf02f6b1ab80efca8f3ea2d6e2


Bug - typescript-webpack - Build command fails

I'm submitting a bug report

Aurelia Skeleton Version
skeleton-typescript-webpack

Framework Version:
1.0.0

Please tell us about your environment:

Operating System:
Windows 10

Node Version:
6.5 and 4.3.2

NPM Version:
3.5.3

JSPM OR Webpack AND Version
webpack 2.1.0-beta.22

Language:
TypeScript X.X

Current behavior:
npm run build fails. This is caused by the module 'aurelia-loader-webpack'. If the modules aurelia-loader-webpack and aurelia-bootstrapper-webpack are removed from the coreBundles registry in webpack.config.js the build command completes succesfully.

From #664 - remove aurelia-protractor.d.ts from the custom-typings folder.


onIdle callback [feature request]

Hi,
Is it possible to add an onIdle callback, that will get this.map_ this.maps_ as arguments - it will be easier for those who want to work with the map instance and not only:
this.props.onIdle(this.map_, this.maps_);

I used to work with the map instance to enable some functionality that's not implemented in this component, and I had to create a loop to make sure I'll always get it.
Thanks,
Raul.

Closed as duplicate of this
https://github.com/istarkov/google-map-react/issues/43


Bottom Add Reaction Popover Covers button

The Add Reaction popover below the comment content covers the button you hover over and it looks awful. Should be a quick CSS fix if anyone wants to tackle it.

Too impatient...


[resotocore][fix[ Fix the broken resotocore workflow

Description

To-Dos

[ ] Add test coverage for new or updated functionality
[ ] Lint and test with tox
[ ] Document new or updated functionality (someengineering/resoto.com#XXXX)

Issues Fixed

Fixes #XXXX

Code of Conduct
By submitting this pull request, I agree to follow the code of conduct.

Codecov Report
Base: 90.16% // Head: 90.16% // No change to project coverage :thumbsup:

Coverage data is based on head (5fe14f1) compared to base (8909890).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1146   +/-   ##
=======================================
  Coverage   90.16%   90.16%
=======================================
  Files          68       68
  Lines       10192    10192
=======================================
  Hits         9190     9190
  Misses       1002     1002

Flag
Coverage Δ

resotocore
90.16% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


blog example would be good

Maybe just as a reminder for me and you, because wanna try that choo :) Looks great, btw!

There's the choo-handbook with several examples to help people get started. Is that what you mean?

I seen that, but no. I mean some sort of SPA blog. Found that today http://sennajs.com/examples/blog/

woah, that blog page eats through CPU like it's nothing 🙁
To be fair I think we've got a good number of examples in the repo already; I'm with you that perhaps something with markdown would be neat to have - but feel we should probably revisit all examples at some point in the near future (before a possible v4) to streamline the examples we got. But there's a whole bunch of work to do before this point too.
Anyway, heaps thanks for the suggestion! - We'll keep this in mind for when the examples get a revamp :grin: - closing for now as I'm on a bit of a mission to trim back the open issues. Thanks again!


Implement warnings in Parcels

Addresses #1600 by implementing the warnings module in Parcels.
This is presented as a draft PR since I think some of the details of the implementation will benefit from discussion to make sure that things are in their best state.
Here, I have implemented three custom warning classes, FieldSetWarning, KernelWarning, and FileWarning that I think encompass the majority of warnings that Parcels was raising. A few warnings (e.g., ParticleSet is empty...) did not fit neatly into these categories, so I assigned them RuntimeWarning.
I also added these warnings to the documentation, with a short description of each that would hopefully be a resource for users trying to address the warning. The naming of warnings and their docstrings is something that could probably benefit from the input of Parcels maintainers.
Tests were added for a few of the warnings (i.e., the test makes sure the warning is properly raised), but I couldn't get test cases working for all of the possible cases, since some are fairly complicated to raise (especially those that have to do with I/O or chunking, like the FileWarning). Input here is welcome also.

Warning Classes

Class
Docstring

FieldSetWarning
Warning that is raised when there are issues in the construction of the FieldSet or its Grid. These warnings are often caused by issues in the input data dimensions or options selected when loading data into a FieldSet.

FileWarning
Warning that is raised when there are issues with input or output files. These warnings can be related to file chunking, naming, or decoding issues. Chunking issues in particular may negatively impact performance (see also https://docs.oceanparcels.org/en/latest/examples/documentation_MPI.html#Chunking-the-FieldSet-with-dask)>

KernelWarning
Warning that is raised when there are issues with the Kernel. These warnings often result from issues in the FieldSet or user-defined Kernel that are passed into the Parcels Kernel loop.

It is worth noting that I was unable to completely remove the logger module, since Parcels uses it to print info (which is distinct from the warnings). See below for the list of where this logging remains. I left a bare-bones logging implementation in the logging.py module to support these. It is also worth noting that Parcels also implements custom exceptions in the statuscodes.py module.

Remaining Logging Info

File
Code

fieldset.py
logger.info(f"Generating FieldSet output with basename: {filename}")

kernel.py
logger.info(f"Compiled {self.name} ==> {self.src_file}")

particleset.py
logger.info(f"Output files are stored in {output_file.fname}.")

rng.py
logger.info(f"Compiled ParcelsRandom ==> {self.src_file}")

I think it could make sense to bring the warnings, statuscode exceptions, and logger all under the same module (perhaps exceptions.py?) but that does potentially leave the StatusCode class in a weird place. I do think making this change would simplify code base. If we are in favor of making this change, then I can update the PR accordingly (or open a new one if it does not fit into the scope of this one).

Wow, thank you so much for this PR, @andrew-s28! I had a quick lok through it, and it's beautifully concise and seems pretty complete!
@VeckoTheGecko and I will go more carefully through it in the coming days; but this certainly is a fantastic starting point for (if not a complete version of) this refectoring!

Thanks for the feedback @VeckoTheGecko and @erikvansebille. I think I have incorporated most or all of your suggested changes with the recent commits.

I agree with the note about structure, but this would be a breaking change for users that I'm not comfortable rolling out in a minor release. It would require an update to tutorials, and (as you mention) there is no "home" for StatusCodes. Let's keep with the current structure.

I didn't really consider that this would be a breaking change, so this makes sense to me. Perhaps something to keep in mind for future major version releases then 😄.


get oceano working on other machines

starting with SST to incorporate new viz per #33

@superjai  got this going@!


Add a more friendly prompt when index.yaml is empty.

Signed-off-by: yxxhero<EMAIL_ADDRESS>
What this PR does / why we need it:
fix https://github.com/helm/helm/issues/9766
Special notes for your reviewer:
If applicable:

[ ] this PR contains documentation
[x] this PR contains unit tests
[ ] this PR has been tested for backwards compatibility

@bacongobbler @hickeyma I'll reconfirm it again.

@bacongobbler @bacongobbler http://mirror.azure.cn/kubernetes/charts-incubator/ this web site return 403 directlly.

I see something completely different on main @hickeyma.
><> ./bin/helm repo add incubator http://mirror.azure.cn/kubernetes/charts-incubator/
Error: looks like "http://mirror.azure.cn/kubernetes/charts-incubator/" is not a valid chart repository or cannot be reached: failed to fetch http://mirror.azure.cn/kubernetes/charts-incubator/index.yaml : 403 Forbidden

When using this branch:
><> ./bin/helm repo add incubator http://mirror.azure.cn/kubernetes/charts-incubator/
Error: looks like "http://mirror.azure.cn/kubernetes/charts-incubator/" is not a valid chart repository or cannot be reached: failed to fetch http://mirror.azure.cn/kubernetes/charts-incubator/index.yaml : 403 Forbidden

But the error message you shared is the same as what @yxxhero proposed in this PR. Am I missing something?
See line 54:

ErrEmptyIndexYaml = errors.New("empty index.yaml file")

This behave is right.

https://github.com/helm/helm/blob/20e2aec79365d0ec6c3230a7d0288d9a386bbc6a/pkg/repo/chartrepo.go#L127
when the website returns 403, loadIndex func don't run.


Docs?

I get that you have some interactive docs in https://ishape-rust.github.io/iShape-js/overlay/stars_demo.html but right now you have ZERO comments in your code. When I use a lib it would be nice to at least know just a line or two what a function does or what an enum is. Like wth is ShapeType?? and what is the difference between Subject and Clip??
A simple /** explain here */ or /// before the enum or function would make it much easier to follow when coding as you get that as an editor hint. It does not need to be an essay, but just something.

Yes, I agree that comments are super important and it's on my list to do.
The project is still on development and api is not stable. But some things like this enum is pretty stable so I will do it soon.
Thanks for you attention and feedback.

I've added description to the most important public api


Sublime Text 3 attempting to reload files from disk while editing

I'm having an issue where Sublime Text 3 is opening a file reload prompt when the Haxe plugin's autocomplete is triggered. It seems to consistently happen with , and ( which goes along with closed issues I've linked from the past. I'm getting following error in the console:
not well-formed (invalid token): line 20, column 15
invalid xml

This happened after upgrading to macOS High Sierra. I've uninstalled and reinstalled ST3, as well as cleared all preference settings as a "fresh install state".
Let me know if you need more details or if I can help with any fixes.
System details:

macOS High Sierra: 10.13.1
Upgraded from Sierra

Similar issues:

#127
#244

The symptoms are similar to other issues because they are common to a lot of issues where the plugin "crashes" during completion, sometimes leaving the filesystem in a broken state... :S
A few questions:

Did you install the bundle via Package Control ?
Can you otherwise run Haxe properly from the command line ?
Aren't there any other messages in the console (such as a stack trace, or whatever...) ?

Also, as mentionned in other issues, you might want to check the permissions in your project folder.

To answer your questions:

Yes, the bundle is installed via the package manager
Yes, I'm able to run haxe on the command line
No, there's no other messages in the ST console
My permissions are drwxr-xr-x on directories and -rw-r--r-- on the files.

I tried the console statements from this comment to test to make sure ST properly could access the directory and I had no errors.

Ok. What Haxe version do you use ?

I'm having the same issue since I upgraded to High Sierra a few days ago.
Same permissions on files and folders.
I tried reinstalling both Sublime and Haxe Sublime bundle from package manager.
I don't get any warning nor error in the sublime console though.
In my case, it seems to occur on autocomplete just after I saved a file and modified it again.

Getting the same issue on OS X and Haxe 3.4.4. I'm getting an error of a missing library which leads me to believe the haxelib directory is not being picked up correctly. Is there a way to set this?

I'm also seeing the same issue. I've updated my local haxe to run 3.4.7. Nothing in the console, just a dialog saying the file "Has Changed on disk. Do you want to reload it?"

I love haxe and sublime text, but this issue is driving me crazy, and making editing haxe on a mac with sublime text almost unusable. Is there anything I can do to help with this issue? Are there any workarounds even?

If you want to temporarily disable auto-complete, which is the cause of the errors, you can do that in the sublime settings for the plugin.
{
  // ...
  "haxe_auto_complete": true
  // ...
}

As for a workaround, I have done some digging and think I found the source of the error. Opened a PR #273 to get the work started, and its working so far for me if you want to install my branch, package auto-complete is back and without this popup.


Improve documentation for WIP extensions

Title: Improve documentation for WIP extensions
Description:
It is not clear from current developer documentation that extensions with wip code should have public documentation. This is currently enforced by CI. We should better clarify developer guide on how to add wip extensions.

cc @phlax

cc @tyxia
I am also having similar issue and discussing it with phlax.

@phlax  Do you think is there anything left/needed for this issue? Per our slack discussion last time, we seem to get consensus that we can add attention header .. attention:: like here or warning header, etc.


use resize_step_x and resize_step_y in tmux.resize()

Addresses issue #63
This is just a simple change that adds an additional argument to the tmux resize command wrapper as requested.
Let me know if there's any other additional changes required!

Ty


Add a Gitter chat badge to README.md

OfficeDev/Office-UI-Fabric now has a Chat Room on Gitter
@mikewheaton has just created a chat room. You can visit it here: https://gitter.im/OfficeDev/Office-UI-Fabric.
This pull-request adds this badge to your README.md:

If my aim is a little off, please let me know.
Happy chatting.
PS: Click here if you would prefer not to receive automatic pull-requests from Gitter in future.

Hi @gitter-badger, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

I'm not sure this is the place to put the badge, but we should mention Gitter somewhere in our README so I'll leave this PR open.

Makes most sense on the README as that's how other projects do it... great idea!

It turns out that Office Dev Center already has a Slack group which is promoted in the header throughout dev.office.com, including on the Fabric docs:

Slack was our first choice before Gitter, and the OfficeDev Slack group is a perfect fit for Fabric. We've created a #fabric channel there.


Update of freshness for new PaaS/IaaS scenarios

This page could be checked for freshness of Azure DevTestLabs and its applicability to standing up PaaS environment.
The linked information to GitHub shows only a [small a repo of ARM templates] (https://github.com/Azure/azure-devtestlab/tree/master/Environments) that can be accessed by enabling Public Environments in DTL, but there are many more scenarios its contributed codebase likely supports, than just the Web App and SharePoint farm templates hosted there.
Perhaps this is better directed to the README.md maintainer of the azure-devtestlab repo since that document references your document this way "For information about environments and how they can be leveraged in Azure DevTest Labs, refer to [Configure and use public environments in Azure DevTest Labs] (https://docs.microsoft.com/en-us/azure/lab-services/devtest-lab-configure-use-public-environments)."
My specific scenario is Azure WAF for Front Door. I opened an issue with a related MS repo owner, to try and determine if their project merges with the DevTestLab project goals or not.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 3cb692c0-b3bf-946f-cc4b-7e2e21a31816
Version Independent ID: 68897110-b93a-8feb-9e9e-47f36f2f1870
Content: Configure and use public environments in Azure DevTest Labs
Content Source: articles/lab-services/devtest-lab-configure-use-public-environments.md
Service: lab-services
GitHub Login: @spelluru
Microsoft Alias: spelluru

@c13GitHub Thank you very much for the feedback!  I've assigned this to the document author so they can review and update the documentation accordingly.

#assign:jkwon2013

Hello,
In DevTest Labs, you can spin up an ARM template to create any Azure resource (PaaS)
However, we provide you with some commonly used set of ARM templates to help you get started with how environments work, how to author them and extend them to your own scenarios inside labs.
To spin up an ARM template of your own choice, you can connect your lab to a private repo with that ARM template (Azure WAF in your case) Here are some instructions to set up a private repo in DevTest Labs: https://docs.microsoft.com/en-us/azure/lab-services/devtest-lab-create-environment-from-arm#configure-your-own-template-repositories
I'm still not sure if I have answered your question. Does this help?
Thanks,
Tanmayee

#please-close

Hello, In Devtest we can add the HDinsight Cluster for the auto-shutdown. please share MS article details.

Hello,
We don’t support HDInsight cluster for auto shutdown today in DevTest Labs.  We only support service fabric cluster in terms of schedules.
We would like to learn more on the your scenario to better understand requirements. Can you share more on that?
Also rplease share this request on our user voice: https://feedback.azure.com/forums/320373-lab-services?category_id=352780
Thanks,
Tanmayee


Wrong sources path in generated sourcemaps

Describe the bug
Since #7022, I noticed that the generated sourcemaps corresponding to some modules having wrong relative paths in the sources part of the sourcemap.
Did you try recovering your dependencies?
Yes, I also created a new CRA from scratch.
Which terms did you search for in User Guide?
sourcemap
Environment
$ npx create-react-app --info
npx : 91 installé(s) en 5.552s

Environment Info:

  System:
    OS: Linux 5.4 Arch Linux
    CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
  Binaries:
    Node: 13.3.0 - /usr/bin/node
    Yarn: 1.21.0 - /usr/bin/yarn
    npm: 6.12.1 - /usr/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: 71.0
  npmPackages:
    react: ^16.12.0 => 16.12.0
    react-dom: ^16.12.0 => 16.12.0
    react-scripts: 3.3.0 => 3.3.0
  npmGlobalPackages:
    create-react-app: Not Found

Steps to reproduce
To reproduce:

create a new CRA
install zxcvbn (yarn add zxcvbn)
include some code to use the module, for example:

diff --git a/src/App.js b/src/App.js
index ce9cbd2..115ba97 100644
--- a/src/App.js
+++ b/src/App.js
@@ -2,7 +2,10 @@ import React from 'react';
 import logo from './logo.svg';
 import './App.css';

+import zxcvbn from 'zxcvbn';
+
 function App() {
+  console.log(zxcvbn('foobar'))
   return (
     <div className="App">
       <header className="App-header">

build (yarn build)
look at the generated sourcemap (build/static/js/2.cd57ecb1.chunk.js.map)

As you can see, the source of the files of the zxcvbn module are not good (they do not refer node_modules)
Note that I used zxcvbn, but some other modules are impacted, for example typesafe-actions.
Expected behavior
Same as before #7022:
$ jq .sources < build/static/js/2.cd57ecb1.chunk.js.map
[
  "../node_modules/react/index.js",
  "../node_modules/zxcvbn/lib/scoring.js",
  "../node_modules/object-assign/index.js",
  "../node_modules/zxcvbn/lib/adjacency_graphs.js",
  "../node_modules/react-dom/index.js",
  "../node_modules/zxcvbn/lib/main.js",
  "../node_modules/react/cjs/react.production.min.js",
  "../node_modules/react-dom/cjs/react-dom.production.min.js",
  "../node_modules/scheduler/index.js",
  "../node_modules/scheduler/cjs/scheduler.production.min.js",
  "../node_modules/zxcvbn/lib/matching.js",
  "../node_modules/zxcvbn/lib/frequency_lists.js",
  "../node_modules/zxcvbn/lib/time_estimates.js",
  "../node_modules/zxcvbn/lib/feedback.js"
]

Actual behavior
$  jq .sources < build/static/js/2.cd57ecb1.chunk.js.map
[
  "../node_modules/react/index.js",
  "../../src/scoring.coffee",
  "../node_modules/object-assign/index.js",
  "../../src/adjacency_graphs.coffee",
  "../node_modules/react-dom/index.js",
  "../../src/main.coffee",
  "../node_modules/react/cjs/react.production.min.js",
  "../node_modules/react-dom/cjs/react-dom.production.min.js",
  "../node_modules/scheduler/index.js",
  "../node_modules/scheduler/cjs/scheduler.production.min.js",
  "../../src/matching.coffee",
  "../../src/frequency_lists.coffee",
  "../../src/time_estimates.coffee",
  "../../src/feedback.coffee"
]

Possible fix / thoughts
It seems that the paths used are the ones from the sourcemap of the module.
A potential fix would be in packages/react-scripts/config/webpack.config.js, with the following patch:
--- webpack.config.js
+++ webpack.config.js_potential-fix
@@ -484,7 +484,7 @@
                 // Babel sourcemaps are needed for debugging into node_modules
                 // code.  Without the options below, debuggers like VSCode
                 // show incorrect code and set breakpoints on the wrong lines.
-                sourceMaps: shouldUseSourceMap,
+                sourceMaps: false,
                 inputSourceMap: shouldUseSourceMap,
               },
             },

@justingrant : I feel like you are the right person to comment on this issue since you authored #7022 :pray:

Hi @Rogdham - Take a look at https://github.com/facebook/create-react-app/issues/8071. I suspect yours is a duplicate of that issue.
This comment outlines what's remaining to solve before a fix can get into CRA. The next comment in that issue describes a workaround.

Thank you for your reply @justingrant, really appreciated! :+1:
I tried the workaround and it seems to be working fine as far as I'm concerned: :tada:
$ jq .sources < build/static/js/2.cd57ecb1.chunk.js.map
[
  "../node_modules/react/index.js",
  "../node_modules/zxcvbn/src/scoring.coffee",
  "../node_modules/object-assign/index.js",
  "../node_modules/zxcvbn/src/adjacency_graphs.coffee",
  "../node_modules/react-dom/index.js",
  "../node_modules/zxcvbn/src/main.coffee",
  "../node_modules/react/cjs/react.production.min.js",
  "../node_modules/react-dom/cjs/react-dom.production.min.js",
  "../node_modules/scheduler/index.js",
  "../node_modules/scheduler/cjs/scheduler.production.min.js",
  "../node_modules/zxcvbn/src/matching.coffee",
  "../node_modules/zxcvbn/src/frequency_lists.coffee",
  "../node_modules/zxcvbn/src/time_estimates.coffee",
  "../node_modules/zxcvbn/src/feedback.coffee"
]

The sourcemap points to the original source of the external library (zxcvbn), which are included in the NPM package, so we have them. I don't know if they are always included though… but that would probably be an other issue (potentially an issue to report to the external library itself).
So I'm closing this issue: I'm not really sure that #8071 is a duplicate, but the workaround offered there does fix my issue. I guess that the real fix would solve the issue as well. If anyone disagrees, I can always reopen the issue.


⚠ St. Lawrence Global Observatory CKAN has degraded performance

In 52c7de7, St. Lawrence Global Observatory CKAN (https://catalogue.ogsl.ca/en/) experienced degraded performance:

HTTP code: 200
Response time: 11329 ms

Resolved: St. Lawrence Global Observatory CKAN performance has improved in a4f1777.


Unprefixed routes are always added in full static mode when strategy is "prefix"

Version
@nuxtjs/i18n: 7.0.3
nuxt: 2.15.7
Nuxt configuration

[x] Applies to a site deployed to a static server (site generated with nuxt generate)
[ ] Applies to a site deployed to a server with a Node backend

@nuxtjs/i18n configuration
i18n: {
    strategy: 'prefix',
}

Reproduction Link
https://codesandbox.io/s/nuxt-nuxtjs-i18n-base-template-forked-ron65?file=/pages/index.vue
Steps to reproduce

Set target: static in nuxt.config.js
Set strategy: prefix in i18n config

What is Expected?
There should only be routes prefixed with locale codes
What is actually happening?
There are routes with prefixed locale codes as well as routes with unprefixed locale codes.
As you can see, the reproduction link prints all routes and for each page there is the prefixed version, ie: /en/about /es/about but also the unprefixed version: /about
I'd say that with setting the strategy to "prefix" this is an unexpected behaviour, especially considering it only happens in full static mode.
The reason why this happen is this logic:
https://github.com/nuxt-community/i18n-module/blob/c710ad18d30dc80c9e71502fbf0e722e596952c7/src/core/hooks.js#L13-L16
When full static mode is active or when nuxt generate runs, the variable includeUprefixedFallback is set to true which forces the route generation to include the unprefixed version of each route.
My question is why is this logic present? I guess there must be a good reason if it's there 😄

I was never fully convinced that we should do it but you can see #805 for more context.
Basically having the fallback makes setup easier for some as you don't have to set up redirects manually at the provider or hosting level. But ultimately that might be the proper way anyway.

Thank you for bringing me context @rchl.
I share your doubts about that and i agree that setting up redirects should be up to the user.
My current issue is that i have the opposite problem of #805: i'd like for urls without the locale prefix to give 404 instead of redirecting to the same path with the default locale prefixed.
Seeing that everyone has his own opinion on this, what if we make this behaviour configurable?
I can make a PR if it sounds interesting

I would accept a PR to introduce an option (for backward-compatibility enabled by default).

setting up redirects should be up to the user.

It's not simply setting up redirects, it's a fallback to correctly show 200 status code and based on the detection do redirection.
Where are you deploying your site @reegodev? If it's a custom web server, then looks fine, otherwise, you'd be getting a 404 error code on the root path that can't be fixed simply.
Thanks!

setting up redirects should be up to the user.

It's not simply setting up redirects, it's a fallback to correctly show 200 status code and based on the detection do redirection.
Where are you deploying your site @reegodev? If it's a custom web server, then looks fine, otherwise, you'd be getting a 404 error code on the root path that can't be fixed simply.
Thanks!

I understand the issue about the 200 status with redirect, but I'd find it only useful for the root url honestly. I don't see why every route without a locale prefix should redirect to the same url with the locale in front, considering i explicitly chose to have the prefix for all the routes.
Even if we assume everyone besides me wants this behavior, the problem is that i can't disable it in any way at the moment.

@reegodev How did you end up solving this? I'm using nginx and with the 'prefix' strategy I'm getting 404's when I browse to the root of my website, because there's nothing there. Did you end up implementing a redirect on your server to a certain language?

@notflip A long time has passed but if I remember correctly we simply implemented a georedirect on the root URL so that users could land directly on the relevant language.

@reegodev How did you end up solving this? I'm using nginx and with the 'prefix' strategy I'm getting 404's when I browse to the root of my website, because there's nothing there. Did you end up implementing a redirect on your server to a certain language?

Hey @notflip,
I'm using nginx too and I'm facing the same problem. I've setted up a redirect to the default locale.

Closing this as v7 is not being actively worked on (critical hotfixes only), if this still applies to v8 and later please open a new issue!


Allow for HTML elements of the structure VendorHTMLElement

Description
This PR just changes the regex to detect elements of the form ^.*HTML.*Element$. The motivation for this is custom element base classes, such as VendorHTMLElement.
Breaking changes
ESLint rule may be more lenient than before and highlight new warnings.

I discussed this with @koddsson. We think this needs to change a little. We think this would be best suited as an option. Rather than broadening the RegExp, rules which use these RegExps should be able to pass in the desired superclass, so for e.g. if you're using a library and need to extend from VendorHTMLElement, you can explicitly put VendorHTMLELement as the superclass for the applicable rules.

I discussed this with @koddsson. We think this needs to change a little. We think this would be best suited as an option. Rather than broadening the RegExp, rules which use these RegExps should be able to pass in the desired superclass, so for e.g. if you're using a library and need to extend from VendorHTMLElement, you can explicitly put VendorHTMLELement as the superclass for the applicable rules.

Thanks for the discussion! Does ESLint have a global way to assign options for multiple rules, say similar to the allowlist in https://github.com/github/eslint-plugin-custom-elements/pull/38 but on a plugin-wide level?
Otherwise, I worry that it may be tedious to specify a superclass for each rule.
This is also the last change I had made in our fork of eslint-plugin-custom-elements, but I'm not super opinionated on it. Do you think HTMLVendorElement would make more sense?

Does ESLint have a global way to assign options for multiple rules

That's what settings is for, but keep note that this is legacy eslint config format, it might be different for the flat config format.


Strong names

Can strong names be assigned to all Nito packages? From what I gather, they were available previously.

Why do you want strong-named packages?

Our packages utilize strong naming, yet we encounter warnings because the Nito assemblies we reference are not signed. Specifically, the warnings pertain to Nito.AsyncEx.Coordination and Nito.AsyncEx.Tasks, both of which lack a strong name. Signing these assemblies would be highly beneficial and appreciated, considering their quality.
Starting with .NET 5+, strong names no longer offer advantages, leaving warnings as the only concern.

Strong naming causes numerous serious maintenance issues for package maintainers, and for this reason I'm not going to strong name any of my libraries. For more details, see https://github.com/StephenCleary/AsyncEx/issues/229#issuecomment-748620742
My real question is, why do you strong-name? What benefit of strong naming are you depending on?

Previously, the focus was on .NET Framework and aspects related to GAC. However, you make a valid argument. Perhaps now is the opportune moment to move away from using strong names.

As a reason to use strong names (out-with those of us still maintaining large net framework based applications), we use them to identify assemblies containing injectable services that we develop (rather than scanning all assemblies), and to filter and list assemblies that are part of the product, separately from those that are our framework or 'third' party, such as for About pages, or to list dependent licenses and acknowledgements etc.
We use the Brutal Strongnamer to handle the few packages which don't supply a strong named package, or just copy the required classes to a utilities package which we strong name (but this doesn't allow us to easily track updates, security issues, or easily assign the correct rights and licencing to the code beyond the source level).

@BlackGad, You might not always be in full control of the stack that you are working on. For example when you are building extensions / addons to products that mandate signing (e.g. Visual Studio itself). IMO, expecting open-source libraries to sign their assemblies might not be realistic. There are several workarounds for when you need your dependencies to be signed. One workaround for example is to reference StrongNamer nuget. It's a build-time only dependency that relies on targets to find and sign all your dependencies


Bump Python to 3.12

Is your feature request related to a problem? Please describe.
Currently running into issues when using this package together with other packages that are requiring Python 3.12.
Describe the solution you'd like
Can the Python version be bumped to 3.12?

Bumped to 3.12 in v0.13.0


restartOnFileChange doesn't work after run completes normally

I just upgraded to 0.13.11 and tried the restartOnFileChange option out for the first time.
An excerpt from my karma.conf.js is:
  autoWatch: true,
  singleRun: false,
  restartOnFileChange: true
}

When I kick off a test run, and then quickly edit/save a watched file;  I see that the current run is cancelled and a new run starts, as per the docs.
I can repeat this process any number of times; with the same results each time (current run is cancelled, new run starts).
However, if I let the current run continue all the way through to completion;  then make a change to a watched file, a new run will start, but it doesn't run any tests.
Example console output is below.  It shows:

the end of a successful run (Finished in 39.126 secs, 1325 tests completed)
a change detected in the file foo.js
another run triggered, but with 0 tests completed:

Finished in 39.136 secs / 1.009 secs

SUMMARY:
✔ 1325 tests completed
19 10 2015 16:42:45.754:INFO [watcher]: Changed file "foo.js".

Finished in 0.002 secs / 0 secs

SUMMARY:
✔ 0 tests completed

I have the same problem

Also got this issue. It does not seem random and reproduces every time then |restartOnFileChange| is true

gulp test-chrome-extension
(node:676) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
[07:49:33] Using gulpfile C:\Workspace\market\gulpfile.js
[07:49:33] Starting 'test-chrome-extension'...
03 07 2016 07:49:34.134:WARN [karma]: No captured browser, open http://localhost:9876/
03 07 2016 07:49:34.146:INFO [karma]: Karma v1.1.0 server started at http://localhost:9876/
03 07 2016 07:49:34.147:INFO [launcher]: Launching browser Chrome with unlimited concurrency
03 07 2016 07:49:34.174:INFO [launcher]: Starting browser Chrome
03 07 2016 07:49:35.591:INFO [Chrome 51.0.2704 (Windows 8.1 0.0.0)]: Connected on socket /#a7QsDyM3ifDa2XX5AAAA with id 25769336
Chrome 51.0.2704 (Windows 8.1 0.0.0): Executed 1 of 1 SUCCESS (0.01 secs / 0.001 secs)
03 07 2016 07:49:42.460:INFO [watcher]: Changed file "C:/Workspace/market/dist/chrome-extension/1.0.0/application/chrome/module/test-suite/tools.spec.js".
03 07 2016 07:52:29.802:INFO [watcher]: Changed file "C:/Workspace/market/dist/chrome-extension/1.0.0/application/chrome/module/test-suite/tools.spec.js".

... and no running tests

I have similar issues with this option.  Tests run the first time, but when changing a file one of two things will happen, no tests will run, or no tests will run and the browser disconnects.
It looks like, after a file change, tests are being executed before any files are served.  Here is a comparison with DEBUG logging and also logging all karma.Server events.  I've added my own headers to help delineate successive file change and re-runs.
Test
I have a minimal test:
describe('restartOnFileChange', () => {
  it('skips tests after the first run', () => {
    (true).should.equal(true)
  })
})

With restartOnFileChange: true
I have enabled DEBUG logging here.  I have also added karma.Server logs that simply log every event that karma.Server() is emitting (karma.Server: browser_start, etc):
#############################################################################
#                                                                           #
#                                 FIRST RUN                                 #
#              All is well, files are requested, then tests run.            #
#############################################################################
11 11 2016 11:52:56.658:DEBUG [config]: No config file specified.
11 11 2016 11:52:56.663:DEBUG [plugin]: Loading karma-* from /PROJECT/node_modules
11 11 2016 11:52:56.665:DEBUG [plugin]: Loading plugin /PROJECT/node_modules/karma-coverage.
11 11 2016 11:52:56.772:DEBUG [plugin]: Loading plugin /PROJECT/node_modules/karma-mocha.
11 11 2016 11:52:56.774:DEBUG [plugin]: Loading plugin /PROJECT/node_modules/karma-mocha-reporter.
11 11 2016 11:52:56.775:DEBUG [plugin]: Loading plugin /PROJECT/node_modules/karma-phantomjs-launcher.
11 11 2016 11:52:56.779:DEBUG [plugin]: Loading plugin /PROJECT/node_modules/karma-webpack-with-fast-source-maps.
11 11 2016 11:52:56.871:DEBUG [web-server]: Instantiating middleware
11 11 2016 11:52:56.872:DEBUG [reporter]: Trying to load reporter: mocha
11 11 2016 11:52:56.874:DEBUG [reporter]: Trying to load color-version of reporter: mocha (mocha_color)
11 11 2016 11:52:56.874:DEBUG [reporter]: Couldn't load color-version.
11 11 2016 11:52:56.874:DEBUG [reporter]: Trying to load reporter: coverage
11 11 2016 11:52:56.875:DEBUG [reporter]: Trying to load color-version of reporter: coverage (coverage_color)
11 11 2016 11:52:56.875:DEBUG [reporter]: Couldn't load color-version.
11 11 2016 11:53:02.088:DEBUG [karma]: List of files has changed, trying to execute
11 11 2016 11:53:02.089:WARN [karma]: No captured browser, open http://localhost:9876/
11 11 2016 11:53:02.092:DEBUG [watcher]: Watching "/PROJECT/lib/test/main.test.js"
11 11 2016 11:53:02.097:INFO [karma]: Karma v1.3.0 server started at http://localhost:9876/
karma.Server: listening
11 11 2016 11:53:02.097:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
11 11 2016 11:53:02.150:INFO [launcher]: Starting browser PhantomJS
11 11 2016 11:53:02.150:DEBUG [temp-dir]: Creating temp dir at /var/folders/sl/0sdljlvx2h54p0zfc6xwlq3r0000gn/T/karma-46680807
11 11 2016 11:53:02.153:DEBUG [launcher]: /PROJECT/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs /var/folders/sl/0sdljlvx2h54p0zfc6xwlq3r0000gn/T/karma-46680807/capture.js
11 11 2016 11:53:02.802:DEBUG [web-server]: serving: /PROJECT/node_modules/karma/static/client.html
11 11 2016 11:53:02.810:DEBUG [web-server]: serving: /PROJECT/node_modules/karma/static/karma.js
11 11 2016 11:53:02.844:DEBUG [karma]: A browser has connected on socket /#ngqKXJPyANov64juAAAA
11 11 2016 11:53:02.847:DEBUG [web-server]: upgrade /socket.io/?EIO=3&transport=websocket&sid=ngqKXJPyANov64juAAAA
11 11 2016 11:53:02.867:INFO [PhantomJS 2.1.1 (Mac OS X 0.0.0)]: Connected on socket /#ngqKXJPyANov64juAAAA with id 46680807
karma.Server: browser_register
11 11 2016 11:53:02.868:DEBUG [launcher]: PhantomJS (id 46680807) captured in 0.771 secs
11 11 2016 11:53:02.868:DEBUG [karma]: All browsers are ready, executing
11 11 2016 11:53:02.868:DEBUG [karma]: Captured 1 browsers
karma.Server: run_start

START:
11 11 2016 11:53:02.872:DEBUG [phantomjs.launcher]:

11 11 2016 11:53:02.873:DEBUG [middleware:karma]: custom files null null
11 11 2016 11:53:02.873:DEBUG [middleware:karma]: Serving static request /context.html
11 11 2016 11:53:02.874:DEBUG [web-server]: serving: /PROJECT/node_modules/karma/static/context.html
11 11 2016 11:53:02.876:DEBUG [middleware:source-files]: Requesting /absolute/PROJECT/node_modules/mocha/mocha.css?68699fe2e12cd4578e48892d46c27fe84ee09b09 /
11 11 2016 11:53:02.876:DEBUG [middleware:source-files]: Fetching /PROJECT/node_modules/mocha/mocha.css
11 11 2016 11:53:02.876:DEBUG [web-server]: serving (cached): /PROJECT/node_modules/mocha/mocha.css
11 11 2016 11:53:02.877:DEBUG [web-server]: serving: /PROJECT/node_modules/karma/static/context.js
11 11 2016 11:53:02.877:DEBUG [middleware:source-files]: Requesting /absolute/PROJECT/node_modules/mocha/mocha.js?bc2b9e2e7b386b405368c9247d419c9a1d2718c8 /
11 11 2016 11:53:02.877:DEBUG [middleware:source-files]: Fetching /PROJECT/node_modules/mocha/mocha.js
11 11 2016 11:53:02.878:DEBUG [middleware:source-files]: Requesting /absolute/PROJECT/node_modules/karma-mocha/lib/adapter.js?e8826109cf50b958ee4bd667517729ffdd4de363 /
11 11 2016 11:53:02.878:DEBUG [middleware:source-files]: Fetching /PROJECT/node_modules/karma-mocha/lib/adapter.js
11 11 2016 11:53:02.878:DEBUG [middleware:source-files]: Requesting /absolute/PROJECT/lib/test/main.test.js?28190b21b2bd15e90f78cc70ec7104bc4c32672c /
11 11 2016 11:53:02.878:DEBUG [middleware:source-files]: Fetching /PROJECT/lib/test/main.test.js
11 11 2016 11:53:02.878:DEBUG [web-server]: serving (cached): /PROJECT/node_modules/mocha/mocha.js
11 11 2016 11:53:02.881:DEBUG [web-server]: serving (cached): /PROJECT/node_modules/karma-mocha/lib/adapter.js
11 11 2016 11:53:02.881:DEBUG [web-server]: serving (cached): /PROJECT/lib/test/main.test.js
karma.Server: browser_start
  restartOnFileChange
    ✔ skips tests after the first run
karma.Server: browser_complete
karma.Server: run_complete

Finished in 0.01 secs / 0.004 secs

SUMMARY:
✔ 1 test completed

#############################################################################
#                                                                           #
#                         CHANGED FILE - SECOND RUN                         #
#           0 tests run immediately, without fetching any files.            #
#                                                                           #
#############################################################################
11 11 2016 11:53:14.344:DEBUG [karma]: List of files has changed, trying to execute
11 11 2016 11:53:14.344:DEBUG [karma]: All browsers are ready, executing
11 11 2016 11:53:14.344:DEBUG [karma]: Captured 1 browsers
karma.Server: run_start

================================================================================

START:
karma.Server: browser_complete
11 11 2016 11:53:14.346:DEBUG [phantomjs.launcher]:

karma.Server: run_complete

Finished in 0.001 secs / 0 secs

SUMMARY:
✔ 0 tests completed

#############################################################################
#                                                                           #
#                          CHANGED FILE - THIRD RUN                         #
#              0 tests run immediately, THEN, after run_complete,           #
#                web-server tries to fetch files and times out.             #
#                                                                           #
#############################################################################
11 11 2016 11:53:22.937:DEBUG [karma]: List of files has changed, trying to execute
11 11 2016 11:53:22.937:DEBUG [karma]: All browsers are ready, executing
11 11 2016 11:53:22.937:DEBUG [karma]: Captured 1 browsers
karma.Server: run_start

================================================================================

START:
karma.Server: browser_complete
11 11 2016 11:53:22.940:DEBUG [phantomjs.launcher]:

karma.Server: run_complete

Finished in 0.003 secs / 0 secs

SUMMARY:
✔ 0 tests completed

11 11 2016 11:53:22.942:DEBUG [middleware:karma]: Serving static request /context.html
11 11 2016 11:53:22.943:DEBUG [web-server]: serving (cached): /PROJECT/node_modules/karma/static/context.html
11 11 2016 11:53:22.943:DEBUG [coverage]: Writing coverage to /PROJECT/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)
11 11 2016 11:53:22.946:DEBUG [web-server]: serving (cached): /PROJECT/node_modules/karma/static/context.js
11 11 2016 11:53:22.946:DEBUG [middleware:source-files]: Requesting /absolute/PROJECT/lib/test/main.test.js?a30b0747dc8cdfcc026c5f4713221372d6764ad7 /
11 11 2016 11:53:22.946:DEBUG [middleware:source-files]: Fetching /PROJECT/lib/test/main.test.js
11 11 2016 11:53:22.946:DEBUG [web-server]: serving (cached): /PROJECT/lib/test/main.test.js
karma.Server: browser_start
11 11 2016 11:53:33.110:WARN [PhantomJS 2.1.1 (Mac OS X 0.0.0)]: Disconnected (1 times), because no message in 10000 ms.
karma.Server: browser_error
PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR
    Disconnected, because no message in 10000 ms.
karma.Server: browser_complete

With restartOnFileChange: false
Notice on change that files are requested/fetched/served before tests are executed.
#############################################################################
#                                                                           #
#                                 FIRST RUN                                 #
#                                                                           #
#############################################################################
11 11 2016 12:01:09.610:DEBUG [config]: No config file specified.
11 11 2016 12:01:09.616:DEBUG [plugin]: Loading karma-* from /PROJECT/node_modules
11 11 2016 12:01:09.617:DEBUG [plugin]: Loading plugin /PROJECT/node_modules/karma-coverage.
11 11 2016 12:01:09.730:DEBUG [plugin]: Loading plugin /PROJECT/node_modules/karma-mocha.
11 11 2016 12:01:09.731:DEBUG [plugin]: Loading plugin /PROJECT/node_modules/karma-mocha-reporter.
11 11 2016 12:01:09.733:DEBUG [plugin]: Loading plugin /PROJECT/node_modules/karma-phantomjs-launcher.
11 11 2016 12:01:09.736:DEBUG [plugin]: Loading plugin /PROJECT/node_modules/karma-webpack-with-fast-source-maps.
11 11 2016 12:01:09.830:DEBUG [web-server]: Instantiating middleware
11 11 2016 12:01:09.831:DEBUG [reporter]: Trying to load reporter: mocha
11 11 2016 12:01:09.833:DEBUG [reporter]: Trying to load color-version of reporter: mocha (mocha_color)
11 11 2016 12:01:09.833:DEBUG [reporter]: Couldn't load color-version.
11 11 2016 12:01:09.833:DEBUG [reporter]: Trying to load reporter: coverage
11 11 2016 12:01:09.833:DEBUG [reporter]: Trying to load color-version of reporter: coverage (coverage_color)
11 11 2016 12:01:09.833:DEBUG [reporter]: Couldn't load color-version.
11 11 2016 12:01:15.095:DEBUG [karma]: List of files has changed, trying to execute
11 11 2016 12:01:15.095:WARN [karma]: No captured browser, open http://localhost:9876/
11 11 2016 12:01:15.098:DEBUG [watcher]: Watching "/PROJECT/lib/test/main.test.js"
11 11 2016 12:01:15.103:INFO [karma]: Karma v1.3.0 server started at http://localhost:9876/
karma.Server: listening
11 11 2016 12:01:15.103:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
11 11 2016 12:01:15.160:INFO [launcher]: Starting browser PhantomJS
11 11 2016 12:01:15.160:DEBUG [temp-dir]: Creating temp dir at /var/folders/sl/0sdljlvx2h54p0zfc6xwlq3r0000gn/T/karma-46312919
11 11 2016 12:01:15.162:DEBUG [launcher]: /PROJECT/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs /var/folders/sl/0sdljlvx2h54p0zfc6xwlq3r0000gn/T/karma-46312919/capture.js
11 11 2016 12:01:15.808:DEBUG [web-server]: serving: /PROJECT/node_modules/karma/static/client.html
11 11 2016 12:01:15.816:DEBUG [web-server]: serving: /PROJECT/node_modules/karma/static/karma.js
11 11 2016 12:01:15.852:DEBUG [karma]: A browser has connected on socket /#tIoQRCxsuT_SQOahAAAA
11 11 2016 12:01:15.855:DEBUG [web-server]: upgrade /socket.io/?EIO=3&transport=websocket&sid=tIoQRCxsuT_SQOahAAAA
11 11 2016 12:01:15.881:INFO [PhantomJS 2.1.1 (Mac OS X 0.0.0)]: Connected on socket /#tIoQRCxsuT_SQOahAAAA with id 46312919
karma.Server: browser_register
11 11 2016 12:01:15.881:DEBUG [launcher]: PhantomJS (id 46312919) captured in 0.777 secs
11 11 2016 12:01:15.882:DEBUG [karma]: All browsers are ready, executing
11 11 2016 12:01:15.882:DEBUG [karma]: Captured 1 browsers
karma.Server: run_start

START:
11 11 2016 12:01:15.886:DEBUG [phantomjs.launcher]:

11 11 2016 12:01:15.887:DEBUG [middleware:karma]: custom files null null
11 11 2016 12:01:15.887:DEBUG [middleware:karma]: Serving static request /context.html
11 11 2016 12:01:15.888:DEBUG [web-server]: serving: /PROJECT/node_modules/karma/static/context.html
11 11 2016 12:01:15.890:DEBUG [middleware:source-files]: Requesting /absolute/PROJECT/node_modules/mocha/mocha.css?68699fe2e12cd4578e48892d46c27fe84ee09b09 /
11 11 2016 12:01:15.890:DEBUG [middleware:source-files]: Fetching /PROJECT/node_modules/mocha/mocha.css
11 11 2016 12:01:15.891:DEBUG [web-server]: serving (cached): /PROJECT/node_modules/mocha/mocha.css
11 11 2016 12:01:15.891:DEBUG [web-server]: serving: /PROJECT/node_modules/karma/static/context.js
11 11 2016 12:01:15.892:DEBUG [middleware:source-files]: Requesting /absolute/PROJECT/node_modules/mocha/mocha.js?bc2b9e2e7b386b405368c9247d419c9a1d2718c8 /
11 11 2016 12:01:15.892:DEBUG [middleware:source-files]: Fetching /PROJECT/node_modules/mocha/mocha.js
11 11 2016 12:01:15.892:DEBUG [middleware:source-files]: Requesting /absolute/PROJECT/node_modules/karma-mocha/lib/adapter.js?e8826109cf50b958ee4bd667517729ffdd4de363 /
11 11 2016 12:01:15.892:DEBUG [middleware:source-files]: Fetching /PROJECT/node_modules/karma-mocha/lib/adapter.js
11 11 2016 12:01:15.893:DEBUG [middleware:source-files]: Requesting /absolute/PROJECT/lib/test/main.test.js?5e91226ec1f799a8de02c2be606edfde22e8089e /
11 11 2016 12:01:15.893:DEBUG [middleware:source-files]: Fetching /PROJECT/lib/test/main.test.js
11 11 2016 12:01:15.894:DEBUG [web-server]: serving (cached): /PROJECT/node_modules/mocha/mocha.js
11 11 2016 12:01:15.897:DEBUG [web-server]: serving (cached): /PROJECT/node_modules/karma-mocha/lib/adapter.js
11 11 2016 12:01:15.897:DEBUG [web-server]: serving (cached): /PROJECT/lib/test/main.test.js
karma.Server: browser_start
  restartOnFileChange
    ✔ skips tests after the first run
karma.Server: browser_complete
karma.Server: run_complete

Finished in 0.012 secs / 0.005 secs

SUMMARY:
✔ 1 test completed

#############################################################################
#                                                                           #
#                         CHANGED FILE - SECOND RUN                         #
#             Successfully executes tests, after fetching files.            #
#                                                                           #
#############################################################################
11 11 2016 12:01:21.555:DEBUG [karma]: List of files has changed, trying to execute
11 11 2016 12:01:21.555:DEBUG [karma]: All browsers are ready, executing
11 11 2016 12:01:21.555:DEBUG [karma]: Captured 1 browsers
karma.Server: run_start

================================================================================

START:
11 11 2016 12:01:21.556:DEBUG [phantomjs.launcher]:

11 11 2016 12:01:21.557:DEBUG [middleware:karma]: custom files null null
11 11 2016 12:01:21.557:DEBUG [middleware:karma]: Serving static request /context.html
11 11 2016 12:01:21.557:DEBUG [web-server]: serving (cached): /PROJECT/node_modules/karma/static/context.html
11 11 2016 12:01:21.559:DEBUG [web-server]: serving (cached): /PROJECT/node_modules/karma/static/context.js
11 11 2016 12:01:21.559:DEBUG [middleware:source-files]: Requesting /absolute/PROJECT/lib/test/main.test.js?eba96cf44a39ff7d29d003ec963558d0f4535ac6 /
11 11 2016 12:01:21.559:DEBUG [middleware:source-files]: Fetching /PROJECT/lib/test/main.test.js
11 11 2016 12:01:21.560:DEBUG [web-server]: serving (cached): /PROJECT/lib/test/main.test.js
karma.Server: browser_start
  restartOnFileChange
    ✔ skips tests after the first run
karma.Server: browser_complete
karma.Server: run_complete

Finished in 0.007 secs / 0.004 secs

SUMMARY:
✔ 1 test completed

Still failing.

Let me put here a comment on how this issue happens.
I'll try to find time in next several weeks to fix the issue and make a PR, but in case if someone is faster - you're welcome. Please ping me if you start to work on this.
Step by step what happens (karma 2.0.4) and why the issue appears:

File changes.

lib/server.js line 304 : file_list_modified event is handled

lib/server.js line 306 : the handler checks config.restartOnFileChange (this one is  true in our case)

lib/server.js line 307 : Server emits STOP event

lib/server.js line 309 : Server.executor.schedule() -> lib/executor.js line 34: capturedBrowsers.setAllToExecuting() -> lib/browser_collection.js line 36: set browser state to EXECUTING

static/karma.js line 235 : STOP event (emitted in step 4) is handled

static/karma.js line 236 : karma.complete method is called

static/karma.js line 204: karma emits COMPLETE event to the socket

lib/browser.js line 255 : COMPLETE event (emitted in step 8) is handled wtih onComplete function

lib/browser.js line 117 : onComplete method set the browser state to READY

Now the tests are started normally,lib/browser.js onStart method creates a new Result (line 101), and stores the total count of the specs to run....

Each spec is completed and the lib/browser.js has a notification about it in onResult (line 185). But in case if the browser state is READY, the onResult method just ignores that result:
see lib/browser.js lines 190-193 comment:

// ignore - probably results from last run (after server disconnecting)
    if (this.isReady()) {
      return
    }

So, once the restartOnFileChange config is set to TRUE, on the second run all the spec results are ignored, and the number of executed specs will be always 0.


Alpha Rarefaction

We should support alpha rarefaction in q2-diversity in order to get closer to full feature parity with QIIME 1.

This can be assigned to me.