Reputation: 121
I have a flask server running via apache on AWS, majority is functional programming/APIs for a mobile application. I have to do signal processing for the app, so scipy is essential.
I can import scipy
without stalling, however, a call to scipy.signal
will produce errors at the API level where any module therein is required.
Solutions I've tried:
import scipy
call to scipy.signal
produces apache log error AttributeError: module 'scipy' has no attribute 'signal'
However, import scipy
does not hang server for other APIs. This solution doesn't work as the below imports are unavailable.
import scipy.signal
import scipy.signal as ss
from scipy import signal as ss
from scipy.signal import savgol_filter, find_peaks
All of the above combinations hang server
pip install scipy --no-binary :all:
described here
Many thanks in advance!!!
Upvotes: 1
Views: 336