<p dir="auto">Hi,</p>
<p dir="auto">It's not clear to me what 2D/3D corner case I've found myself in between Scipy, pyinstaller, and GH actions, but since it seemed related to other issues (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="878802120" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/14002" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/14002/hovercard" href="https://github.com/scipy/scipy/issues/14002">#14002</a>), I wanted to report, feel free to close if best reported in one of those other tools instead.</p>
<p dir="auto">As part of the <a href="https://github.com/CellProfiler/CellProfiler">CellProfiler</a> <a href="https://github.com/CellProfiler/CellProfiler/blob/4.2.x/.github/workflows/release.yml">build process on GH actions</a> we pip install SciPy (just from PyPI, nothing fancy) as part of the process of installing CellProfiler then use pyinstaller to package in our dependencies via the <a href="https://github.com/CellProfiler/distribution/blob/b1b653ae85c0fb5b04030627614e2228c8152936/windows/CellProfiler.spec">linked spec</a> . When we tested a release we put together yesterday, we found that on Windows but not Mac pyinstaller was unable to find the OpenBLAS dll, leading to a bunch of messages ala the below</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2022-12-15T13:28:48.4432784Z 112298 WARNING: lib not found: libopenblas-57db09cfe174768fb409a6bb5a530d4c.dll dependency of c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\scipy\sparse\linalg\_isolve\_iterative.cp38-win_amd64.pyd
2022-12-15T13:28:48.4550912Z 112314 WARNING: lib not found: libopenblas-57db09cfe174768fb409a6bb5a530d4c.dll dependency of c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\scipy\special\_ufuncs.cp38-win_amd64.pyd"><pre class="notranslate"><code class="notranslate">2022-12-15T13:28:48.4432784Z 112298 WARNING: lib not found: libopenblas-57db09cfe174768fb409a6bb5a530d4c.dll dependency of c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\scipy\sparse\linalg\_isolve\_iterative.cp38-win_amd64.pyd
2022-12-15T13:28:48.4550912Z 112314 WARNING: lib not found: libopenblas-57db09cfe174768fb409a6bb5a530d4c.dll dependency of c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\scipy\special\_ufuncs.cp38-win_amd64.pyd
</code></pre></div>
<p dir="auto">The application was built, but then failed on launch due to scipy.libs not being able to be found.</p>
<p dir="auto">We had last built in August with 1.9.0, so after trying other stuff we tried pinning to that, and the build succeeded - I didn't test 1.9.1 or .2 . Is it expected that the location or packaging of that dll would be different in 1.9.0 vs 1.9.3 ? I did <a href="https://github.com/CellProfiler/distribution/commits/4.2.x/windows/CellProfiler.spec">try a bunch of things</a> (to be fair, my PyInstaller skills are poor hahaha) to try to get it to find the dll, but none succeded. Thanks in advance for any help you can give - happy to upload build logs or anything else you think may help.</p>
<h3 dir="auto">Describe your issue.</h3>
<p dir="auto">From scipy 1.9.1 to scipy 1.9.3 the directory used to install dlls on windows changed.<br>
scipy-1.9.1: dlls are installed in .../site-packages/scipy/.libs<br>
scipy-1.9.3: dlls are installed in .../site-packages/scipy.libs</p>
<p dir="auto">This causes pyinstaller builds using scipy-1.9.3 to fail as the expected dll location changed.</p>
<p dir="auto">If this change was intented I will file a bug report with pyinstaller to update the scipy installer hook.</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="None"><pre class="notranslate"><span class="pl-c1">None</span></pre></div>
<h3 dir="auto">Error message</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="None"><pre class="notranslate">None</pre></div>
<h3 dir="auto">SciPy/NumPy/Python version information</h3>
<p dir="auto">1.9.3 1.23.1 sys.version_info(major=3, minor=10, micro=6, releaselevel='final', serial=0)</p>