discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] GNURadio Error On Mac


From: Vamsi Krishna Adsumilli
Subject: Re: [Discuss-gnuradio] GNURadio Error On Mac
Date: Sun, 2 Apr 2017 13:21:06 -0700

Hi Micheal,

Thanks for the reply.
We were able to narrow down the issue. After generating a OOT module using gr_modtool, i have incorrectly edited the following lines, which caused the issue.

            in_sig=numpy.complex64,
            out_sig=numpy.complex64)

Where it should have been 

            in_sig=[numpy.complex64],
            out_sig=[numpy.complex64])

I faced new issues each time I restart using GNURadio on MAC, so I initially jumped to that conclusion, I’m sorry about the confusion.

Vamsi

On Apr 2, 2017, at 11:16 AM, Michael Dickens <address@hidden> wrote:

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/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


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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]