Gr-pyserial

Hi all! I’m working with gr-pyserial but when i run my blocks i get the
following:

Loading: “/home/iua/gr-pyserial-master/examples/vsp_connect.grc”

Done

Showing: “/home/iua/gr-pyserial-master/examples/vsp_connect.grc”

Generating: “/home/iua/gr-pyserial-master/examples/vsp_connect.py”

Warning: This flow graph may not have flow control: no audio or usrp
blocks found. Add a Misc->Throttle block to your flow graph to avoid CPU
congestion.

Executing: “/home/iua/gr-pyserial-master/examples/vsp_connect.py”

linux; GNU C++ version 4.6.3; Boost_104601;
UHD_003.004.003-175-g09de3c07

Traceback (most recent call last):
File “/home/iua/gr-pyserial-master/examples/vsp_connect.py”, line 50,
in

tb = vsp_connect()
File “/home/iua/gr-pyserial-master/examples/vsp_connect.py”, line 32,
in
init
self.serial_port_1_0 =
grpyserial.serial_port("/dev/tty1",0,9600,0,1,True)
File
“/usr/local/lib/python2.7/dist-packages/grpyserial/serial_port.py”,
line 62, in init
num_msg_outputs = 1,
TypeError: init() got an unexpected keyword argument
‘num_msg_inputs’

Some who maybe has any experience with gr-pyserial could help me? Is
there
a code error or is something wrong with gnuradio?

Thanks all for your help

Hi Julian,

blind guess: gr-pyserial is from 2012 and thus likely uses GNU Radio
3.6.something, whereas you’re trying to use it with a more modern
version of GNU Radio, whose python block object doesn’t have the num…
argument.
I think the easiest (and most sensible) solution to this is honoring
jmalsbury’s work by using an up-to-date version of GNU Radio, employing
“gr_modtool nm” to make a new module, add a new block to that using
“gr_modtool -l python add” and then copy&paste over most of the code
into the skeleton you’ve just created.

Best regards,
Marcus

Well, the whole functionality from the python/ file into the
corresponding new block

Julian,

again: please always reply to the list; we’re always eager to help, but
understand that we usually are not willing to offer free debugging if it
happens for you in private.

Also, how do you think should I guess what goes wrong if you write “I’m
getting an error”?
I’d like to refer you to
http://gnuradio.org/redmine/projects/gnuradio/wiki/ReportingErrors

Greetings,
Marcus

No, that should not happen. gr_modtool is as much part of GNU Radio as
is the gnuradio-companion.

This sounds like you might have mixed multiple installations of GNU
Radio.
Greetings,
Marcus