Reputation: 13
I am having some trouble getting the filter design tool to even start. When starting the application I get
"This example requires a Numerical Python Extension, but
failed to import either NumPy, or numarray, or Numeric.
NumPy is available at http://sourceforge.net/projects/numpy".
I have rebuild GNU Radio a couple of times now, and I am fairly sure that I have every thing installed that is required. I do have numpy installed, and I have tried a couple of versions just to be safe.
Has some one else had this problem?
Upvotes: 0
Views: 1982
Reputation: 1543
I ran into a similar issue just now, and had to import fftpack
from SciPy instead of NumPy. NumPy was still needed for actually generating the filters (removing import numpy
would cause gr_filter_design to crash when clicking the "Design" button).
/usr/lib/python3.8/site-packages/gnuradio/filter/filter_design.py
:
# import numpy
# from numpy.fft import fftpack
# from scipy import poly1d, signal
import numpy
from scipy import fftpack, poly1d, signal
Versions: Manjaro Linux, numpy 1.18.1, scipy 1.4.1, and gnuradio 3.8.0.0.
Upvotes: 0
Reputation: 151
If you have a recent version of NumPy installed, you're most likely running into problems because of this line in anynumpy:
from numpy.oldnumeric.compat import *
oldnumeric provided backwards-compatibility support for code written using NumPy's predecessor Numeric, and was removed in NumPy 1.9 which was released at about the time of your question. It looks like the GNU Radio filter design tool simply isn't compatible with NumPy 1.9 right now.
Upvotes: 0
Reputation: 36
You are getting this error as
from PyQt4.Qwt5.anynumpy import *
in polezero_plot.py (/usr/lib/python2.7/site-packages/gnuradio/filter) is failing.
Just try replacing
from PyQt4.Qwt5.anynumpy import * ( line no 25)
with
from scipy import zeros
or
from numpy import zeros
Upvotes: 1