UHD: USRP Source in next branch

Hi all,

I installed todays next branch and get the following error when I try to
use a UHD: USRP Source.

File “/usr/local/lib/python2.7/dist-packages/gnuradio/uhd/init.py”,
line 72, in init
for v in val: self.channels.append(v)
SystemError: error return without exception set

It occurs during startup when the flow graph is instantiated. I tried
the next branch some weeks ago and got the same error. So I guess
something is wrong with my setup.

I think it is somehow swig related. Did you also experience that?

Best,
Bastian

On Wed, May 22, 2013 at 11:53 AM, Bastian B. <
[email protected]> wrote:

wrong with my setup.

I think it is somehow swig related. Did you also experience that?

This is a known issue that Tom and I are working on, and yes, it is swig
related. We don’t have a workaround yet, but it’s the top issue to be
fixed on the next branch.

On 05/22/2013 01:53 PM, Bastian B. wrote:

It occurs during startup when the flow graph is instantiated. I tried
the next branch some weeks ago and got the same error. So I guess
something is wrong with my setup.

I think it is somehow swig related. Did you also experience that?

There are some additions on “next” related to channel mapping. But that
should be all internal to the cpp files and not causing this issue. Not
sure yet…

Can you post the source code thats calling into this? Is this just from
a GRC generated flow graph?

-josh

On 05/22/2013 02:32 PM, Johnathan C. wrote:

SystemError: error return without exception set
fixed on the next branch.

Oh, the swig file is missing a %template export for a vector of size_t.
It probably doesnt know how to deal with the channel list in the
stream_args_t class – hence the error. Is that correct?

If you use the uhd_swig.i from the master branch, does that 32-bit pmt
swig error multiple exported types come up? Or perhaps did the %import
statements resolve this?

-josh

On Wed, May 22, 2013 at 12:42 PM, Josh B. [email protected] wrote:

There are some additions on “next” related to channel mapping. But that
should be all internal to the cpp files and not causing this issue. Not
sure yet…

I haven’t merged that in yet.

Can you post the source code thats calling into this? Is this just from
a GRC generated flow graph?

The uhd_fft script works, but code generated by GRC using a USRP source
gets that error. It’s somehow related to the way swig is dealing with
std::vector<size_t> and the uhd::stream_args_t.channels variable. Tom
might have a fix already but we haven’t synced up yet.

On Wed, May 22, 2013 at 12:47 PM, Josh B. [email protected] wrote:

Oh, the swig file is missing a %template export for a vector of size_t.
It probably doesnt know how to deal with the channel list in the
stream_args_t class – hence the error. Is that correct?

On the next branch, the %template export for this is in gr_types.i in
gnuradio_runtime.

On 05/22/2013 02:50 PM, Johnathan C. wrote:

This worked on ubuntu 12.10 x64 and ubuntu 11.04 x86

The error is reproducible without the changset for both machines
mentioned. Hope that fixes it.

-josh

On Wed, May 22, 2013 at 3:34 PM, Josh B. [email protected] wrote:

This worked on ubuntu 12.10 x64 and ubuntu 11.04 x86

The error is reproducible without the changset for both machines
mentioned. Hope that fixes it.

I’ll test this in a bit. Thanks for addressing it so quickly.

Hi,

On 05/23/2013 12:34 AM, Josh B. wrote:

This worked on ubuntu 12.10 x64 and ubuntu 11.04 x86

The error is reproducible without the changset for both machines
mentioned. Hope that fixes it.

I’m not in the office until Monday, then I will give it a try.

Thanks for your fast response!

Bastian