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?
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.
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?
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?
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.
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.