# How can I call my own block from python

**URL:** <https://www.ruby-forum.com/t/how-can-i-call-my-own-block-from-python/198197>\
**Category:** GNU Radio\
**Created:** [October 27, 2010, 9:01pm UTC](https://www.ruby-forum.com/t/how-can-i-call-my-own-block-from-python/198197 "2010-10-27T21:01:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [October 27, 2010, 9:01pm UTC](https://www.ruby-forum.com/t/how-can-i-call-my-own-block-from-python/198197/1 "2010-10-27T21:01:47Z")

</div>

Hello  
I am trying to write my own block. I wrote the required files and then  
worked the below statements sequentially in the terminal  
-bootstrap  
-configure  
-make  
-make check  
then at the end I get

- ran 2 tests in 0.004s
- OK
- PASS: run\_tests
- 1 test passed  
I saved the files related to this block on desktop and called it  
my\_block.  
But now I am trying to call this block to python but i can’t. Every time  
i get en error ‘no such module is defined’.  
What can i do now? Is there any thing i missed?  
Thanks your supports.

---

<div class="post-metadata">

**Author:** ![SSSSmer\_gS\_naySS\_SS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aeb1de/32.png) [@SSSSmer\_gS\_naySS\_SS](https://www.ruby-forum.com/u/SSSSmer_gS_naySS_SS)\
**Post date:** [October 27, 2010, 9:44pm UTC](https://www.ruby-forum.com/t/how-can-i-call-my-own-block-from-python/198197/2 "2010-10-27T21:44:36Z")

</div>

Try running “sudo make install” after make check?

Kunal

2010/10/27 mer gnay [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![SSSSmer\_gS\_naySS\_SS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aeb1de/32.png) [@SSSSmer\_gS\_naySS\_SS](https://www.ruby-forum.com/u/SSSSmer_gS_naySS_SS)\
**Post date:** [October 30, 2010, 1:37am UTC](https://www.ruby-forum.com/t/how-can-i-call-my-own-block-from-python/198197/3 "2010-10-30T01:37:11Z")

</div>

Try :-

make install

after make check

From: discuss-gnuradio-bounces+dr=removed\_email\_address@domain.invalid  
[[mailto:discuss-gnuradio-bounces+dr=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+dr=removed_email_address@domain.invalid)] On Behalf Of  
mer  
gnay  
Sent: Thursday, 28 October 2010 6:00 AM  
To: gnu radio  
Subject: [Discuss-gnuradio] how can I call my own block from python

Hello  
I am trying to write my own block. I wrote the required files and then  
worked the below statements sequentially in the terminal  
-bootstrap  
-configure  
-make  
-make check  
then at the end I get

- ran 2 tests in 0.004s
- OK
- PASS: run\_tests
- 1 test passed  
I saved the files related to this block on desktop and called it  
my\_block.  
But now I am trying to call this block to python but i can’t. Every time  
i  
get en error ‘no such module is defined’.  
What can i do now? Is there any thing i missed?  
Thanks your supports.
