Executing: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u /Users/vamsi/Documents/GNURadio/CompanionWorkspace/top_block.py
Traceback (most recent call last):
File "/Users/vamsi/Documents/GNURadio/CompanionWorkspace/top_block.py", line 204, in <module>
main()
File "/Users/vamsi/Documents/GNURadio/CompanionWorkspace/top_block.py", line 192, in main
tb = top_block_cls()
File "/Users/vamsi/Documents/GNURadio/CompanionWorkspace/top_block.py", line 160, in __init__
self.iris_ml_svm_0 = iris.ml_svm('')
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/iris/ml_svm.py", line 33, in __init__
out_sig=numpy.complex64)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/gr/gateway.py", line 221, in __init__
factor=1, #not relevant factor
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/gr/gateway.py", line 91, in __init__
self.__in_sig = sig_to_dtype_sig(in_sig)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/gr/gateway.py", line 90, in sig_to_dtype_sig
return map(numpy.dtype, sig)
TypeError: argument 2 to map() must support iteration
I don’t have any issue running regular blocks, but not just the OOT ones.
I have installed GNURadio using Macports:
sudo port install gnuradio -universal
I use the following steps to compile the block:
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/opt/local -DPYTHON_EXECUTABLE=/opt/local/bin/python2.7 -DPYTHON_INCLUDE_DIR=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Headers -DPYTHON_LIBRARY=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python -DGR_PYTHON_DIR=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages ../
sudo make install