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

Getting error when trying to import numpy 1.23.5 with mkl_fft >1.3.8 in Python 3.8 environment #105

Open
DManowitz opened this issue Jun 9, 2024 · 0 comments

Comments

@DManowitz
Copy link

I have installed numpy 1.23.5 in a Python 3.8 environment on Windows. If I have mkl_fft >1.3.8 installed, I get the following exception when I try to import numpy:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\...\lib\site-packages\numpy\__init__.py", line 165, in <module>
    from . import fft
  File "C:\...\lib\site-packages\numpy\fft\__init__.py", line 216, in <module>
    import mkl_fft._numpy_fft as _nfft
  File "C:\...\lib\site-packages\mkl_fft\__init__.py", line 27, in <module>
    from ._pydfti import (fft, ifft, fft2, ifft2, fftn, ifftn, rfft, irfft,
  File "mkl_fft\\_pydfti.pyx", line 32, in init mkl_fft._pydfti
AttributeError: partially initialized module 'numpy' has no attribute '__version__' (most likely due to a circular import)

However, with mkl_fft 1.3.8 installed, I get no error.

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

1 participant