[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] gr-uhd swig troubles
From: |
Moritz Fischer |
Subject: |
[Discuss-gnuradio] gr-uhd swig troubles |
Date: |
Wed, 20 Apr 2011 13:45:46 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Hey guys,
I started to have this with the git master and uhd from yesterday evening:
linux; GNU C++ version 4.6.0 20110415 (prerelease); Boost_104600;
UHD_003.000.001-8212f22
[...]
ub/grotarapi/PHY/PhysicalLayer.py", line 47, in __init__
self.u_tx = uhd.usrp_sink(hint, io_type=uhd.io_type_t.COMPLEX_FLOAT32,
num_channels=1)
File "/usr/lib/python2.7/site-packages/gnuradio/uhd/__init__.py", line 73, in
constructor_interceptor
if kwargs.has_key(key): kwargs[key] = cast(kwargs[key])
File "/usr/lib/python2.7/site-packages/gnuradio/uhd/uhd_swig.py", line 409,
in __init__
this = _uhd_swig.new_io_type_t(*args)
NotImplementedError: Wrong number or type of arguments for overloaded function
'new_io_type_t'.
Possible C/C++ prototypes are:
uhd::io_type_t(uhd::io_type_t::tid_t)
uhd::io_type_t(size_t)
[...]
If I try the same with a size_t instead (in bpython):
a = uhd.usrp_sink(device_addr='type=usrp2', io_type=32, num_channels=1)
# OUT: Traceback (most recent call last):
# OUT: File "<input>", line 1, in <module>
# OUT: File
# "/usr/lib/python2.7/site-packages/gnuradio/uhd/__init__.py", line 74,
# in constructor_interceptor
# OUT: return old_constructor(*args, **kwargs)
# OUT: File
# "/usr/lib/python2.7/site-packages/gnuradio/uhd/uhd_swig.py", line
# 1854, in usrp_sink
# OUT: return _uhd_swig.usrp_sink(*args, **kwargs)
# OUT: RuntimeError: gr_io_signature(3)
Any hints how to fix this? Did someone already see something like this?
I think it might be somehow related to 7787d1fc1aecc7b59e476c31865b4f32348cb729
All the best,
Moritz
pgpk028T5hTrF.pgp
Description: PGP signature
- [Discuss-gnuradio] gr-uhd swig troubles,
Moritz Fischer <=