Hi Linda20071 - The error shows that either your Python code isn't passed a 'bool' type, or the SWIG interface isn't providing the correct API for Python. Without seeing your code it's pretty difficult to tell. So if you have a public repo please post it along with your query. There are plenty of examples in both GR and OOT modules that do the boolean interface from C++ to Python via SWIG. Hope this is useful. - MLD On Fri, Jul 27, 2018, at 11:47 AM, Linda20071 wrote: > We use "repeat" variable in a file source to show whether or not we > want to repeatedly play the file. In my module, I generated a > limited length of random data, and I use "bool repeat" to show > whether or not I want the limited length of data to be repeatedly > played. However, when I run the module, I got a type error message > that complains the bool type of this "repeat" variable in the make > function as shown below:> > File "/usr/local/lib/python2.7/dist- > packages/mysource/mysource_swig.py", line 154, in make> return > _mysource_swig.mysource_make(len, repeat, upsampling_rate)> TypeError: in > method 'mysource_make', argument 2 of type 'bool' > > However, as I understand, the "repeat" needs to be declared as "bool". > Is there a fix for this problem?
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio