Re: [Discuss-gnuradio] GNURadio Error On Mac

2017-04-02 Thread Michael Dickens
Hi Vamsi - Glad to hear you worked out the issue. Cheers! - MLD

On Sun, Apr 2, 2017 at 4:21 PM, Vamsi Krishna Adsumilli 
wrote:

> 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.
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] GNURadio Error On Mac

2017-04-02 Thread Michael Dickens
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 
> 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


[Discuss-gnuradio] gnuradio error

2015-09-09 Thread cdl
i am using uhd model in gnuradio,usrp_sink and usrp_source to do a loopback 
sysrem
and i connect the usrp tx and rx withRF feeder line,when i exe the grc ,i got 
the output 
UHD Error:
the receiver packet handler caught an exception.
runtimeerror:usb rx6 transfer status:LIBUSB_TRANSFER_ERROR
UHD source block got error code 0xf
i wants to konw how tp solve this problem


I am using https://github.com/anastas/gr-cdma/tree/master/apps cdma_txrx.grc___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] gnuradio error

2015-09-09 Thread Michael Dickens
Hi cdl - Which USRP are you using? USRP1, B200, B210? Might make a
difference ... - MLD

On Wed, Sep 9, 2015, at 12:22 PM, cdl wrote:
> i am using uhd model in gnuradio,usrp_sink and usrp_source to do a
> loopback sysrem and i connect the usrp tx and rx withRF feeder
> line,when i exe the grc ,i got the output UHD Error: the receiver
> packet handler caught an exception. runtimeerror:usb rx6 transfer
> status:LIBUSB_TRANSFER_ERROR UHD source block got error code 0xf i
> wants to konw how tp solve this problem I am using
> https://github.com/anastas/gr-cdma/tree/master/apps cdma_txrx.grc
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio