# Precog Import Error

**URL:** <https://www.ruby-forum.com/t/precog-import-error/235297>\
**Category:** GNU Radio\
**Created:** [June 12, 2013, 4:03am UTC](https://www.ruby-forum.com/t/precog-import-error/235297 "2013-06-12T04:03:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alcina](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a587f6/32.png) [@alcina](https://www.ruby-forum.com/u/alcina)\
**Post date:** [June 12, 2013, 4:03am UTC](https://www.ruby-forum.com/t/precog-import-error/235297/1 "2013-06-12T04:03:47Z")

</div>

I have installed the extras and precog as per wiki.  
The gnuradio-comapnion extras blocks are working fine.

But when I try to run precog modules given there is error:-

_GRAS: The debug asserts are enabled. \<\<\<_  
_Traceback (most recent call last):_

- File “”, line 1, in \*
- File “/usr/local/lib/python2.7/dist-packages/precog/ **init**.py”,  
line  
29, in \*
- from simple\_mac import simple\_mac\*
- File “/usr/local/lib/python2.7/dist-packages/precog/simple\_mac.py”,  
line  
29, in \*
- import gnuradio.extras #brings in gr.block\*  
_ImportError: No module named extras_

I tried from gnuradio import extras and import gnuradio.extras both.  
_ImportError: No module named extras_

My paths are:-

\*export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/dist-packages \*  
_export LD\_LIBRARY\_PATH=$LD\_LIBRARY\_PATH:/usr/local/lib/_  
\*  
\*  
_And I cross checked these folders and they are available at correct  
locations._  
\*  
\*  
\*  
\*  
_Precog blocks in companion is also not working while extras blocks are  
doing fine! And it says no module named extra!!_

Jay

---

<div class="post-metadata">

**Author:** ![Jay\_Prakash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3bc359/32.png) [@Jay\_Prakash](https://www.ruby-forum.com/u/Jay_Prakash)\
**Post date:** [June 12, 2013, 5:55am UTC](https://www.ruby-forum.com/t/precog-import-error/235297/2 "2013-06-12T05:55:22Z")

</div>

Jay,

Looks like I need a patch. Standby.

-John

On Tue, Jun 11, 2013 at 7:02 PM, Jay Prakash

---

<div class="post-metadata">

**Author:** ![Jay\_Prakash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3bc359/32.png) [@Jay\_Prakash](https://www.ruby-forum.com/u/Jay_Prakash)\
**Post date:** [June 12, 2013, 6:56pm UTC](https://www.ruby-forum.com/t/precog-import-error/235297/3 "2013-06-12T18:56:33Z")

</div>

On 06/11/2013 10:02 PM, Jay Prakash wrote:

> I have installed the extras and precog as per wiki.  
> The gnuradio-comapnion extras blocks are working fine.
> 
> But when I try to run precog modules given there is error:-

Precog requires an older version of grextras on this branch:

> **[GitHub - guruofquality/grextras at grextras\_v3.6](https://github.com/guruofquality/grextras/tree/grextras_v3.6)**
>
> grextras\_v3.6

You should be able to install it along side the newer grextras without  
interfering.

Also relevant:

> **[\[Discuss-gnuradio\] GrExtras next -\> master](https://lists.gnu.org/archive/html/discuss-gnuradio/2013-05/msg00492.html)**

-josh
