You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the latest automatic test run on GHA, the following exception is raised during collection of the tests via pytest:
c:\hostedtoolcache\windows\python\3.8.6\x64\lib\site-packages\deerlab\dd_models.py:8: in <module>
import scipy.special as spc
c:\hostedtoolcache\windows\python\3.8.6\x64\lib\site-packages\scipy\special\__init__.py:633: in <module>
from . import _ufuncs
E ImportError: DLL load failed while importing _ufuncs: The specified module could not be found.
This issue is present for all Python versions on Windows.
Upon closer inspection it seems that there was a non crashing error reported during the numpy installation:
Installing collected packages: numpy
Attempting uninstall: numpy
Found existing installation: numpy 1.19.4
Uninstalling numpy-1.19.4:
Successfully uninstalled numpy-1.19.4
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'C:\\hostedtoolcache\\windows\\Python\\3.8.6\\x64\\Lib\\site-packages\\~umpy\\.libs\\libopenblas.NOIJJG62EMASZI6NYURL6JBKM4EVBGM7.gfortran-win_amd64.dll'
Consider using the `--user` option or check the permissions.
where there seems to be a permissions error. This is the first time that has happened for this workflow on GHA. This would explain the missing DLL when importing a Scipy module.
The quick way would be to just setup the DeerLab installation to be on a user-level with reduced privileges. This would also solve issues like #52.
The text was updated successfully, but these errors were encountered:
After careful examination I found the source of the error. While it is true that the error
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: (...)
appears in almost every install, it must be originating from some post-install script as the packages are actually properly installed. Still, ia user install using pipwin is not possible as the package does not implement that option.
The reason for the missing DLL files error
ImportError: DLL load failed while importing _ufuncs: The specified module could not be found.
is actually originating from the wrong Gohlke numpy wheels being installed. While DeerLab requires the pre-compiled numpy+mkl wheels, for some reason in the latest test run, the numpy-vanilla wheels had been installed. This is due to how pipwin handles the versions, it seems to download and install the latest version uploaded to the Gohlke repo (which right now seems to be the vanilla version).
In order to fix all these issues I patched my forked copy of pipwin and pointed the installer towards this repo instead of the oficial one. For now it seems to be working properly and with the DLL files being properly located after installation.
During the latest automatic test run on GHA, the following exception is raised during collection of the tests via
pytest
:This issue is present for all Python versions on Windows.
Upon closer inspection it seems that there was a non crashing error reported during the
numpy
installation:where there seems to be a permissions error. This is the first time that has happened for this workflow on GHA. This would explain the missing DLL when importing a Scipy module.
The quick way would be to just setup the DeerLab installation to be on a user-level with reduced privileges. This would also solve issues like #52.
The text was updated successfully, but these errors were encountered: