(6/21/2024) Following installation of SMAK 3.0 on a PC running windows 10 (not sure if this is exclusive to W10), encountered the following error when trying to run SMAK:
A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.0 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12
Likely, new versions of packages were released for Anaconda. Even Numpy versions that are < 2.0.0. may lead to this error.
NumPy 1.26 was found to solve the issue. To install:
pip install numpy==1.26.4
Then, SciPy also needed to be downgraded as outlined elsewhere in this forum:
pip install scipy==1.12.0
If after this fix you get an error like this:
Traceback (most recent call last):
File "C:\...\anaconda3\envs\smakenv\Lib\site-packages\smak\smak.py", line 196, in <module>
import torch
File "C:\...\anaconda3\envs\smakenv\lib\site-packages\torch\__init__.py", line 148, in <module>
raise err
OSError: [WinError 126] The specified module could not be found. Error loading "C:\...\anaconda3\envs\smakenv\lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.
Follow this simple fix involving the download of libomp140.x86_64.dll detailed here: https://stackoverflow.com/questions/78114412/import-torch-how-to-fix-oserror-winerror-126-error-loading-fbgemm-dll-or-depen
https://stackoverflow.com/questions/78641150/a-module-that-was-compiled-using-numpy-1-x-cannot-be-run-in-numpy-2-0-0