Forum: GNU Radio adding block using gr_modtool

Posted by Mohammed Ramadan (Guest)
on 2013-01-28 10:56
(Received via mailing list)
it's my first time to use gr_modtool to creat Block i read the tutoral 
and make the steps and made module named howto. and now want to install 
the module and i write
gr_modtool add
asked me about the code type, block name, adding python QA , and C++ QA 
code , then give me the following

Must be one of ('sink', 'source', 'sync', 'decimator', 'interpolator', 
'general', 'hiercpp', 'hierpython', 'impl')
Enter code type: source
Code is of type: source
Enter name of block/code (without module name prefix): mohammed
Block/code identifier: mohammed
Full block/code identifier is: howto_mohammed
Enter valid argument list, including default arguments: in
Add Python QA code? [Y/n] n
Add C++ QA code? [Y/n] n
Traversing lib...
Adding file 'howto_mohammed.h'...
Adding file 'howto_mohammed.cc'...
Traceback (most recent call last):
 File "gr_modtool.py", line 2315, in <module>
 main()
 File "gr_modtool.py", line 2312, in main
 modtool.run()
 File "gr_modtool.py", line 746, in run
 self._run_lib()
 File "gr_modtool.py", line 785, in _run_lib
 ed.append_value('add_library', fname_cc)
 File "gr_modtool.py", line 501, in append_value
 count=1, flags=re.MULTILINE)
TypeError: sub() got an unexpected keyword argument 'flags'
el-hadidy@ubuntu:~/gr-howto$

so what i can do now , to check for making the new block , is it Done or 
Not, Please i need your help
Posted by Martin Braun (CEL) (Guest)
on 2013-01-28 17:07
(Received via mailing list)
Hi Mohammed,

grab the newest modtool from github, that should do the trick.

MB

On Mon, Jan 28, 2013 at 01:55:47AM -0800, Mohammed Ramadan wrote:
> Code is of type: source
>   File "gr_modtool.py", line 2315, in <module>
> el-hadidy@ubuntu:~/gr-howto$
>
> so what i can do now , to check for making the new block , is it Done or Not,
> Please i need your help
>
>

> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


--
Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin Braun
Research Associate

Kaiserstraße 12
Building 05.01
76131 Karlsruhe

Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu

KIT -- University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association
Posted by Mohammed Ramadan (Guest)
on 2013-01-30 11:11
(Received via mailing list)
i downloaded the last one of gr-Modtool , and same Problem exists, so 
can any one help me to get better copy or help me in this error.
--- On Mon, 1/28/13, Martin Braun (CEL) <martin.braun@kit.edu> wrote:

From: Martin Braun (CEL) <martin.braun@kit.edu>
Subject: Re: [Discuss-gnuradio] adding block using gr_modtool
To: discuss-gnuradio@gnu.org
Date: Monday, January 28, 2013, 4:06 PM

Hi Mohammed,

grab the newest modtool from github, that should do the trick.

MB

On Mon, Jan 28, 2013 at 01:55:47AM -0800, Mohammed Ramadan wrote:
> Code is of type: source
>File "gr_modtool.py", line 2315, in <module>
> el-hadidy@ubuntu:~/gr-howto$
>
> so what i can do now , to check for making the new block , is it Done or Not,
> Please i need your help
>
>

> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


--
Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin Braun
Research Associate

Kaiserstrae 12
Building 05.01
76131 Karlsruhe

Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu

KIT -- University of the State of Baden-Wrttemberg and
National Laboratory of the Helmholtz Association

-----Inline Attachment Follows-----
Posted by Serhat B. (serhat_b)
on 2013-02-09 22:38
Mohammed Ramadan wrote in post #1094028:

> so what i can do now , to check for making the new block , is it Done or
> Not, Please i need your help

i have stuct like you at the similar place... did you solved your
problem?
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.