Issue 1:
Using TensorFlow backend.

ImportError Traceback (most recent call last)

C:\ProgramData\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:\ProgramData\Anaconda3\lib\importlib_init_.py in import_module(name, package)

125 level += 1

--> 126 return _bootstrap._gcd_import(name[level:], package, level)

127

C:\ProgramData\Anaconda3\lib\importlib_bootstrap.py in _gcd_import(name, package, level)

C:\ProgramData\Anaconda3\lib\importlib_bootstrap.py in find_and_load(name, import)

C:\ProgramData\Anaconda3\lib\importlib_bootstrap.py in find_and_load_unlocked(name, import)

C:\ProgramData\Anaconda3\lib\importlib_bootstrap.py in _load_unlocked(spec)

C:\ProgramData\Anaconda3\lib\importlib_bootstrap.py in module_from_spec(spec)

C:\ProgramData\Anaconda3\lib\importlib_bootstrap_external.py in create_module(self, spec)

C:\ProgramData\Anaconda3\lib\importlib_bootstrap.py in _call_with_frames_removed(f, *args, **kwds)

ImportError: DLL load failed: No se puede encontrar el módulo especificado.

During handling of the above exception, another exception occurred:

ModuleNotFoundError Traceback (most recent call last)

C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in ()

57

---> 58 from tensorflow.python.pywrap_tensorflow_internal import *

59 from tensorflow.python.pywrap_tensorflow_internal import version

C:\ProgramData\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:\ProgramData\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:\ProgramData\Anaconda3\lib\importlib_init_.py in import_module(name, package)

125 level += 1

--> 126 return _bootstrap._gcd_import(name[level:], package, level)

127

ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'

During handling of the above exception, another exception occurred:

ImportError Traceback (most recent call last)

in ()

----> 1 from keras.models import Sequential, Model

2 from keras.layers import *

3 from keras.layers.advanced_activations import LeakyReLU

4 from keras.activations import relu

5 from keras.initializers import RandomNormal

C:\ProgramData\Anaconda3\lib\site-packages\keras_init_.py in ()

1 from future import absolute_import

2

----> 3 from . import utils

4 from . import activations

5 from . import applications

C:\ProgramData\Anaconda3\lib\site-packages\keras\utils_init_.py in ()

4 from . import data_utils

5 from . import io_utils

----> 6 from . import conv_utils

7

8 # Globally-importable utils.

C:\ProgramData\Anaconda3\lib\site-packages\keras\utils\conv_utils.py in ()

1 from six.moves import range

2 import numpy as np

----> 3 from .. import backend as K

4

5

C:\ProgramData\Anaconda3\lib\site-packages\keras\backend_init_.py in ()

81 elif _BACKEND == 'tensorflow':

82 sys.stderr.write('Using TensorFlow backend.\n')

---> 83 from .tensorflow_backend import *

84 else:

85 raise ValueError('Unknown backend: ' + str(_BACKEND))

C:\ProgramData\Anaconda3\lib\site-packages\keras\backend\tensorflow_backend.py in ()

----> 1 import tensorflow as tf

2 from tensorflow.python.training import moving_averages

3 from tensorflow.python.ops import tensor_array_ops

4 from tensorflow.python.ops import control_flow_ops

5 from tensorflow.python.ops import functional_ops

C:\ProgramData\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:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python_init_.py in ()

47 import numpy as np

48

---> 49 from tensorflow.python import pywrap_tensorflow

50

51 # Protocol buffers

C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in ()

70 for some common reasons and solutions. Include the entire stack trace

71 above this error message when asking for help.""" % traceback.format_exc()

---> 72 raise ImportError(msg)

73

74 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long

ImportError: Traceback (most recent call last):

File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper

return importlib.import_module(mname)

File "C:\ProgramData\Anaconda3\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: No se puede encontrar el módulo especificado.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in

from tensorflow.python.pywrap_tensorflow_internal import *

File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in

_pywrap_tensorflow_internal = swig_import_helper()

File "C:\ProgramData\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:\ProgramData\Anaconda3\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.

I'm in a anaconda environment.

CONDA LIST:

(gan) C:\Users\ZeroCool22\faceswap-GAN>conda list

packages in environment at C:\ProgramData\Anaconda3\envs\gan:

Name Version Build Channel

absl-py 0.1.10

backports 1.0 py36h81696a8_1

backports.weakref 1.0rc1 py36_0

bleach 1.5.0 py36_0 conda-forge

boost 1.64.0 py36_vc14_4 [vc14] conda-forge

boost-cpp 1.64.0 vc14_1 [vc14] conda-forge

bzip2 1.0.6 vc14_1 [vc14] conda-forge

ca-certificates 2017.08.26 h94faf87_0

certifi 2018.1.18 py36_0

click 6.7

cudatoolkit 8.0 3 anaconda

cudnn 6.0 0 anaconda

decorator 4.0.11 py36_0 conda-forge

dlib 19.4 np112py36_201 conda-forge

dlib 19.9.0

face-recognition 1.2.1

face-recognition-models 0.3.0

ffmpeg 3.4.1 1 conda-forge

freetype 2.8.1 vc14_0 [vc14] conda-forge

h5py 2.7.1 py36_2 conda-forge

hdf5 1.10.1 vc14_1 [vc14] conda-forge

html5lib 0.9999999 py36_0 conda-forge

icc_rt 2017.0.4 h97af966_0

icu 58.2 vc14_0 [vc14] conda-forge

imageio 2.1.2 py36_0 conda-forge

intel-openmp 2018.0.0 hd92c6cd_8

jpeg 9b vc14_2 [vc14] conda-forge

keras 2.0.9 py36_0 conda-forge

libgpuarray 0.7.5 vc14_0 [vc14] conda-forge

libiconv 1.14 vc14_4 [vc14] conda-forge

libpng 1.6.34 vc14_0 [vc14] conda-forge

libtiff 4.0.9 vc14_0 [vc14] conda-forge

libwebp 0.5.2 vc14_7 [vc14] conda-forge

libxml2 2.9.3 vc14_9 [vc14] conda-forge

mako 1.0.7 py36_0 conda-forge

Markdown 2.6.11

markdown 2.6.9 py36_0 conda-forge

markupsafe 1.0 py36_0 conda-forge

mkl 2018.0.1 h2108138_4

moviepy 0.2.3.2 py36_0 conda-forge

numpy 1.14.0

numpy 1.12.1 py36hf30b8aa_1 anaconda

olefile 0.44 py36_0 conda-forge

opencv 3.3.0 py36_200 conda-forge

openssl 1.0.2n h74b6da3_0

pillow 5.0.0 py36_0 conda-forge

pip 9.0.1 py36_1 conda-forge

protobuf 3.5.1 py36_vc14_3 [vc14] conda-forge

protobuf 3.5.1

pygpu 0.7.5 py36_0 conda-forge

python 3.6.4 0 conda-forge

pyyaml 3.12 py36_1 conda-forge

qt 5.6.2 vc14_1 [vc14] conda-forge

scipy 1.0.0 py36h1260518_0

setuptools 38.5.1

setuptools 38.4.0 py36_0 conda-forge

six 1.11.0 py36_1 conda-forge

six 1.11.0

sqlite 3.20.1 vc14_2 [vc14] conda-forge

tensorboard 0.4.0rc3 py36_2 conda-forge

tensorflow-gpu 1.3.0

tensorflow-tensorboard 0.1.8

theano 1.0.1 py36_1 conda-forge

tk 8.6.7 vc14_0 [vc14] conda-forge

tqdm 4.11.2 py36_0 conda-forge

vc 14 0 conda-forge

vs2015_runtime 14.0.25420 0 conda-forge

webencodings 0.5 py36_0 conda-forge

werkzeug 0.14.1 py_0 conda-forge

Werkzeug 0.14.1

wheel 0.30.0

wheel 0.30.0 py36_2 conda-forge

wincertstore 0.2 py36_0 conda-forge

yaml 0.1.7 vc14_0 [vc14] conda-forge

zlib 1.2.11 vc14_0 [vc14] conda-forge

(gan) C:\Users\ZeroCool22\faceswap-GAN>

tensorflow_self_check.py results:

(gan) C:\Users\ZeroCool22\Desktop\Nueva carpeta (3)>python tensorflow_self_check.py

ERROR: Failed to import the TensorFlow module.

Python version is 3.6.

TensorFlow is installed at: C:\ProgramData\Anaconda3\envs\gan\lib\site-packages\tensorflow

All required DLLs appear to be present. Please open an issue on the

TensorFlow GitHub page: https://github.com/tensorflow/tensorflow/issues

OS: Windows 10

GPU: 1080TI

CPU: 7700K

RAM: 32gb

Issue 2:
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No, problem appears on import (import tensorflow as tf).

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10 x64

TensorFlow installed from (source or binary): binary (pip --no-cache-dir) install --upgrade tensorflow

TensorFlow version (use command below): 1.6.0 (install says tensorflow-1.6.0-cp36-cp36m-win_amd64.whl)

Python version: 3.6.4 x64

Bazel version (if compiling from source): n/a

GCC/Compiler version (if compiling from source): n/a

CUDA/cuDNN version: n/a

GPU model and memory: n/a

Exact command to reproduce: import tensorflow as tf

You can collect some of this information using our environment capture script:

https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh

You can obtain the TensorFlow version with

python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"

Describe the problem

When installing tensorflow 1.6.0 the import reports problems. See log below. Tried uninstalled r1.6 and reinstalled 1.5.0 to see if something else might be the problem. 1.5.0 works like a charm. Tried a clean install of 1.6.0 without any luck.

Ran the 'tensorflow_self_check.py' script. See log below.

Source code / logs

Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 658, in _load_unlocked
File "<frozen importlib._bootstrap>", line 571, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 922, in create_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Jonas\AppData\Local\Programs\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:\Users\Jonas\AppData\Local\Programs\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 "<stdin>", line 1, in <module>
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
from tensorflow.python import *
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 658, in _load_unlocked
File "<frozen importlib._bootstrap>", line 571, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 922, in create_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Jonas\AppData\Local\Programs\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:\Users\Jonas\AppData\Local\Programs\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.

------------------------

When running 'tensorflow_self_check.py' this is what is reported. Supposed to have installed the CPU version so cuda is not installed.

ERROR: Failed to import the TensorFlow module.

- Python version is 3.6.

- TensorFlow is installed at: C:\Users\Jonas\AppData\Local\Programs\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 '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.