<p dir="auto">Hello. I'm new to python but i'm a fast study. Kindly bear with me. I'm trying to create an executable involving pdfminer.six. One of the requirements was genism which requires scipy and numpy. I installed the later two then installed gensim. Build finished successfully however when i tried to run my program, i got this error message<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/45507531/51555498-c752f900-1e88-11e9-9406-a2645711b9ef.PNG"><img src="https://user-images.githubusercontent.com/45507531/51555498-c752f900-1e88-11e9-9406-a2645711b9ef.PNG" alt="capture" style="max-width: 100%;"></a></p>
<p dir="auto">I then followed the instructions from <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pyinstaller/pyinstaller/commit/bf7877fc151dd1560469d508d303d3431393a483/hovercard" href="https://github.com/pyinstaller/pyinstaller/commit/bf7877fc151dd1560469d508d303d3431393a483">pyinstaller/pyinstaller@<tt>bf7877f</tt></a> but when i run the program again, i got this<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/45507531/51555647-20bb2800-1e89-11e9-81a9-5763b58c03ab.PNG"><img src="https://user-images.githubusercontent.com/45507531/51555647-20bb2800-1e89-11e9-81a9-5763b58c03ab.PNG" alt="2" style="max-width: 100%;"></a></p>
<p dir="auto">What could i be doing wrong? I'm running python 3.6.5, windows 10 64 bit....</p>
<p dir="auto">I pip installed the latest numpy and get the below error. The error goes away if I roll back to v1.15.4.<br>
The most closely related issue I could find is <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="363344806" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/12028" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/12028/hovercard" href="https://github.com/numpy/numpy/issues/12028">#12028</a>.</p>
<h3 dir="auto">Reproducing code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span></pre></div>
<h3 dir="auto">Error message:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    Traceback (most recent call last):
      File &quot;/home/trey/script.py&quot;, line 6, in &lt;module&gt;
        import numpy as np
      File &quot;/home/trey/.local/lib/python3.6/site-packages/numpy/__init__.py&quot;, line 142, in &lt;module&gt;
        from . import core
      File &quot;/home/trey/.local/lib/python3.6/site-packages/numpy/core/__init__.py&quot;, line 59, in &lt;module&gt;
        from . import numeric
      File &quot;/home/trey/.local/lib/python3.6/site-packages/numpy/core/numeric.py&quot;, line 3093, in &lt;module&gt;
        from . import fromnumeric
      File &quot;/home/trey/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py&quot;, line 17, in &lt;module&gt;
        from . import _methods
      File &quot;/home/trey/.local/lib/python3.6/site-packages/numpy/core/_methods.py&quot;, line 158, in &lt;module&gt;
        _NDARRAY_ARRAY_FUNCTION = mu.ndarray.__array_function__
    AttributeError: type object 'numpy.ndarray' has no attribute '__array_function__'"><pre class="notranslate"><code class="notranslate">    Traceback (most recent call last):
      File "/home/trey/script.py", line 6, in &lt;module&gt;
        import numpy as np
      File "/home/trey/.local/lib/python3.6/site-packages/numpy/__init__.py", line 142, in &lt;module&gt;
        from . import core
      File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/__init__.py", line 59, in &lt;module&gt;
        from . import numeric
      File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/numeric.py", line 3093, in &lt;module&gt;
        from . import fromnumeric
      File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 17, in &lt;module&gt;
        from . import _methods
      File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/_methods.py", line 158, in &lt;module&gt;
        _NDARRAY_ARRAY_FUNCTION = mu.ndarray.__array_function__
    AttributeError: type object 'numpy.ndarray' has no attribute '__array_function__'
</code></pre></div>
<h3 dir="auto">Numpy/Python version information:</h3>
<p dir="auto">1.16.0<br>
3.6.7 (default, Oct 22 2018, 11:32:17)<br>
[GCC 8.2.0]</p>