Hi Vamsi - It looks like you're doing everything correctly for building
& installing your OOT & GR itself.


If I had to guess, I'd think that, somehow, the 2 argument to "map" is
being provided either directly or indirectly in the "top_block.py"
script & clearly doesn't support iteration & needs to be able to do so.
Since I don't have the code it's kinda hard to say anything more about
what's going on.


I'm not sure how to test the gateway block, whatever it provides.
If you can send me example code off-list I'll give it & try & see
what I can do.


Cheers! - MLD



> I’m facing the following error when I run an OOT module:

> 

> 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/l-
>   ib/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/l-
>   ib/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/l-
>   ib/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/l-
>   ib/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/Ve-
> rsions/2.7/Headers -
> DPYTHON_LIBRARY=/opt/local/Library/Frameworks/Python.framework/Versio-
> ns/2.7/Python -
> DGR_PYTHON_DIR=/opt/local/Library/Frameworks/Python.framework/Version-
> s/2.7/lib/python2.7/site-packages ../
> sudo make install

> 


_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to