Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot import mkl_fft after manual build and install of v1.3.10 on W11 #113

Closed
NairoDorian opened this issue Jul 20, 2024 · 5 comments
Closed

Comments

@NairoDorian
Copy link

Hello I installed oneAPI BaseToolKit

I added the environment variables and manually installed v1.3.10 of mkl_fft using the setup.py install command

No when I try to import mkl_fft in a python script in the venv I installed everything I get this error :

import mkl_fft
Traceback (most recent call last):
File "", line 1, in
File "C:...\MKL_FFT\venv\Lib\site-packages\mkl_fft_init_.py", line 27, in
from ._pydfti import (fft, ifft, fft2, ifft2, fftn, ifftn, rfft, irfft,
ImportError: DLL load failed while importing _pydfti: The specified module could not be found.

I tried another version of python but it didn't solve my issue

Do you have any idea why it might not work ?

I am desperate at figuring out to use the intel mkl fft or the ipp ftt, whatever is the fastest

@NairoDorian
Copy link
Author

Even tried to use the Intel® Distribution for Python with 1.3.8 of mkl_fft, still cannot import it
\venv\Lib\site-packages\mkl_fft_init_.py", line 27
from ._pydfti import (fft, ifft, fft2, ifft2, fftn, ifftn, rfft, irfft,
r = previousimport(*args, **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'mkl_fft._pydfti'

@oleksandr-pavlyk
Copy link
Collaborator

Could you please check if the advice from IntelPython/dpctl#1745 (comment) helps?

This should allow Python find MKL library DLLs as failure to find them trips ModuleNotFoundError or ImportError.

Additionally, please check that \venv\Lib\site-packages\mkl_fft folder does contains the _pydfti.*.pyd file.

@NairoDorian
Copy link
Author

now i get this error :

import mkl_fft
File "C:\Program Files\Python311\Lib\site-packages\mkl_fft_init_.py", line 31, in
import mkl_fft.interfaces
File "C:\Program Files\Python311\Lib\site-packages\mkl_fft\interfaces_init_.py", line 27, in
from . import scipy_fft
File "C:\Program Files\Python311\Lib\site-packages\mkl_fft\interfaces\scipy_fft.py", line 27, in
from .._scipy_fft_backend import *
File "C:\Program Files\Python311\Lib\site-packages\mkl_fft_scipy_fft_backend.py", line 29, in
import mkl
ModuleNotFoundError: No module named 'mkl'

@oleksandr-pavlyk
Copy link
Collaborator

Please make sure that mkl-service package is installed, and you have \venv\Lib\site-packages\mkl folder with files in it.

@NairoDorian
Copy link
Author

This is working now, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants