Whats your swig version? The last time I encountered this, someone had swig 2 and it was incorrectly parsing an enum to type 'str' (rather than int). Whats this print?
python -c "from gnuradio import uhd; print type(uhd.io_type.COMPLEX_FLOAT32)" -Josh On 04/20/2011 04:45 AM, Moritz Fischer wrote: > 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 > > > > _______________________________________________ > Discuss-gnuradio mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio _______________________________________________ Discuss-gnuradio mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
