<p dir="auto">Kindly, share your insights regarding the following error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="  File &quot;source\matrix_gen.py&quot;, line 68, in &lt;module&gt;
    main()
  File &quot;source\matrix_gen.py&quot;, line 22, in main
    data = pd.read_csv(sys.argv[1], parse_dates=True, dayfirst=True)# argv[1]: stock_symbol.txt
  File &quot;C:\Users\aims\Anaconda3\envs\py35\lib\site-packages\pandas\io\parsers.py&quot;, line 678, in parser_f
    return _read(filepath_or_buffer, kwds)
  File &quot;C:\Users\aims\Anaconda3\envs\py35\lib\site-packages\pandas\io\parsers.py&quot;, line 440, in _read
    parser = TextFileReader(filepath_or_buffer, **kwds)
  File &quot;C:\Users\aims\Anaconda3\envs\py35\lib\site-packages\pandas\io\parsers.py&quot;, line 787, in __init__
    self._make_engine(self.engine)
  File &quot;C:\Users\aims\Anaconda3\envs\py35\lib\site-packages\pandas\io\parsers.py&quot;, line 1014, in _make_engine
    self._engine = CParserWrapper(self.f, **self.options)
  File &quot;C:\Users\aims\Anaconda3\envs\py35\lib\site-packages\pandas\io\parsers.py&quot;, line 1708, in __init__
    self._reader = parsers.TextReader(src, **kwds)
  File &quot;pandas\_libs\parsers.pyx&quot;, line 384, in pandas._libs.parsers.TextReader.__cinit__
  File &quot;pandas\_libs\parsers.pyx&quot;, line 697, in pandas._libs.parsers.TextReader._setup_parser_source
OSError: Initializing from file failed"><pre class="notranslate"><code class="notranslate">  File "source\matrix_gen.py", line 68, in &lt;module&gt;
    main()
  File "source\matrix_gen.py", line 22, in main
    data = pd.read_csv(sys.argv[1], parse_dates=True, dayfirst=True)# argv[1]: stock_symbol.txt
  File "C:\Users\aims\Anaconda3\envs\py35\lib\site-packages\pandas\io\parsers.py", line 678, in parser_f
    return _read(filepath_or_buffer, kwds)
  File "C:\Users\aims\Anaconda3\envs\py35\lib\site-packages\pandas\io\parsers.py", line 440, in _read
    parser = TextFileReader(filepath_or_buffer, **kwds)
  File "C:\Users\aims\Anaconda3\envs\py35\lib\site-packages\pandas\io\parsers.py", line 787, in __init__
    self._make_engine(self.engine)
  File "C:\Users\aims\Anaconda3\envs\py35\lib\site-packages\pandas\io\parsers.py", line 1014, in _make_engine
    self._engine = CParserWrapper(self.f, **self.options)
  File "C:\Users\aims\Anaconda3\envs\py35\lib\site-packages\pandas\io\parsers.py", line 1708, in __init__
    self._reader = parsers.TextReader(src, **kwds)
  File "pandas\_libs\parsers.pyx", line 384, in pandas._libs.parsers.TextReader.__cinit__
  File "pandas\_libs\parsers.pyx", line 697, in pandas._libs.parsers.TextReader._setup_parser_source
OSError: Initializing from file failed
</code></pre></div>
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<p dir="auto"><code class="notranslate">test.txt</code> and <code class="notranslate">test_é.txt</code> are the same file, only the name change:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pd.read_csv('test.txt')
Out[3]: 
   1 1 1
0  1 1 1
1  1 1 1

pd.read_csv('test_é.txt')
Traceback (most recent call last):

  File &quot;&lt;ipython-input-4-fd67679d1d17&gt;&quot;, line 1, in &lt;module&gt;
    pd.read_csv('test_é.txt')

  File &quot;d:\app\python36\lib\site-packages\pandas\io\parsers.py&quot;, line 646, in parser_f
    return _read(filepath_or_buffer, kwds)

  File &quot;d:\app\python36\lib\site-packages\pandas\io\parsers.py&quot;, line 389, in _read
    parser = TextFileReader(filepath_or_buffer, **kwds)

  File &quot;d:\app\python36\lib\site-packages\pandas\io\parsers.py&quot;, line 730, in __init__
    self._make_engine(self.engine)

  File &quot;d:\app\python36\lib\site-packages\pandas\io\parsers.py&quot;, line 923, in _make_engine
    self._engine = CParserWrapper(self.f, **self.options)

  File &quot;d:\app\python36\lib\site-packages\pandas\io\parsers.py&quot;, line 1390, in __init__
    self._reader = _parser.TextReader(src, **kwds)

  File &quot;pandas\parser.pyx&quot;, line 373, in pandas.parser.TextReader.__cinit__ (pandas\parser.c:4184)

  File &quot;pandas\parser.pyx&quot;, line 669, in pandas.parser.TextReader._setup_parser_source (pandas\parser.c:8471)

OSError: Initializing from file failed
"><pre class="notranslate"><span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-s">'test.txt'</span>)
<span class="pl-v">Out</span>[<span class="pl-c1">3</span>]: 
   <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span>
<span class="pl-c1">0</span>  <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span>
<span class="pl-c1">1</span>  <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span>

