# ImportError: No module named randsig

**URL:** <https://www.ruby-forum.com/t/importerror-no-module-named-randsig/152308>\
**Category:** GNU Radio\
**Created:** [November 1, 2008, 8:35pm UTC](https://www.ruby-forum.com/t/importerror-no-module-named-randsig/152308 "2008-11-01T20:35:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fire-dragon-dol](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/43a26b/32.png) [@fire-dragon-dol](https://www.ruby-forum.com/u/fire-dragon-dol)\
**Post date:** [November 1, 2008, 8:35pm UTC](https://www.ruby-forum.com/t/importerror-no-module-named-randsig/152308/1 "2008-11-01T20:35:30Z")

</div>

Okay, so I’ve got the randsig signal processing block made and  
installed.  
Furthermore, the test python file (qa\_randsig.py) functions  
successfully.  
But when I try to implement it in a different \*.py file  
(usrp\_randsiggen.py), I get this:

Traceback (most recent call last):  
File “./usrp\_randsiggen.py”, line 4, in   
import randsig  
ImportError: No module named randsig

Searching through the posts here, I’ve found other topics similar to  
this,  
but they didn’t pass the QA testing while mine did. I’ve double-checked  
that  
the required files were indeed added to  
usr/local/lib/python2.5/site-packages/gnuradio. And if pythonpath  
weren’t  
configured properly, I’d be having far more problems than just this not  
working. I’ve attempted using the line “from gnuradio import randsig”  
and  
just “import randsig” (the latter of which worked for my QA file).

So what else would be causing this? here are the two \*.py files, if  
helpful.

[http://www.nabble.com/file/p20283794/qa\_randsig.py](http://www.nabble.com/file/p20283794/qa_randsig.py) qa\_randsig.py  
[http://www.nabble.com/file/p20283794/usrp\_randsiggen.py](http://www.nabble.com/file/p20283794/usrp_randsiggen.py)  
usrp\_randsiggen.py

## ~ Francesco

View this message in context:  
[http://www.nabble.com/ImportError%3A-No-module-named-randsig-tp20283794p20283794.html](http://www.nabble.com/ImportError%3A-No-module-named-randsig-tp20283794p20283794.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).
