Library finder doesn't like paths with "." in them

Bug #538312 reported by Andrew Collette
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PyFFTW
Fix Committed
Undecided
Unassigned

Bug Description

The code which looks for threaded libraries gets a bit confused with things like ".local"; I have FFTW_PATH set to /home/collette/.local/lib. On loading, I got this message:

UserWarning: Could not load threading library /home/collette/_threads.local/lib/libfftw3.so, threading support is disabled

I was going to suggest using splitext in lib.temp.py, but this seems to be there and commented out. :) This is with PyFFTW 0.2.

Related branches

Revision history for this message
Jochen Schroeder (cyco) wrote :

I committed a fix for this to bzr could you check if that fixes your problems. The reason the splitext part is uncommented is because under some systems the filename will contain the version like /usr/lib/libfftw3.so.3.1.2 and splitext thinks only the 2 is the extension.

Changed in pyfftw:
status: New → Fix Committed
Revision history for this message
Andrew Collette (andrew-collette) wrote :

The fix unfortunately does not work... I've attached a patch for lib.tmpl.py which resolves the issue for me and should work OK with complex sonames.

Revision history for this message
Jochen Schroeder (cyco) wrote :

Duh, I only fixed the bug half way. Note to self: no bug fixing before coffee. I've applied your patch now thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.