Issue 1:
System information

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

TensorFlow installed from (source or binary): binary

TensorFlow version (use command below): 1.2.1

Python version: 3.6

Describe the problem

My tensorflow script on Ubuntu 16.04 works with the following code.

file=tf.gfile.GFile('../../data/Gutenberg/txt/Anthony Trollope___La Vendée.txt')
text = file.read()

However on Windows 10

file=tf.gfile.GFile('../../data/Gutenberg/txt/Anthony Trollope___La Vendée.txt')
text = file.read()

gives the following error. This happens when the filenames have special characters in them

---------------------------------------------------------------------------
NotFoundError Traceback (most recent call last)
<ipython-input-22-669eb528a808> in <module>()
----> 1 text = file.read()

C:\Users\xxx\Anaconda3\lib\site-packages\tensorflow\python\lib\io\file_io.py in read(self, n)
116 string if in string (regular) mode.
117 """
--> 118 self._preread_check()
119 with errors.raise_exception_on_not_ok_status() as status:
120 if n == -1:

C:\Users\xxx\Anaconda3\lib\site-packages\tensorflow\python\lib\io\file_io.py in _preread_check(self)
76 with errors.raise_exception_on_not_ok_status() as status:
77 self._read_buf = pywrap_tensorflow.CreateBufferedInputStream(
---> 78 compat.as_bytes(self.__name), 1024 * 512, status)
79
80 def _prewrite_check(self):

C:\Users\xxx\Anaconda3\lib\contextlib.py in __exit__(self, type, value, traceback)
87 if type is None:
88 try:
---> 89 next(self.gen)
90 except StopIteration:
91 return

C:\Users\xxx\Anaconda3\lib\site-packages\tensorflow\python\framework\errors_impl.py in raise_exception_on_not_ok_status()
464 None, None,
465 compat.as_text(pywrap_tensorflow.TF_Message(status)),
--> 466 pywrap_tensorflow.TF_GetCode(status))
467 finally:
468 pywrap_tensorflow.TF_DeleteStatus(status)

NotFoundError: NewRandomAccessFile failed to Create/Open: ../../data/Gutenberg/txt/Anthony Trollope___La Vendée.txt : The system cannot find the file specified.

Note: pythons open()/read() works well on both platforms. This error occurs for other file names with special characters on windows too. I moved my data readers from python to tf api and data readers, the pipeline works on ubuntu but breaks in windows.

Issue 2:
System information

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

TensorFlow installed from (source or binary): binary from PyPI

TensorFlow version (use command below): 1.1.0

Exact command to reproduce:

from tensorflow.contrib.rnn.python.ops.gru_ops import *

Describe the problem

I encountered this when importing keras but it's reproducible with the command above. My virtualenv is in a folder that has an accented character in its name (see the log below). If I install TensorFlow globally, it works.

Source code / logs

D:\Marci\Programozás\algorimp\test>venv\scripts\python -c "from tensorflow.contrib.rnn.python.ops.gru_ops import *"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\Marci\Programozás\algorimp\test\venv\lib\site-packages\tensorflow\contrib\__init__.py", line 26, in <module>
from tensorflow.contrib import crf
File "D:\Marci\Programozás\algorimp\test\venv\lib\site-packages\tensorflow\contrib\crf\__init__.py", line 32, in <module>
from tensorflow.contrib.crf.python.ops.crf import _lengths_to_masks
File "D:\Marci\Programozás\algorimp\test\venv\lib\site-packages\tensorflow\contrib\crf\python\ops\crf.py", line 44, in <module>
from tensorflow.contrib.rnn.python.ops import core_rnn_cell
File "D:\Marci\Programozás\algorimp\test\venv\lib\site-packages\tensorflow\contrib\rnn\__init__.py", line 80, in <module>
from tensorflow.contrib.rnn.python.ops.gru_ops import *
File "D:\Marci\Programozás\algorimp\test\venv\lib\site-packages\tensorflow\contrib\rnn\python\ops\gru_ops.py", line 32, in <module>
resource_loader.get_path_to_datafile("_gru_ops.so"))
File "D:\Marci\Programozás\algorimp\test\venv\lib\site-packages\tensorflow\contrib\util\loader.py", line 55, in load_op_library
ret = load_library.load_op_library(path)
File "D:\Marci\Programozás\algorimp\test\venv\lib\site-packages\tensorflow\python\framework\load_library.py", line 64, in load_op_library
None, None, error_msg, error_code)
tensorflow.python.framework.errors_impl.NotFoundError: D:\Marci\Programozás\algorimp\test\venv\lib\site-packages\tensorflow\contrib\rnn\python\ops\_gru_ops.dll not found