fails to locate Windows DLLs

Bug #752194 reported by Martijn Jasperse on 2011-04-06
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Thanks to the lack of naming conventions under windows, is unable to locate the latest precompiled DLLs from which are of the form 'libfftw3-3.dll'. Yes, renaming is a fix but then I have duplicates as other programs look for this file structure.

So, a super-simple fix for this would to be to add something like to following after

            if == 'nt' and lib is None:
                lib = util.find_library('lib'+name)
                if lib is None: lib = util.find_library('lib'+name+'-3')
            if lib is None: raise OSError, "File not found"

The last line is because when find_library fails it returns None instead of raising an exception. I believe this then works with the desired error handler.

I also suggest something like
   if packages == []: exit(1)
after check_libs() to stop it attempting to install 0 libraries...

Have been happily using pyFFTW3 under Linux for a while, and just trying to get it running under Windows for some less tech-savvy colleagues.


Jochen Schroeder (cyco) wrote :


which version of pyfftw are you using? This should be fixed in 0.2.1 already. Can you check?


Martijn Jasperse (m-jasperse) wrote :

Err... you are absolutely right, I was using v0.2 obtained from; had assumed the two sites were just mirrors but did not realise one was deprecated. My apologies.


Jochen Schroeder (cyco) on 2011-04-08
Changed in pyfftw:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers