# Is howtowriteablock broken?

**URL:** <https://www.ruby-forum.com/t/is-howtowriteablock-broken/202738>\
**Category:** GNU Radio\
**Created:** [February 4, 2011, 6:53pm UTC](https://www.ruby-forum.com/t/is-howtowriteablock-broken/202738 "2011-02-04T18:53:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [February 4, 2011, 6:53pm UTC](https://www.ruby-forum.com/t/is-howtowriteablock-broken/202738/1 "2011-02-04T18:53:22Z")

</div>

after making and installing gr-how-to-write-a-block  
i do in python

> import howto

and I get the error:

Traceback (most recent call last):  
File “”, line 1, in   
File  
“/n/harrisville/x/anastas/usr/lib64/python2.6/site-packages/howto/ **init**.py”,  
line 40, in   
from howto\_swig import \*  
ImportError: No module named howto\_swig

I know i have

howto\_swig installed inside the directory

/net/harrisville/x/anastas/usr/lib64/python2.6/site-packages/gnuradio

so it is not clear what is wrong.  
also i have  
PYTHONPATH="/n/harrisville/x/anastas/usr/lib64/python2.6/site-packages"

any clues?  
thanks  
Achilleas

---

<div class="post-metadata">

**Author:** ![Achilleas\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/74df32/32.png) [@Achilleas\_A](https://www.ruby-forum.com/u/Achilleas_A)\
**Post date:** [February 7, 2011, 9:26am UTC](https://www.ruby-forum.com/t/is-howtowriteablock-broken/202738/2 "2011-02-07T09:26:04Z")

</div>

On Fri, Feb 04, 2011 at 12:03:17PM -0500, Achilleas A.  
wrote:

> line 40, in   
> also i have  
> PYTHONPATH=“/n/harrisville/x/anastas/usr/lib64/python2.6/site-packages”

Hi Achilleas,

why is howto\_swig in a different directory than **init**.py? With your  
PYTHONPATH, it should not be a problem, but it still might be a cause of  
error–try copying howto\_swig.py and \_howto\_swig.\* to the same dir as  
**init**.py.

MB

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

Dipl.-Ing. Martin B.  
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