<span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-s">'test_é.txt'</span>)
<span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>):

  <span class="pl-v">File</span> <span class="pl-s">"&lt;ipython-input-4-fd67679d1d17&gt;"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span>
    <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-s">'test_é.txt'</span>)

  <span class="pl-v">File</span> <span class="pl-s">"d:<span class="pl-cce">\a</span>pp\python36\lib\site-packages\pandas\io\parsers.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">646</span>, <span class="pl-s1">in</span> <span class="pl-s1">parser_f</span>
    <span class="pl-k">return</span> <span class="pl-en">_read</span>(<span class="pl-s1">filepath_or_buffer</span>, <span class="pl-s1">kwds</span>)

  <span class="pl-v">File</span> <span class="pl-s">"d:<span class="pl-cce">\a</span>pp\python36\lib\site-packages\pandas\io\parsers.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">389</span>, <span class="pl-s1">in</span> <span class="pl-s1">_read</span>
    <span class="pl-s1">parser</span> <span class="pl-c1">=</span> <span class="pl-v">TextFileReader</span>(<span class="pl-s1">filepath_or_buffer</span>, <span class="pl-c1">**</span><span class="pl-s1">kwds</span>)

  <span class="pl-v">File</span> <span class="pl-s">"d:<span class="pl-cce">\a</span>pp\python36\lib\site-packages\pandas\io\parsers.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">730</span>, <span class="pl-s1">in</span> <span class="pl-s1">__init__</span>
    <span class="pl-s1">self</span>.<span class="pl-en">_make_engine</span>(<span class="pl-s1">self</span>.<span class="pl-s1">engine</span>)

  <span class="pl-v">File</span> <span class="pl-s">"d:<span class="pl-cce">\a</span>pp\python36\lib\site-packages\pandas\io\parsers.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">923</span>, <span class="pl-s1">in</span> <span class="pl-s1">_make_engine</span>
    <span class="pl-s1">self</span>.<span class="pl-s1">_engine</span> <span class="pl-c1">=</span> <span class="pl-v">CParserWrapper</span>(<span class="pl-s1">self</span>.<span class="pl-s1">f</span>, <span class="pl-c1">**</span><span class="pl-s1">self</span>.<span class="pl-s1">options</span>)

  <span class="pl-v">File</span> <span class="pl-s">"d:<span class="pl-cce">\a</span>pp\python36\lib\site-packages\pandas\io\parsers.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1390</span>, <span class="pl-s1">in</span> <span class="pl-s1">__init__</span>
    <span class="pl-s1">self</span>.<span class="pl-s1">_reader</span> <span class="pl-c1">=</span> <span class="pl-s1">_parser</span>.<span class="pl-v">TextReader</span>(<span class="pl-s1">src</span>, <span class="pl-c1">**</span><span class="pl-s1">kwds</span>)

  <span class="pl-v">File</span> <span class="pl-s">"pandas\parser.pyx"</span>, <span class="pl-s1">line</span> <span class="pl-c1">373</span>, <span class="pl-s1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">parser</span>.<span class="pl-v">TextReader</span>.<span class="pl-en">__cinit__</span> (<span class="pl-s1">pandas</span>\p<span class="pl-s1">arser</span>.<span class="pl-s1">c</span>:<span class="pl-c1">4184</span>)

  <span class="pl-v">File</span> <span class="pl-s">"pandas\parser.pyx"</span>, <span class="pl-s1">line</span> <span class="pl-c1">669</span>, <span class="pl-s1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">parser</span>.<span class="pl-v">TextReader</span>.<span class="pl-en">_setup_parser_source</span> (<span class="pl-s1">pandas</span>\p<span class="pl-s1">arser</span>.<span class="pl-s1">c</span>:<span class="pl-c1">8471</span>)

<span class="pl-v">OSError</span>: <span class="pl-v">Initializing</span> <span class="pl-k">from</span> <span class="pl-s1">file</span> <span class="pl-s1">failed</span></pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">Pandas return OSError when trying to read a file with accents in file path.</p>
<p dir="auto">The problem is new (Since I upgraded to Python 3.6 and Pandas 0.19.2)</p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: None<br>
python: 3.6.0.final.0<br>
python-bits: 64<br>
OS: Windows<br>
OS-release: 7<br>
machine: AMD64<br>
processor: Intel64 Family 6 Model 94 Stepping 3, GenuineIntel<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: fr<br>
LOCALE: None.None</p>
<p dir="auto">pandas: 0.19.2<br>
nose: None<br>
pip: 9.0.1<br>
setuptools: 32.3.1<br>
Cython: 0.25.2<br>
numpy: 1.11.3<br>
scipy: 0.18.1<br>
statsmodels: None<br>
xarray: None<br>
IPython: 5.1.0<br>
sphinx: 1.5.1<br>
patsy: None<br>
dateutil: 2.6.0<br>
pytz: 2016.10<br>
blosc: None<br>
bottleneck: 1.2.0<br>
tables: None<br>
numexpr: 2.6.1<br>
matplotlib: 1.5.3<br>
openpyxl: None<br>
xlrd: None<br>
xlwt: None<br>
xlsxwriter: None<br>
lxml: None<br>
bs4: None<br>
html5lib: 0.999999999<br>
httplib2: None<br>
apiclient: None<br>
sqlalchemy: 1.1.4<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.9.3<br>
boto: None<br>
pandas_datareader: None</p>
</details>